コード例 #1
0
        private void btnAddIssueLocation_Click(object sender, EventArgs e)
        {
            Modals.ReceivingUnitsDetails recDetail = new ReceivingUnitsDetails();
            var result = recDetail.ShowDialog();

            LoadIssueLocations();
        }
コード例 #2
0
        private void gridReceivingUnitView_DoubleClick(object sender, EventArgs e)
        {
            var dr = gridReceivingUnitView.GetFocusedDataRow();
            int receivingUnitID = Convert.ToInt32(dr["ID"]);

            Modals.ReceivingUnitsDetails recDetail = new ReceivingUnitsDetails(receivingUnitID);
            recDetail.ShowDialog();
            LoadIssueLocations();
        }
コード例 #3
0
        private void grdReceivingUnit_DoubleClick(object sender, EventArgs e)
        {
            DataRow dr = grdViewReceivingUnit.GetFocusedDataRow();

            if (dr != null)
            {
                int itemId = Convert.ToInt32(dr["ID"]);
                ReceivingUnitsDetails con = new ReceivingUnitsDetails(itemId);
                con.ShowDialog();
            }
        }
コード例 #4
0
 private void btnAddReceivingUnit_Click(object sender, EventArgs e)
 {
     if (this.Modal)
     {
         this.Hide();
         ReceivingUnitsDetails con = new ReceivingUnitsDetails(-1);
         con.ShowDialog();
         this.Show();
     }
     else
     {
         ReceivingUnitsDetails con = new ReceivingUnitsDetails(-1);
         con.ShowDialog();
     }
 }