private void NotifyHelper_MousePositionDataBind(MousePointEventArgs args) { if (CurrentTreeViewItem == _dummyTreeGridViewItem) { CurrentTreeViewItem = new TreeGridViewItem() { DataContext = new EventTriggerModel() }; } CurrentTreeViewItem.DataContext <EventTriggerModel>().MonitorInfo = args.MonitorInfo; CurrentTreeViewItem.DataContext <EventTriggerModel>().MouseTriggerInfo = args.MouseTriggerInfo; foreach (var item in _mousePointViews) { item.Hide(); } //btnMouseWheel.Visibility = Visibility.Visible; //btnMouseWheel.IsEnabled = true; }
private void NotifyHelper_MousePositionDataBind(MousePointEventArgs e) { if (e.MousePointViewMode != MousePointViewMode.Game) { return; } if (CurrentTreeViewItem == _dummyTreeGridViewItem) { CurrentTreeViewItem = new TreeGridViewItem() { DataContext = new GameEventTriggerModel() }; } CurrentTreeViewItem.DataContext <GameEventTriggerModel>().MonitorInfo = e.MonitorInfo; CurrentTreeViewItem.DataContext <GameEventTriggerModel>().MouseTriggerInfo = e.MouseTriggerInfo; foreach (var item in _mousePointViews) { item.Hide(); } }