示例#1
0
 public static void BindNavButton(Button button, FormGenerator formGen)
 {
     if (buttons.Contains(button))
     {
         button.Click += (sender, e) => NavButtonWrapper(sender, e, formGen);
     }
 }
示例#2
0
 public static void NavButtonWrapper(object sender, EventArgs e, FormGenerator formGen)
 {
     ClearControls();
     formGen.GenForm();
 }