コード例 #1
0
 /// <summary>
 /// Starts the migration or synchronization session.
 /// </summary>
 /// <param name="viewModel">The view model.</param>
 /// <param name="owner">The owner window.</param>
 /// <param name="openPath">The path from which to open.</param>
 public static void Start(ShellViewModel viewModel)
 {
     viewModel.Start();
 }
コード例 #2
0
 internal static bool CanExecute(ShellViewModel viewModel)
 {
     return(StartCommand.CanStart(viewModel));
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StartCommand&lt;TController, TModel&gt;"/> class.
 /// </summary>
 /// <param name="viewModel">The view model.</param>
 public StartCommand(ShellViewModel viewModel)
     : base(viewModel)
 {
 }
コード例 #4
0
 /// <summary>
 /// Determines whether a data model can be opened for the specified <see cref="ViewModel&lt;TController, TModel&gt;"/>.
 /// </summary>
 /// <param name="viewModel">The view model.</param>
 /// <returns>
 ///     <c>true</c> if a data model can be opened; otherwise, <c>false</c>.
 /// </returns>
 public static bool CanStart(ShellViewModel viewModel)
 {
     return(viewModel.CanStart);
 }
コード例 #5
0
 /// <summary>
 /// Determines whether a data model can be opened for the specified <see cref="ViewModel&lt;TController, TModel&gt;"/>.
 /// </summary>
 /// <param name="viewModel">The view model.</param>
 /// <returns>
 ///     <c>true</c> if a data model can be opened; otherwise, <c>false</c>.
 /// </returns>
 public static bool CanSave(ShellViewModel viewModel)
 {
     return(viewModel.CanSaveToDB);
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveToDBCommand&lt;TController, TModel&gt;"/> class.
 /// </summary>
 /// <param name="viewModel">The view model.</param>
 /// <param name="owner">The owner window.</param>
 public SaveToDBCommand(ShellViewModel viewModel, Window owner)
     : base(viewModel)
 {
     this.m_owner = owner;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveToDBCommand&lt;TController, TModel&gt;"/> class.
 /// </summary>
 /// <param name="viewModel">The view model.</param>
 public SaveToDBCommand(ShellViewModel viewModel)
     : this(viewModel, null)
 {
 }
コード例 #8
0
 internal static void Execute(ShellViewModel viewModel, Window owner)
 {
     SaveToDBCommand.Save(viewModel, owner);
 }
コード例 #9
0
 internal static bool CanExecute(ShellViewModel viewModel)
 {
     return(SaveToDBCommand.CanSave(viewModel));
 }