public void display_other_information_data() { remote = new classes.Remote(); server_count = remote.select_server_count(); client_count = remote.select_client_count(); server_table = remote.select_server_table(); client_table = remote.select_client_table(); computer_count_table = remote.select_computer_count_per_department_table(); reported_count_table = remote.select_reported_count_per_computer_table(); lblServerCount.Text = server_count.ToString(); lblClientCount.Text = client_count.ToString(); dgvListOfServer.DataSource = server_table; dgvListOfServer.AutoGenerateColumns = false; dgvListOfClient.DataSource = client_table; dgvListOfClient.AutoGenerateColumns = false; dgvComputerCount.DataSource = computer_count_table; dgvComputerCount.AutoGenerateColumns = false; dgvMostReportedComputerUnit.DataSource = reported_count_table; dgvMostReportedComputerUnit.AutoGenerateColumns = false; }
public frmLecturePlayer() { InitializeComponent(); setFormLocation(); Guna.UI.Lib.GraphicsHelper.ShadowForm(this); remote = new classes.Remote(); }
public frmLectureRespondee() { instance = this; InitializeComponent(); classes.Database database = new classes.Database(); this.connectionString = database.dbConnection(); remote = new classes.Remote(); }
public frmView() { InitializeComponent(); remote = new classes.Remote(); machine_name = remote.machine_name; ip_address = remote.ip_address; lblLiveView.Text = machine_name + ": " + ip_address; }
private void pb_MouseDown(object sender, MouseEventArgs e) { PictureBox pb = (PictureBox)sender; if (e.Button == System.Windows.Forms.MouseButtons.Right) { cmsRemoteManagement.Show(Cursor.Position); remote = new classes.Remote(); remote.machine_name = pb.Name; remote.select_computer_unit(); } }
private void listViewDetailedView_MouseClick(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { if (listViewDetailedView.FocusedItem.Bounds.Contains(e.Location)) { cmsRemoteManagement.Show(Cursor.Position); remote = new classes.Remote(); remote.machine_name = listViewDetailedView.SelectedItems[0].SubItems[1].Text; remote.select_computer_unit(); } } }
private void facilitate_lecture() { remote = new classes.Remote(); try { DialogResult res = MessageBox.Show("You are about to facilitate a lecture. This means that your screen will display to all connected user. Do you wish to proceed?", "Facilitate Lecture", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res == DialogResult.Yes) { remote.send_request_to_facilitate_lecture(); includes.wf.admin.cf.frmLectureRespondee respondee = new wf.admin.cf.frmLectureRespondee(); respondee.ShowDialog(); respondee.start_load_client(); } } catch (Exception ex) { MessageBox.Show("Error on facilitating lecture: " + ex.Message); } }