public EventWriterMonitor(DialogMonitor D) { this.DS = D.monitor.DS; this.GUID = D.monitor.GUID; this.Date = D.Date; this.ExtendedInfo = D.ExtendedInfo; }
public Form13MonitorRemove(DialogMonitor monitorDialog) { this.monitorDialog = monitorDialog; InitializeComponent(); //this.Room.Text = monitorDialog.Room; //this.Department.Text = monitorDialog.Department; //this.Number.Text = monitorDialog.Number; //this.CompName.Text = monitorDialog.ComputerName; //this.FullName.Text = monitorDialog.FullName; }
public void ShowInfo(BindingSource BS, Boolean ShowDelButton) { if (MonitorInfo != null) { int MonitorID = GetidCurrentMonitor(BS); DS_NiheComputers.MonitorRow mr = DS.Monitor.FindByID(MonitorID); Monitor monitor = new Monitor(DS, mr); DialogMonitor D = new DialogMonitor(monitor); D.ShowDelButton = ShowDelButton; MonitorInfo(this, D); } }
public Form16MonitorInfo(Class1 C1, DialogMonitor D) { InitializeComponent(); string filterString = string.Format(@"monitorGuid = '{0}'", D.GUID); this.BS = C1.BSMonitorEvent; BS.Filter = filterString; monitorEventDataGridView.DataSource = BS; this.C1 = C1; this.D = D; this.panel1.Visible = D.ShowDelButton; this.panel1.Enabled = !D.Deleted; this.propertyGrid1.SelectedObject = D.monitor; }
private void WriteEvent(string S1, DialogMonitor D) { WriteEvent(S1, D.Date, D.monitor, D.ExtendedInfo); }
public void Remove(DialogMonitor D) { DisconectComputer(D.monitor, D.Date, D.ExtendedInfo); D.monitor.Remove(); WriteEvent("Списание монитора", D); }
void Monitor_MonitorRemoveEvent(object sender, DialogMonitor Dialog) { Form13MonitorRemove F = new Form13MonitorRemove(Dialog); F.ShowDialog(); }
void Monitor_MonitorInfo(object sender, DialogMonitor Dialog) { Form16MonitorInfo F = new Form16MonitorInfo(C1, Dialog); F.ShowDialog(); }