Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (MainClass.instance.addNoteView == null)
            {
                AddNoteForm addNoteView = new AddNoteForm();
            }

            MainClass.instance.addNoteView.setTextBackup();
            MainClass.instance.addNoteView.Show();
        }
Exemplo n.º 2
0
 private void AddNoteEvent()
 {
     using (AddNoteForm addForm = new AddNoteForm(GetMessage))
     {
         this.WindowState    = FormWindowState.Minimized;
         addNoteFrmActivated = true;
         addForm.ShowDialog();
     }
     this.WindowState    = FormWindowState.Normal;
     addNoteFrmActivated = false;
 }