private void mSender_OnStaticEditorCall(object sender, CallPacketsEditorEventArgs e) { using (PacketsEditor dialog = new PacketsEditor(e.List)) { dialog.ShowDialog(); } }
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; } } }