private void uMOToolStripMenuItem_Click(object sender, EventArgs e) { Form sForm = UOMView.Instance(); sForm.MdiParent = this; sForm.Show(); sForm.Activate(); }
private void GetFocusedRowData(int index) { if (index >= 0 && UOMView.RowCount > 0) { UOMView.FocusedRowHandle = index; btnSave.Enabled = false; btnAddNew.Enabled = btnModify.Enabled = true; txtUOMCode.Text = UOMView.GetRowCellValue(index, UOMConversionsManager.UOMDetails.ID.ToString()).ToString(); UnitFrom.EditValue = UOMView.GetRowCellValue(index, UOMConversionsManager.UOMDetails.UnitFromCode.ToString()).ToString(); UnitTo.EditValue = UOMView.GetRowCellValue(index, UOMConversionsManager.UOMDetails.UnitToCode.ToString()).ToString(); spFactor.Value = decimal.Parse(UOMView.GetRowCellValue(index, UOMConversionsManager.UOMDetails.Factor.ToString()).ToString()); UOMConversions c = uom.Get(int.Parse(txtUOMCode.Text)); if (c.IsSpecial == true) { radUOMType.SelectedIndex = 1; Product.EditValue = c.ProductCode; } else { radUOMType.SelectedIndex = 0; } } }