Ejemplo n.º 1
0
 public App()
 {
     this.delayedActions = new DelayedActions((action) =>
     {
         this.Dispatcher.Invoke(action);
     });
 }
Ejemplo n.º 2
0
 public XmlCache(IServiceProvider site, SchemaCache schemaCache, DelayedActions handler)
 {
     this._loader      = new DomLoader(site);
     this._schemaCache = schemaCache;
     this._site        = site;
     this.Document     = new XmlDocument();
     this._actions     = handler;
     this._settings    = (Settings)this._site.GetService(typeof(Settings));
 }
Ejemplo n.º 3
0
 public Updater(Settings s, DelayedActions handler)
 {
     this._settings       = s;
     this._delayedActions = handler;
     OnSettingChanged(this, "LastUpdateCheck");
     OnSettingChanged(this, "UpdateFrequency");
     OnSettingChanged(this, "UpdateLocation");
     OnSettingChanged(this, "UpdateEnabled");
     s.Changed += new SettingsEventHandler(OnSettingChanged);
     StartTimer();
 }
Ejemplo n.º 4
0
 public Updater(Settings s, DelayedActions handler)
 {
     this._settings       = s;
     this._delayedActions = handler;
     s["LastUpdateCheck"] = _lastCheck;
     s["UpdateFrequency"] = _updateFrequency;
     s["UpdateLocation"]  = "";
     s["UpdateEnabled"]   = _enabled;
     s.Changed           += new SettingsEventHandler(OnSettingChanged);
     StartTimer();
 }
Ejemplo n.º 5
0
        public MainWindow()
        {
            this.undoManager             = new UndoManager(1000);
            this.settings                = new Settings();
            this.settings.StartupPath    = System.IO.Path.GetDirectoryName(Application.Current.StartupUri.LocalPath);
            this.settings.ExecutablePath = Application.Current.StartupUri.LocalPath;

            delayedActions = new DelayedActions((action) =>
            {
                this.Dispatcher.Invoke(action);
            });

            InitializeComponent();

            this.Loaded += MainWindow_Loaded;
        }
Ejemplo n.º 6
0
        public MainWindow()
        {
            this.Visibility              = Visibility.Hidden;
            this.settings                = Settings.Instance;
            this.settings.StartupPath    = System.IO.Path.GetDirectoryName(Application.Current.StartupUri.LocalPath);
            this.settings.ExecutablePath = Application.Current.StartupUri.LocalPath;

            delayedActions = new DelayedActions((action) =>
            {
                this.Dispatcher.Invoke(action);
            });

            InitializeComponent();

            this.Loaded          += MainWindow_Loaded;
            this.SizeChanged     += OnWindowSizeChanged;
            this.LocationChanged += OnWindowLocationChanged;

            this.recentFiles.RecentFileSelected += OnRecentFileSelected;
            this.recentFilesCombo = new RecentFilesComboBox(this.recentFiles, this.ComboBoxAddress);

            this.RestoreSettings();
            this.initialized = true;
        }