예제 #1
0
        private void создатьToolStripMenuItem_Click(object sender, EventArgs e)//обнуление формы
        {
            isFirstStart.isOpenFile = false;
            Form1 newform = new Form1();

            newform.Show();
            this.Dispose(false);
            genHtmlText = new gentext();
        }
예제 #2
0
        private void загрузитьToolStripMenuItem_Click(object sender, EventArgs e)//событие меню загрузить файл
        {
            OpenFileDialog openFile = new OpenFileDialog();

            if (openFile.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }
            isFirstStart.isOpenFile = true;
            isFirstStart.openFile   = openFile;
            Form1 newform = new Form1();

            newform.Show();
            this.Dispose(false);
            genHtmlText = new gentext();
        }