public StateAdd(StateView view) { viewForm = view; Code = 0.0; InitializeComponent(); this.Text = this.Text + " (Add)"; }
/// <summary> /// open page in edit format existing record /// </summary> /// <param name="_accountMasterView"></param> /// <param name="_Code"></param> public StateAdd(StateView view, Double code) { viewForm = view; Code = code; InitializeComponent(); this.Text = this.Text + " (Edit)"; }
public static StateView Instance() { if (sForm == null) { sForm = new StateView(); } return(sForm); }