using Audit.View;
using Audit.ViewModel;
using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Audit
{
///
/// MainWindow.xaml 的交互逻辑
///
public partial class MainWindow : MetroWindow
{
///
/// MainWindow
///
public MainWindow()
{
InitializeComponent();
}
private void TimePicker_SelectedDateTimeChanged(object sender, RoutedPropertyChangedEventArgs e)
{
}
private void exit(object sender, RoutedEventArgs e)
{
Application.Current.Shutdown();//关闭窗口
}
private void help(object sender, RoutedEventArgs e)
{
Windows.help help= new Windows.help();
help.Show();//实例化并打开帮助窗口
}
private void RadioButton_Checked(object sender, RoutedEventArgs e)
{
if (!(sender is RadioButton button)) return;
if (string.IsNullOrEmpty(button.Content.ToString())) return;
switch (button.Content.ToString())
{
case "查询": container.Content = new QueryView(); break;
case "统计": container.Content = new StatisticsView(); break;
default:
break;
}
}
}
}