void MI_Click(object sender, EventArgs e) { MenuItem MI = (MenuItem)sender; if (MI.Name == "Exit") { Application.Exit(); } if (MI.Name == "View notes") { ViewNote NoteWin = new ViewNote(); NoteWin.Show(); } if (MI.Name == "View statistics") { Statistics StatisticsWin = new Statistics(); StatisticsWin.Show(); //TakeNote Tk = new TakeNote(); //Tk.Show(); } }
private void button1_MouseClick(object sender, MouseEventArgs e) { ViewNote NoteWin = new ViewNote(); NoteWin.Show(); }
private void button1_Click(object sender, EventArgs e) { ViewNote Note1 = new ViewNote(); Note1.Show(); }