예제 #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;
 }