public static InfoFrm getInstance() { if (InfoFrm._instance == null || InfoFrm._instance.IsDisposed) { InfoFrm._instance = new InfoFrm(); } return(InfoFrm._instance); }
private void gridMark_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { //Info //_log.Info("-------gridMark_CellDoubleClick------" + e.ColumnIndex); if (e.ColumnIndex == 5) { OIDSelect = (int)gridMark.Rows[e.RowIndex].Cells[0].Value; InfoFrm frm = InfoFrm.getInstance(); frm.setFrm(this); frm.setValue(gridMark.Rows[e.RowIndex].Cells[5].Value.ToString()); frm.ShowDialog(); } }