private void showAdminInfoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MemberListForm  frm  = new MemberListForm();
            WageCoefficient temp = gridView1.GetRow(gridView1.FocusedRowHandle) as WageCoefficient;

            frm.memberMessage(temp.AdminID);
            frm.Show();
        }
 private void btnShowAdminInfo_ItemClick(object sender, ItemClickEventArgs e)
 {
     using (var frm = new MemberListForm())
     {
         frm.memberMessage((string)layoutViewStockReceiveds.GetRowCellValue(layoutViewStockReceiveds.FocusedRowHandle, "AdminID"));
         frm.ShowDialog();
     }
 }
Ejemplo n.º 3
0
 private void btnShowAdm_Click(object sender, EventArgs e)
 {
     using (MemberListForm frm = new MemberListForm())
     {
         frm.memberMessage((gridView.GetRow(gridView.FocusedRowHandle) as Wage).AdminID);
         frm.ShowDialog();
     }
 }
Ejemplo n.º 4
0
        private void bntShowCus_ItemClick(object sender, ItemClickEventArgs e)
        {
            var bl = layoutViewBills.GetRow(layoutViewBills.FocusedRowHandle) as Bill;

            using (MemberListForm frm = new MemberListForm())
            {
                frm.SenMemberSelected(bl.CusID);
                frm.ShowDialog();
            }
        }
Ejemplo n.º 5
0
 private void nvbMemberManisger_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     if (currentUse != null && currentUse.CategoryMemberID == 1)
     {
         foreach (var i in MdiChildren)
         {
             i.Close();
         }
         MemberListForm frm = new MemberListForm {
             MdiParent = this, WindowState = FormWindowState.Maximized
         };
         frm.SenMemberSelected(currentUse.UseName);
         frm.Show();
     }
     else
     {
         if (MessageBox.Show("You must login with admin account!", "Error!", MessageBoxButtons.YesNo, MessageBoxIcon.Error) == DialogResult.Yes)
         {
             nvbLogIn_LinkClicked(null, null);
         }
     }
 }