예제 #1
0
        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;
        }
예제 #2
0
        public StickyStore(OptionStore store)
        {
            logger = LogManager.GetLogger(typeof(StickyStore));
            stickies = new Dictionary<int, NoteWindow>();
            this.store = store;

            persist = new StickyPersist();
            persist.StickiesLoaded += OnStickiesLoaded;
        }