예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ViewConflictsCommandBinding&lt;TController, TModel&gt;"/> class.
        /// </summary>
        /// <param name="viewModel">The view model.</param>
        public ViewConflictsCommandBinding(ShellViewModel viewModel)
        {
            this.Command = ShellCommands.ViewConflicts;

            this.CanExecute += delegate(object sender, CanExecuteRoutedEventArgs e)
            {
                e.CanExecute = ViewConflictsCommand.CanExecute(viewModel, e.Parameter);
            };

            this.Executed += delegate(object sender, ExecutedRoutedEventArgs e)
            {
                ViewConflictsCommand.Execute(viewModel);
            };
        }
예제 #2
0
 internal static void Execute(ShellViewModel viewModel)
 {
     ViewConflictsCommand.Open(viewModel);
 }
예제 #3
0
 internal static bool CanExecute(ShellViewModel viewModel, object parameter)
 {
     return(ViewConflictsCommand.CanOpen(viewModel));
 }