Exemple #1
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;
        }
Exemple #2
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;
        }
Exemple #3
0
        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;
                }
        }
Exemple #4
0
        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;
                }
            }
        }
Exemple #5
0
        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();
        }
Exemple #6
0
        public void ShowSimulator()
        {
            if (Simulator != null)
            {
                Simulator.BringToFront();
                return;
            }

            Simulator = new SimForm(this);
            Simulator.FormClosed += new FormClosedEventHandler(Window_FormClosed);
            Simulator.Show();
        }