public TariffAdd(TariffView 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 TariffAdd(TariffView view, Double code) { viewForm = view; Code = code; InitializeComponent(); this.Text = this.Text + " (Edit)"; }
public static TariffView Instance() { if (sForm == null) { sForm = new TariffView(); } return(sForm); }