예제 #1
0
 public EventCommandModel(EventCommandAttribute attr, QPP.Command.ICommand command)
 {
     Name = attr.Name;
     EventName = attr.EventName;
     Target = attr.Target;
     Command = command;
 }
예제 #2
0
 public RelayCommandModel(RelayCommandAttribute attr, QPP.Command.ICommand command)
 {
     Command = command;
     Name = attr.Name;
     Target = attr.Target;
     Usage = attr.Usage;
     Icon = attr.Icon;
     VisibleIndex = attr.VisibleIndex;
     BeginGroup = attr.BeginGroup;
     if (attr.Key != System.Windows.Input.Key.None)
         InputGestures.Add(new System.Windows.Input.KeyGesture(attr.Key, attr.ModifierKeys));
 }
        internal override void UpdateThemeResources( QPP.Wpf.UI.Controls.AvalonDock.Theme oldTheme = null )
        {
            base.UpdateThemeResources(oldTheme);

            if (_overlayWindow != null)
                _overlayWindow.UpdateThemeResources(oldTheme);
        }
 //获得选择的值
 private object GetMultiComboBoxSelectionValue(QPP.Wpf.UI.Controls.MultiComboBox.MultiComboBox comboBox)
 {
     if (this.SelectedItemBinding != null)
     {
         return comboBox.SelectedItem;
     }
     if (this.SelectedValueBinding != null)
     {
         return comboBox.SelectedValue;
     }
     return comboBox.SelectedValue;
 }
 private void ApplyColumnProperties(QPP.Wpf.UI.Controls.MultiComboBox.MultiComboBox comboBox)
 {
     ApplyBinding(this.SelectedItemBinding, comboBox, Selector.SelectedItemProperty);
     ApplyBinding(this.SelectedValueBinding, comboBox, Selector.SelectedValueProperty);
 }
예제 #6
0
 protected virtual void OnPreExecute(QPP.Command.CancelCommandEventArgs e)
 {
     if (PreExecute != null)
         PreExecute(this, e);
 }
예제 #7
0
 protected virtual void OnExecuted(QPP.Command.CommandEventArgs e)
 {
     if (Executed != null)
         Executed(this, e);
 }