예제 #1
0
 private void mSender_OnStaticEditorCall(object sender, CallPacketsEditorEventArgs e)
 {
     using (PacketsEditor dialog = new PacketsEditor(e.List))
     {
         dialog.ShowDialog();
     }
 }
예제 #2
0
 public void CallStaticPacketsEditor()
 {
     if (this.OnStaticEditorCall != null)
     {
         CallPacketsEditorEventArgs args = new CallPacketsEditorEventArgs(this.PacketsStatic);
         this.OnStaticEditorCall(this, args);
         if (args.Changed)
         {
             //this.PacketsStatic.RaiseListChangedEvents = false;
             this.PacketsStatic.Clear();
             foreach (string packet in args.List)
             {
                 this.PacketsStatic.Add(packet);
             }
             //this.PacketsStatic.RaiseListChangedEvents = true;
         }
     }
 }