示例#1
0
        /// <summary>
        /// Open new blank notepad form by hotkeys;
        /// </summary>
        public void OpenNewForm()
        {
            Form1 form = new Form1(this);

            form.parent = this;
            form.OpenNewTab(null, null);
            form.Show();
            numOfForms++;
        }
示例#2
0
        /// <summary>
        /// Open new blank notepad form by button;
        /// </summary>
        public void OpenNewForm(object sender, EventArgs e)
        {
            if (numOfForms > 99)
            {
                return;
            }
            Form1 form = new Form1(this);

            form.parent = this;
            form.OpenNewTab(null, null);
            form.Show();
            numOfForms++;
        }