public Department(DeptView view) { viewForm = view; Code = 0; InitializeComponent(); // BindDropDown(); }
public static DeptView Instance() { if (sForm == null) { sForm = new DeptView(); } return(sForm); }
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)"; } }