Esempio n. 1
0
        public Form1()
        {
            undoButtons = new List <ToolStripButton>();
            redoButtons = new List <ToolStripButton>();
            DataManger.load();


            KeyDown += shortcutKeydown;
            KeyDown += Form1_KeyDown;
            tb       = generateToolStrip();



            DataControllercs.onAction += ActionExcuted;
            KeyPreview = true;

            InitializeComponent();
            BackColor = GraphicLoader.getColorLightGray();


            Controls.Add(tb);
            initRCView();

            ClientSize   = new Size(1000, 700);
            MinimumSize  = Size;
            ResizeEnd   += Form1_ResizeEnd;
            ResizeBegin += Form1_ResizeBegin;

            uff.BackColor  = GraphicLoader.getColorLightGray();
            sff.BackColor  = GraphicLoader.getColorLightGray();
            soff.BackColor = GraphicLoader.getColorLightGray();
            pff.BackColor  = GraphicLoader.getColorLightGray();


            uff.Controls.Add(generateToolStrip());
            uff.Controls.Add(generateStatusBar());
            uff.KeyDown   += shortcutKeydown;
            uff.KeyPreview = true;

            sff.Controls.Add(generateToolStrip());
            sff.Controls.Add(generateStatusBar());
            sff.KeyDown   += shortcutKeydown;
            sff.KeyPreview = true;

            soff.Controls.Add(generateToolStrip());
            soff.Controls.Add(generateStatusBar());
            soff.KeyDown   += shortcutKeydown;
            soff.KeyPreview = true;

            pff.Controls.Add(generateToolStrip());
            pff.Controls.Add(generateStatusBar());
            pff.KeyDown   += shortcutKeydown;
            pff.KeyPreview = true;
            sStrip         = generateStatusBar();
            Controls.Add(sStrip);
        }
Esempio n. 2
0
        private void TutorialEnd()
        {
            DataManger.load();

            DataControllercs.isTutorial = false;
            form.tb.Enabled             = true;
            foreach (ToolStripItem item in form.tb.Items)
            {
                item.Enabled = true;
            }
            form.initRCView();
        }