Beispiel #1
0
        private void MenuItemClickHandler(object sender, EventArgs e)
        {
            ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;

            if (sender.ToString().Equals("Contacts"))
            {
                ContactsForm form = new ContactsForm(this);
                form.ShowDialog();
            }
        }
        private void MenuItemClickHandler(object sender, EventArgs e)
        {
            ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;

            //MessageBox.Show(sender.ToString()); //test line
            if (sender.ToString().Equals("Contacts"))
            {
                var form = new ContactsForm();
                form.ShowDialog();
            }
            if (sender.ToString().Equals("Prediction"))
            {
                var form = new PredictionForm();
                form.Show();
            }
        }