Exemplo n.º 1
0
        private void test_IDE_Load(object sender, EventArgs e)
        {
            Design design = new Design(designsList);

            design.createNewFile(tabControl1);
            if (tabControl1.TabCount > 0)
            {
                documentMap1.Target = designsList[tabControl1.SelectedIndex].codeTextBox;
            }


            //Stolen code to design the tabcontrol

            // We will draw the tabs.
            tabControl1.DrawMode = TabDrawMode.OwnerDrawFixed;

            // SizeMode must be Fixed to change tab size.
            tabControl1.SizeMode = TabSizeMode.Fixed;

            // Set the size for the tabs.
            Size tab_size = tabControl1.ItemSize;

            tab_size.Width       = 100;
            tab_size.Height     += 6;
            tabControl1.ItemSize = tab_size;
        }
Exemplo n.º 2
0
        private void newToolStripButton_Click(object sender, EventArgs e)
        {
            Design design = new Design(designsList);

            design.createNewFile(tabControl1);
        }
Exemplo n.º 3
0
        private void test_IDE_Load(object sender, EventArgs e)
        {
            Design design = new Design(designsList);

            design.createNewFile(tabControl1, design.codeTextBox);
        }