Example #1
0
        public Form1()
        {
            this.IsMdiContainer = true;

            tabControl1 = new TabControlWithAdd(this);

            InitializeComponent();

            this.tableLayoutPanel2.Controls.Add(tabControl1, 0, 1);

            charactersList = new List<string>();
            imagesList = new List<string>();

            listBox1.MouseUp += listBox1_MouseUp;
            listBox2.MouseUp += listBox2_MouseUp;

            WindowState = FormWindowState.Maximized;
        }
Example #2
0
        //----------------------------------------------------------------------------------------------------------------
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.listBox1.Items.Clear();
            this.listBox2.Items.Clear();

            charactersList.Clear();
            imagesList.Clear();

            tabControl1.Dispose();
            tabControl1 = new TabControlWithAdd(this);
            this.tableLayoutPanel2.Controls.Add(tabControl1, 0, 1);
        }