示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddMeasurementUnit frmAddUnit = new AddMeasurementUnit();

            frmAddUnit.CallFromUserControll = this;
            frmAddUnit.ShowDialog();
        }
        private void dgvBaseUnitList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            AddMeasurementUnit frmAddMeasurementUnit = new AddMeasurementUnit();
            DataGridViewRow currentRow = dgvBaseUnitList.Rows[e.RowIndex];

            int id = ObjectHelper.GetValueFromAnonymousType<int>(currentRow.DataBoundItem, "Id");
            frmAddMeasurementUnit.loadDataForEditMeasurementUnit(id);

            frmAddMeasurementUnit.CallFromUserControll = this;
            frmAddMeasurementUnit.ShowDialog();
        }
示例#3
0
        private void dgvBaseUnitList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            AddMeasurementUnit frmAddMeasurementUnit = new AddMeasurementUnit();
            DataGridViewRow    currentRow            = dgvBaseUnitList.Rows[e.RowIndex];

            int id = ObjectHelper.GetValueFromAnonymousType <int>(currentRow.DataBoundItem, "Id");

            frmAddMeasurementUnit.loadDataForEditMeasurementUnit(id);

            frmAddMeasurementUnit.CallFromUserControll = this;
            frmAddMeasurementUnit.ShowDialog();
        }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     AddMeasurementUnit frmAddUnit = new AddMeasurementUnit();
     frmAddUnit.CallFromUserControll = this;
     frmAddUnit.ShowDialog();
 }