private void radButtonElement1_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; if (screen == 1) { CodeNo_tt.Text = dbClss.TSt(radGridView1.CurrentRow.Cells["CHNo"].Value); this.Close(); } else { ChargePO sc = new ChargePO(); sc.ShowDialog(); GC.Collect(); GC.WaitForPendingFinalizers(); } this.Cursor = Cursors.Default; ClassLib.Memory.SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1); ClassLib.Memory.Heap(); }
private void radGridView1_CellDoubleClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { try { if (e.RowIndex > -1) { if (screen.Equals(1)) { CodeNo_tt.Text = dbClss.TSt(e.Row.Cells["CHNo"].Value); this.Close(); } else { ChargePO a = new ChargePO(dbClss.TSt(e.Row.Cells["CHNo"].Value)); a.ShowDialog(); //this.Close(); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }