private void radButtonElement1_Click(object sender, EventArgs e)
        {
            try
            {
                if (screen.Equals(1))
                {
                    if (radGridView1.Rows.Count <= 0)
                    {
                        return;
                    }

                    CodeNo_tt.Text = Convert.ToString(radGridView1.CurrentRow.Cells["PartNo"].Value);
                    BomNo_tt.Text  = Convert.ToString(radGridView1.CurrentRow.Cells["BomNo"].Value);
                    this.Close();
                }
                else
                {
                    this.Cursor = Cursors.WaitCursor;
                    Bom sc = new Bom();
                    this.Cursor = Cursors.Default;
                    sc.ShowDialog();
                    GC.Collect();
                    GC.WaitForPendingFinalizers();

                    ClassLib.Memory.SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1);
                    ClassLib.Memory.Heap();
                }
            }catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
 private void radGridView1_CellDoubleClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex > -1)
         {
             if (screen.Equals(1))
             {
                 CodeNo_tt.Text = Convert.ToString(e.Row.Cells["PartNo"].Value);
                 BomNo_tt.Text  = Convert.ToString(e.Row.Cells["BomNo"].Value);
                 this.Close();
             }
             else
             {
                 Bom a = new Bom(Convert.ToString(e.Row.Cells["PartNo"].Value)
                                 , Convert.ToString(e.Row.Cells["BomNo"].Value)
                                 );
                 a.ShowDialog();
                 //this.Close();
             }
         }
     }
     catch (Exception ex) { MessageBox.Show(ex.Message); }
 }