示例#1
0
 public EditTrigger(PTZScene id)
 {
     InitializeComponent();
     monitor = id;
     comboBox1.SelectedIndex = (int)monitor.Trigger;
     dateTimePicker1.Value   = System.Convert.ToDateTime(monitor.DefaultTriggerData.Timer_Timeout.ToString());
     dateTimePicker2.Value   = monitor.DefaultTriggerData.Date_Period < dateTimePicker2.MinDate ? DateTime.Now : monitor.DefaultTriggerData.Date_Period;
     comboBox2.Items.AddRange(Structures.Load().Select(tmp => tmp.IP).ToArray());
     comboBox2.SelectedIndex = (int)monitor.DefaultTriggerData.CameraTrigger;
 }
示例#2
0
 public Editor(PTZScene ms, int id)
 {
     InitializeComponent();
     settings             = Structures.Load();
     monitor              = ms;
     ids                  = id;
     textBox1.Text        = ms.Name;
     numericUpDown1.Value = (decimal)ms.Timeout;
     LoadTiles();
     comboBox1.SelectedIndex = 0;
 }
示例#3
0
        public static void Run(PTZScene sc, Structures camera)
        {
            Thread th = new Thread(new ParameterizedThreadStart(_run));

            th.Start(new cm(sc, camera));
        }
示例#4
0
 public cm(PTZScene sc, Structures camera)
 {
     this.sc     = sc;
     this.camera = camera;
 }