Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindow"/> class.
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            _viewModel = new MainViewModel();
            this.DataContext = _viewModel;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveSettingsTaskCommand"/> class.
 /// </summary>
 /// <param name="parent">The parent ViewModel.</param>
 public SaveSettingsTaskCommand(MainViewModel parent)
     : base()
 {
     Assertions.AssertNotNull(parent, "parent");
     Parameters.Add("Parent", parent);
 }