Add project files.

This commit is contained in:
2022-05-26 15:19:31 +02:00
parent 44afa68e45
commit a57dcfe03b
57 changed files with 1907 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using OemanTrader.WPF.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace OemanTrader.WPF.State.Navigators
{
public enum ViewType
{
Home,
Portfolio
}
public interface INavigator
{
ViewModelBase CurrentViewModel { get; set; }
ICommand UpdateCurrentViewModelCommand { get; }
}
}

View File

@ -0,0 +1,34 @@
using OemanTrader.WPF.Commands;
using OemanTrader.WPF.Models;
using OemanTrader.WPF.ViewModels;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace OemanTrader.WPF.State.Navigators
{
public class Navigator : ObservableObject, INavigator
{
private ViewModelBase _currentViewModel;
public ViewModelBase CurrentViewModel
{
get
{
return _currentViewModel;
}
set
{
_currentViewModel = value;
OnPropertyChanged(nameof(CurrentViewModel));
}
}
public ICommand UpdateCurrentViewModelCommand => new UpdateCurrentViewModelCommand(this);
}
}