public NetView(SimForm main, ulong id) { Main = main; Sim = Main.Sim; OpID = id; Redraw = true; SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); Sim.UpdateView += new UpdateViewHandler(OnUpdateView); InitializeComponent(); NodeTip.ShowAlways = true; }
public SelectServices(SimForm sim, string title, RunServiceMethod method) { InitializeComponent(); Sim = sim; Text = title; Method = method; foreach (ListInstanceItem item in Sim.ListInstances.Items) if (item.Core != null) { DeOpsContext sample = item.Core.Context; foreach (uint id in sample.KnownServices.Keys) ServiceList.Items.Add(new ServiceItem(id, sample.KnownServices[id])); break; } }
public SelectServices(SimForm sim, string title, RunServiceMethod method) { InitializeComponent(); Sim = sim; Text = title; Method = method; foreach (ListInstanceItem item in Sim.ListInstances.Items) { if (item.Core != null) { DeOpsContext sample = item.Core.Context; foreach (uint id in sample.KnownServices.Keys) { ServiceList.Items.Add(new ServiceItem(id, sample.KnownServices[id])); } break; } } }
void Window_FormClosed(object sender, FormClosedEventArgs e) { foreach (LoginForm form in Logins) if (sender == form) { Logins.Remove(form); break; } if (sender == Simulator) Simulator = null; CheckExit(); }
public void ShowSimulator() { if (Simulator != null) { Simulator.BringToFront(); return; } Simulator = new SimForm(this); Simulator.FormClosed += new FormClosedEventHandler(Window_FormClosed); Simulator.Show(); }