public PurchaseBillAdd(PurcahseBillView view) { viewForm = view; Code = 0; InitializeComponent(); this.Text = this.Text + " (Add)"; BindDropDown(); }
public static PurcahseBillView Instance() { if (sForm == null) { sForm = new PurcahseBillView(); } return(sForm); }
public PurchaseBillAdd(PurcahseBillView view, int code) { viewForm = view; Code = code; InitializeComponent(); if (code > 0) { this.Text = this.Text + " (Edit)"; } else { this.Text = this.Text + " (Add)"; } BindDropDown(); }