コード例 #1
0
        private void btnRtoL_Click(object sender, EventArgs e)
        {
            try
            {
                if (GVTableNotSelectedDevice.RowCount > 0)
                {
                    var mainObj = new MainFrm();
                    var db      = new linqDataContext();

                    db.ChangeDeviceSrvMan(Convert.ToInt32(GVTableNotSelectedDevice.CurrentRow.Cells[0].Value), Convert.ToInt32(idvalue));

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