From 34b25843561d77539cfaeed488333890419c82d3 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 29 Dec 2022 19:19:43 +0100 Subject: [PATCH] immer weider --- AIS/AISAdmin/AISAdmin.csproj | 2 ++ AIS/AISAdmin/Main.Designer.cs | 4 +++- AIS/AISAdmin/Main.cs | 18 ++++++++++++++++++ AIS/AISAdmin/Properties/Resources.Designer.cs | 10 ++++++++++ AIS/AISAdmin/Properties/Resources.resx | 3 +++ AIS/AISAdmin/Resources/arrow_left_green.png | Bin 0 -> 928 bytes 6 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 AIS/AISAdmin/Resources/arrow_left_green.png diff --git a/AIS/AISAdmin/AISAdmin.csproj b/AIS/AISAdmin/AISAdmin.csproj index 4fefaadd..8e1e787c 100644 --- a/AIS/AISAdmin/AISAdmin.csproj +++ b/AIS/AISAdmin/AISAdmin.csproj @@ -10,6 +10,7 @@ + @@ -31,6 +32,7 @@ + diff --git a/AIS/AISAdmin/Main.Designer.cs b/AIS/AISAdmin/Main.Designer.cs index 46f68f24..68eff238 100644 --- a/AIS/AISAdmin/Main.Designer.cs +++ b/AIS/AISAdmin/Main.Designer.cs @@ -238,12 +238,13 @@ // buttonAssignSelectedTarget // this.buttonAssignSelectedTarget.Enabled = false; - this.buttonAssignSelectedTarget.Image = global::AISAdmin.Properties.Resources.delete; + this.buttonAssignSelectedTarget.Image = global::AISAdmin.Properties.Resources.arrow_left_green; this.buttonAssignSelectedTarget.Location = new System.Drawing.Point(358, 111); this.buttonAssignSelectedTarget.Name = "buttonAssignSelectedTarget"; this.buttonAssignSelectedTarget.Size = new System.Drawing.Size(37, 31); this.buttonAssignSelectedTarget.TabIndex = 6; this.buttonAssignSelectedTarget.UseVisualStyleBackColor = true; + this.buttonAssignSelectedTarget.Click += new System.EventHandler(this.buttonAssignSelectedTarget_Click); // // buttonDeleteAssignment // @@ -254,6 +255,7 @@ this.buttonDeleteAssignment.Size = new System.Drawing.Size(37, 31); this.buttonDeleteAssignment.TabIndex = 5; this.buttonDeleteAssignment.UseVisualStyleBackColor = true; + this.buttonDeleteAssignment.Click += new System.EventHandler(this.buttonDeleteAssignment_Click); // // buttonNewAssignment // diff --git a/AIS/AISAdmin/Main.cs b/AIS/AISAdmin/Main.cs index aa3dfaa4..77a85d88 100644 --- a/AIS/AISAdmin/Main.cs +++ b/AIS/AISAdmin/Main.cs @@ -214,5 +214,23 @@ namespace AISAdmin _storage?.Save(ma); } } + + private void buttonDeleteAssignment_Click(object sender, EventArgs e) + { + MonitorAssignment? ma = (MonitorAssignment)this.listBoxAssignment.SelectedItem; + if(ma != null) + { + + } + } + + private void buttonAssignSelectedTarget_Click(object sender, EventArgs e) + { + AIS_Target? target = (AIS_Target)this.listBoxTargets.SelectedItem; + if(target != null) + { + this.AddOrUpdateAssignmentForAllGroupZones(target.MMSI, MonitorAssignment.ZoneMonitorType.ENTER); + } + } } } \ No newline at end of file diff --git a/AIS/AISAdmin/Properties/Resources.Designer.cs b/AIS/AISAdmin/Properties/Resources.Designer.cs index 41c52e02..02647d9c 100644 --- a/AIS/AISAdmin/Properties/Resources.Designer.cs +++ b/AIS/AISAdmin/Properties/Resources.Designer.cs @@ -70,6 +70,16 @@ namespace AISAdmin.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrow_left_green { + get { + object obj = ResourceManager.GetObject("arrow_left_green", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/AIS/AISAdmin/Properties/Resources.resx b/AIS/AISAdmin/Properties/Resources.resx index a93138a4..18acdd0b 100644 --- a/AIS/AISAdmin/Properties/Resources.resx +++ b/AIS/AISAdmin/Properties/Resources.resx @@ -121,6 +121,9 @@ ..\Resources\arrow_down_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\arrow_left_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\arrow_right_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a diff --git a/AIS/AISAdmin/Resources/arrow_left_green.png b/AIS/AISAdmin/Resources/arrow_left_green.png new file mode 100644 index 0000000000000000000000000000000000000000..39eb6e6d918f66038e63cf6eff0f1cc051596fda GIT binary patch literal 928 zcmV;R17G}!P)WdKcYATc)}MrC3kGB7YRATc;PF*rIkFd!>1F)%P2jj;m&000McNliru z(*h9^Iy*rd=lB2s010qNS#tmY3h)2`3h)6!tTdPa000DMK}|sb0I`n?{9y$E00Q_) zL_t(|+Rap3NK{c2UFY6AFCS>;BO&cU%tsMKA4NqJ;sYYE2rTHMpAa)4ii+q%P!uZh z$E=A;3_&49W2z6cB&4W5DygI>i7-X9tfm=l?(3Y>xp&kL8`B|$7F_OO-+R{DYwvvy z@ZaGXl4AK?ii!L_^3jjh#S!phmzQVyVZyoa0(Y>->rU^e&fD*X7L(_B2;4%^8pqPs z=KS-npBM*>g%oJRL9ZvRxv`+ip&%6@bpi+?E*1f0)-N}4Xl+vZ^=o;Riq2ekt@nUZ zhU`@-o1ASjC!B+GB7WpxA`TFHn^RKIKlEjYp5$4Wj?P324zJJ1yyDBLkPTD8bF~YM zQ4on^qbCr_-&JdWvez8u0`^Y?iLx8QP?R2A#pwd?x^oqqPmqA7qBqdo#zh z1a&>{Ka`c-?QGG0tt* zb}B=w=0voPC}LK`G!bQTP55-&Zna^Ekj!R32W4pJs~^@bc62u$Dcqq1gJEc<2}vRt z?F+)`5Z=gS(+Rh;j+_Y*6T(cEAx;UK>T~pSV4)TVR;Q*ll@@My1Vdqa^YE(xZohql zWQWIYYQ$ZnG}PpfB?%5$LjUmCAg@98-vunxVBd=5l$MghZO*W+OMcPm-vpGq(G5?%VVX{DWhGy_Z@ZhZB}K=kojys6_6v z+W2u);o-tMm_j)ojOY`)#oVcj