Exemple #1
0
 public Department(DeptView view)
 {
     viewForm = view;
     Code     = 0;
     InitializeComponent();
     // BindDropDown();
 }
Exemple #2
0
 public static DeptView Instance()
 {
     if (sForm == null)
     {
         sForm = new DeptView();
     }
     return(sForm);
 }
Exemple #3
0
 public Department(DeptView view, int code)
 {
     viewForm = view;
     Code     = code;
     InitializeComponent();
     if (code > 0)
     {
         this.Text    = this.Text + " (Edit)";
         btnSave.Text = "Update";
     }
     else
     {
         this.Text = this.Text + " (Add)";
     }
 }