Beispiel #1
0
 public Options(OptionsData data)
 {
     InitializeComponent();
     _data = data;
     DataContext = _data;
 }
Beispiel #2
0
        public AlertScanner()
        {
            _mData = new MainData();
            _mData.PropertyChanged += OnDataUpdated;

            _oData = new OptionsData();
            _oData.PropertyChanged += OnDataUpdated;

            _rssManager = new RSSManager();

            UpdateAlerts();
        }
Beispiel #3
0
 protected virtual void Dispose(Boolean disposing)
 {
     if (_disposed)
         return;
     if (disposing)
     {
     }
     if (_mData != null)
         _mData = null;
     if (_oData != null)
     {
         _oData.Save();
         _oData = null;
     }
     if (_rssManager != null)
     {
         _rssManager = null;
     }
 }
Beispiel #4
0
        public Main(MainData mData, OptionsData oData)
        {
            InitializeComponent();

            _mData = mData;
            _mData.PropertyChanged += OnActivitiesUpdated;
            _oData = oData;
            _oData.PropertyChanged += OnDataUpdated;
            
            Init();
            
            UpdateActivitesList();
            UpdatePlatforms();
            DataContext = this;
        }