private void simpleButton1_Click(object sender, EventArgs e)
        {
            int[] rowIndex = gridView3.GetSelectedRows();

            DataRow CurrentRow = gridView3.GetDataRow(rowIndex[0]);

            int room_id = Convert.ToInt16(CurrentRow["room_id"]);

            UpdatePanel = new XtraMessageBoxForm();
            UpdatePanel.StartPosition = FormStartPosition.CenterScreen;

            BasicInfoElectricMeterUpdate UserControl = new BasicInfoElectricMeterUpdate(room_id);

            UpdatePanel.Width  = (UserControl.Width + 16);
            UpdatePanel.Height = UserControl.Height;
            UpdatePanel.Controls.Add(UserControl);
            UpdatePanel.Show();

            //getRoomById
        }
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            int[] rowIndex = gridView3.GetSelectedRows();

            DataRow CurrentRow = gridView3.GetDataRow(rowIndex[0]);

            int room_id =  Convert.ToInt16(CurrentRow["room_id"]);

            UpdatePanel = new XtraMessageBoxForm();
            UpdatePanel.StartPosition = FormStartPosition.CenterScreen;

            BasicInfoElectricMeterUpdate UserControl = new BasicInfoElectricMeterUpdate(room_id);
            UpdatePanel.Width = (UserControl.Width + 16);
            UpdatePanel.Height = UserControl.Height;
            UpdatePanel.Controls.Add(UserControl);
            UpdatePanel.Show();

            //getRoomById
        }