Example #1
0
        void Construct()
        {
            InitializeComponent();

            ListInstances.ListViewItemSorter = lvwColumnSorter;

            UiThreadId = Thread.CurrentThread.ManagedThreadId;

            Sim = new InternetSim(Application.StartupPath, InterfaceRes.deops);
        }
Example #2
0
        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);
        }
Example #3
0
        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;
        }
Example #4
0
        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;
        }
Example #5
0
        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);
        }
Example #6
0
 public SimInstance(InternetSim internet, int index)
 {
     Internet = internet;
     Index    = index;
 }
Example #7
0
 public SimInstance(InternetSim internet, int index)
 {
     Internet = internet;
     Index = index;
 }