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