Example #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            try
            {
                int selectedUnit = int.Parse(grdChildOne.SelectedRows[0].Cells[0].Value.ToString());

                Forms.Frm_Copy_Unit frmCopyUnit = new Forms.Frm_Copy_Unit(_selectedItemDataId, selectedUnit);
                frmCopyUnit.ShowDialog();
            }
            catch
            {
                Exception ex = new Exception("There are either no item selected in the grid, or there are no data available to allow this action!");
                HandleException(ex);
            }
        }
Example #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            try
            {
                int selectedUnit = int.Parse(grdChildOne.SelectedRows[0].Cells[0].Value.ToString());

                Forms.Frm_Copy_Unit frmCopyUnit = new Forms.Frm_Copy_Unit(_selectedItemDataId, selectedUnit);
                frmCopyUnit.ShowDialog();
            }
            catch
            {
                Exception ex = new Exception("There are either no item selected in the grid, or there are no data available to allow this action!");
                HandleException(ex);
            }
        }