public App() { this.delayedActions = new DelayedActions((action) => { this.Dispatcher.Invoke(action); }); }
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)); }
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(); }
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(); }
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; }
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; }