Example #1
0
        public static void SwitchForm(string formName)
        {
            CloseForm(FormNavigator.currentForm);
            var formToShow = FormNavigator.OpenForm(formName);

            FormNavigator.currentForm = formToShow;
        }
Example #2
0
 private void addFormButton_Click(object sender, EventArgs e)
 {
     FormNavigator.OpenForm("addProductForm");
 }