Exemplo n.º 1
0
        void Construct()
        {
            InitializeComponent();

            ListInstances.ListViewItemSorter = lvwColumnSorter;

            UiThreadId = Thread.CurrentThread.ManagedThreadId;

            Sim = new InternetSim(Application.StartupPath, InterfaceRes.deops);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 6
0
 public SimInstance(InternetSim internet, int index)
 {
     Internet = internet;
     Index    = index;
 }
Exemplo n.º 7
0
 public SimInstance(InternetSim internet, int index)
 {
     Internet = internet;
     Index = index;
 }