You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
47 lines
1.4 KiB
using System.Windows; |
|
using System.Windows.Controls; |
|
using System.Windows.Input; |
|
using HandyControl.Controls; |
|
using SparkClient.Model.Helper; |
|
using SparkClient.ViewModel.Configuration; |
|
using SparkClient.ViewModel.Dialog; |
|
using SparkClient.ViewModel.Grading; |
|
using SparkClient.Views.Dialog; |
|
using SparkClient.Views.Grading; |
|
|
|
namespace SparkClient.ViewModel.BaseWindow; |
|
|
|
public class HomeWindowVM : BaseViewModel |
|
{ |
|
public ICommand ShowHelperPageCommand { get; } |
|
|
|
public ICommand ShowConfigPageCommand { get; } |
|
public ICommand ShowDiamondSelPageCommand { get; } |
|
|
|
public HomeWindowVM() |
|
{ |
|
ShowHelperPageCommand = new RelayCommand(ShowHelperPage); |
|
ShowConfigPageCommand = new RelayCommand(ShowConfigPage); |
|
ShowDiamondSelPageCommand = new RelayCommand(ShowDiamlondSelPage); |
|
} |
|
|
|
public void ShowHelperPage(object parameter) |
|
{ |
|
BaseControlVM vm = new BaseControlVM(new HelperPageVM(), MultilingualHelper.getString("Help")); |
|
WindowManager.mainViewModel.Content = vm; |
|
WindowManager.openContent.Add(vm); |
|
} |
|
|
|
public void ShowConfigPage(object parameter) |
|
{ |
|
ConfigMenuPageVM vm = new ConfigMenuPageVM(); |
|
WindowManager.mainViewModel.Content = vm; |
|
WindowManager.openContent.Add(vm); |
|
} |
|
|
|
public void ShowDiamlondSelPage(object parameter) |
|
{ |
|
StartDialog dialog = new StartDialog(); |
|
dialog.ShowDialog(); |
|
} |
|
} |