public MainWindowHandle(MainWindow window) { this.window = window; logger.Info("Creating MainWindowHandle instance."); optionStore = new OptionStore(); optionStore.OptionsSet += ApplyOptions; optionStore.Persist.LoadOptions(); stickyStore = new StickyStore(optionStore); stickyStore.StickyChanged += OnStickyChanged; stickyStore.Persist.LoadStickies(); icon = new TrayTaskIcon(); icon.Command += Command; Register r = new Register(); window.cbStartWithWindows.IsEnabled = r.Available; }
public StickyStore(OptionStore store) { logger = LogManager.GetLogger(typeof(StickyStore)); stickies = new Dictionary<int, NoteWindow>(); this.store = store; persist = new StickyPersist(); persist.StickiesLoaded += OnStickiesLoaded; }