void Construct() { InitializeComponent(); ListInstances.ListViewItemSorter = lvwColumnSorter; UiThreadId = Thread.CurrentThread.ManagedThreadId; Sim = new InternetSim(Application.StartupPath, InterfaceRes.deops); }
public SearchForm(DhtNetwork network) { InitializeComponent(); if(network.Core.Sim != null) Sim = network.Core.Sim.Internet; Network = network; Text = "Search (" + Network.GetLabel() + ")"; OnUpdateList = new UpdateListHandler(UpdateList); }
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; }
private void UnloadAllMenuItem_Click(object sender, EventArgs e) { // unload Sim.InstanceChange -= new InstanceChangeHandler(OnInstanceChange); if (TimeFile != null) { TimeFile.Dispose(); TimeFile = null; } Sim.Exit(); // re-init Sim = new InternetSim(Application.StartupPath, InterfaceRes.deops); Sim.InstanceChange += new InstanceChangeHandler(OnInstanceChange); OnInstanceChange(null, InstanceChangeType.Refresh); }
public SimInstance(InternetSim internet, int index) { Internet = internet; Index = index; }