private void SelectDevicesOfSrvman_Load(object sender, EventArgs e)
        {
            try
            {
                //label1.Text = idvalue;
                //  var mainObj = new MainFrm();
                var db = new linqDataContext();
                GVTableNotSelectedDevice.DataSource = db.ShowDeviceNSofSrvman();
                GVTableSelectedDevice.DataSource    = db.ShowDeviceSofSrvman(Convert.ToInt32(idvalue));
                ////Convert.ToInt32(mainObj.txtSelectSrvman.Text)

                this.FormBorderStyle = FormBorderStyle.FixedDialog;
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
        }
        private void btnLtoR_Click(object sender, EventArgs e)
        {
            try
            {
                if (GVTableSelectedDevice.RowCount > 0)
                {
                    var mainObj = new MainFrm();
                    var db      = new linqDataContext();

                    db.FreeDeviceSrvMan(Convert.ToInt32(GVTableSelectedDevice.CurrentRow.Cells[0].Value), null);

                    GVTableNotSelectedDevice.DataSource = db.ShowDeviceNSofSrvman();
                    GVTableSelectedDevice.DataSource    = db.ShowDeviceSofSrvman(Convert.ToInt32(idvalue));
                }
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
        }