/// <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(); }
internal static bool CanExecute(ShellViewModel viewModel) { return(StartCommand.CanStart(viewModel)); }
/// <summary> /// Initializes a new instance of the <see cref="StartCommand<TController, TModel>"/> class. /// </summary> /// <param name="viewModel">The view model.</param> public StartCommand(ShellViewModel viewModel) : base(viewModel) { }
/// <summary> /// Determines whether a data model can be opened for the specified <see cref="ViewModel<TController, TModel>"/>. /// </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); }
/// <summary> /// Determines whether a data model can be opened for the specified <see cref="ViewModel<TController, TModel>"/>. /// </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); }
/// <summary> /// Initializes a new instance of the <see cref="SaveToDBCommand<TController, TModel>"/> 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; }
/// <summary> /// Initializes a new instance of the <see cref="SaveToDBCommand<TController, TModel>"/> class. /// </summary> /// <param name="viewModel">The view model.</param> public SaveToDBCommand(ShellViewModel viewModel) : this(viewModel, null) { }
internal static void Execute(ShellViewModel viewModel, Window owner) { SaveToDBCommand.Save(viewModel, owner); }
internal static bool CanExecute(ShellViewModel viewModel) { return(SaveToDBCommand.CanSave(viewModel)); }