}//End of btnVendorSource_Click(..) private void btnVendor_Click(object sender, EventArgs e) { FrmVendor form = new FrmVendor(_myAccessToken); form.Show(); Close(); }//End of btnVendor_Click(..)
public FrmVendor(AccessToken acctoken) { InitializeComponent(); var RoleAccess = new RoleAccess(acctoken, this); _myAccessToken = acctoken; Instance = this; }
private void vendorsToolStripMenuItem_Click(object sender, EventArgs e) { FrmVendor frmVendor; if (FrmVendor.Instance == null) { frmVendor = new FrmVendor(_myAccessToken); frmVendor.MdiParent = this; frmVendor.StartPosition = FormStartPosition.CenterScreen; frmVendor.Show(); } else { FrmVendor.Instance.WindowState = FormWindowState.Normal; FrmVendor.Instance.Show(); FrmVendor.Instance.BringToFront(); } }
private void btnVendor_Click(object sender, EventArgs e) { var form = new FrmVendor(_myAccessToken); form.Show(); Close(); }
private void FrmVendor_FormClosed(object sender, FormClosedEventArgs e) { Instance = null; }