public UnclickablePlugin(IApplication app, IPomodoroEngine engine, UnclickableSettings settings, ISettings globalSettings) { _engine = engine; _settings = settings; _globalSettings = globalSettings; _window = (Window)app; _app = app; _engine.PropertyChanged += _engine_PropertyChanged; _window.Loaded += (sender, args) => SaveInitialStyle(); _window.MouseEnter += _window_MouseEnter; _globalSettings.PropertyChanged += _globalSettings_PropertyChanged;; }
public UnclickableSettingsWindow(UnclickableSettings settings) { Settings = settings; Settings.DeferChanges(); InitializeComponent(); var counterValues = new List <BehaviourListItem> { new BehaviourListItem { Item = UnclickablityType.ClickThrough, Title = "Click through" }, new BehaviourListItem { Item = UnclickablityType.MoveHorizontally, Title = "Move horizontally" }, new BehaviourListItem { Item = UnclickablityType.MoveVertically, Title = "Move vertically" }, }; BehaviourList.ItemsSource = counterValues; DataContext = this; }