예제 #1
0
        }//End of btnVendorSource_Click(..)

        private void btnVendor_Click(object sender, EventArgs e)
        {
            FrmVendor form = new FrmVendor(_myAccessToken);

            form.Show();
            Close();
        }//End of btnVendor_Click(..)
예제 #2
0
 public FrmVendor(AccessToken acctoken)
 {
     InitializeComponent();
     var RoleAccess = new RoleAccess(acctoken, this);
     _myAccessToken = acctoken;
     Instance = this;
 }
예제 #3
0
        public FrmVendor(AccessToken acctoken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(acctoken, this);

            _myAccessToken = acctoken;
            Instance       = this;
        }
예제 #4
0
        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();
            }
        }
예제 #5
0
 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();
     }
 }
예제 #6
0
 private void btnVendor_Click(object sender, EventArgs e)
 {
     var form = new FrmVendor(_myAccessToken);
     form.Show();
     Close();
 }
예제 #7
0
 private void FrmVendor_FormClosed(object sender, FormClosedEventArgs e)
 {
     Instance = null;
 }
예제 #8
0
 private void FrmVendor_FormClosed(object sender, FormClosedEventArgs e)
 {
     Instance = null;
 }