Esempio n. 1
0
        private void StandardConstructor()
        {
            //Add some speed buttons
            Speed1   = new Core.Environment.UI.Toolbar.Button("  1  ", Speed1_Click);
            Speed5   = new Core.Environment.UI.Toolbar.Button("  5  ", Speed5_Click);
            Speed2   = new Core.Environment.UI.Toolbar.Button("  2  ", Speed2_Click);
            Speed10  = new Core.Environment.UI.Toolbar.Button("  10  ", Speed10_Click);
            Speed20  = new Core.Environment.UI.Toolbar.Button("  20  ", Speed20_Click);
            HideShow = new Core.Environment.UI.Toolbar.Button("Hide Show MS", HideShow_Click);
            Reset    = new Core.Environment.UI.Toolbar.Button("Reset", Reset_Click);
            fps1     = new Core.Environment.UI.Toolbar.Button("1 FPS", FPS1_Click);

            Core.Environment.UI.Toolbar.Add(Speed1, "Speed");
            Core.Environment.UI.Toolbar.Add(Speed2, "Speed");
            Core.Environment.UI.Toolbar.Add(Speed5, "Speed");
            Core.Environment.UI.Toolbar.Add(Speed10, "Speed");
            Core.Environment.UI.Toolbar.Add(Speed20, "Speed");
            Core.Environment.UI.Toolbar.Add(HideShow, "HideShow");
            Core.Environment.UI.Toolbar.Add(Reset, "Olefs Buttons");
            Core.Environment.UI.Toolbar.Add(fps1, "Olefs Buttons");

            toolsForm = new ModelTools();
            toolsForm.Show();
            toolsForm.Hide();

            //Add a button to load the form
            btnWMSt = new Core.Environment.UI.Toolbar.Button("Tools", btnWMSt_Click);
            Core.Environment.UI.Toolbar.Add(btnWMSt, "Tools");
        }
Esempio n. 2
0
        private void StandardConstructor()
        {
            localProperties = new LocalProperties(this);

            //Add some speed buttons
            Speed1         = new Core.Environment.UI.Toolbar.Button("  1  ", Speed1_Click);
            Speed5         = new Core.Environment.UI.Toolbar.Button("  5  ", Speed5_Click);
            Speed2         = new Core.Environment.UI.Toolbar.Button("  2  ", Speed2_Click);
            Speed10        = new Core.Environment.UI.Toolbar.Button("  10  ", Speed10_Click);
            Speed20        = new Core.Environment.UI.Toolbar.Button("  20  ", Speed20_Click);
            ResetButton    = new Core.Environment.UI.Toolbar.Button("Reset", Reset_Click);
            fps1           = new Core.Environment.UI.Toolbar.Button("1 FPS", FPS1_Click);
            localProp      = new Core.Environment.UI.Toolbar.Button("Local", localProp_Click);
            connectButt    = new Core.Environment.UI.Toolbar.Button("Connect", connectButt_Click);
            disconnectButt = new Core.Environment.UI.Toolbar.Button("Disconnect", disconnectButt_Click);
            HideShow       = new Core.Environment.UI.Toolbar.Button("Hide/Show DMS", hideShow_Click);

            Core.Environment.UI.Toolbar.Add(Speed1, "Speed");
            Core.Environment.UI.Toolbar.Add(Speed2, "Speed");
            Core.Environment.UI.Toolbar.Add(Speed5, "Speed");
            Core.Environment.UI.Toolbar.Add(Speed10, "Speed");
            Core.Environment.UI.Toolbar.Add(Speed20, "Speed");
            Core.Environment.UI.Toolbar.Add(ResetButton, "Project");
            Core.Environment.UI.Toolbar.Add(fps1, "Project");
            Core.Environment.UI.Toolbar.Add(localProp, "Tools");
            //Core.Environment.UI.Toolbar.Add(connectButt, "Communication");
            //Core.Environment.UI.Toolbar.Add(disconnectButt, "Communication");
            Core.Environment.UI.Toolbar.Add(HideShow, "Project");


            toolsForm = new ModelTools(this);
            toolsForm.Show();
            toolsForm.Hide();

            //Add a button to load the form
            btnWMSt = new Core.Environment.UI.Toolbar.Button("Tools", btnWMSt_Click);
            Core.Environment.UI.Toolbar.Add(btnWMSt, "Tools");
        }