Beispiel #1
0
 public TrackVideoForm(Form owner, CCTVInfo info, int bandwidth, TrackAdjustment adjustment)
 {
     InitializeComponent();
     Owner              = owner;
     _info              = info;
     _bandwidth         = bandwidth;
     _adjustment        = adjustment;
     this.StartPosition = FormStartPosition.CenterScreen;
 }
Beispiel #2
0
        public CCTVNodeShow(LocatorAndBorder locator)
        {
            _locator    = locator;
            _adjustment = new TrackAdjustment();
            string path = System.IO.Directory.GetParent(System.Windows.Forms.Application.LocalUserAppDataPath).FullName;

            ConfigPath = System.IO.Path.Combine(path, "CCTVConfig.xml");
            _config    = ConfigFile <ConfigCCTV> .FromFile(ConfigPath);

            if (_config != null)
            {
                updateCCTVInfo();
            }
            _locator.OnMapRefreshed       += onMapRefreshed;
            _menuBarsInfo                  = MenuBarsBaseInfo.Instance;
            _menuBarsInfo.PropertyChanged += _menuBarsInfo_PropertyChanged;
        }