コード例 #1
0
 public EventWriterMonitor(DialogMonitor D)
 {
     this.DS           = D.monitor.DS;
     this.GUID         = D.monitor.GUID;
     this.Date         = D.Date;
     this.ExtendedInfo = D.ExtendedInfo;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
        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;
        }
コード例 #5
0
 private void WriteEvent(string S1, DialogMonitor D)
 {
     WriteEvent(S1, D.Date, D.monitor, D.ExtendedInfo);
 }
コード例 #6
0
 public void Remove(DialogMonitor D)
 {
     DisconectComputer(D.monitor, D.Date, D.ExtendedInfo);
     D.monitor.Remove();
     WriteEvent("Списание монитора", D);
 }
コード例 #7
0
ファイル: Form01.cs プロジェクト: BelarusVadzim/NIHEprojects
        void Monitor_MonitorRemoveEvent(object sender, DialogMonitor Dialog)
        {
            Form13MonitorRemove F = new Form13MonitorRemove(Dialog);

            F.ShowDialog();
        }
コード例 #8
0
ファイル: Form01.cs プロジェクト: BelarusVadzim/NIHEprojects
        void Monitor_MonitorInfo(object sender, DialogMonitor Dialog)
        {
            Form16MonitorInfo F = new Form16MonitorInfo(C1, Dialog);

            F.ShowDialog();
        }