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.
57 lines
1.7 KiB
57 lines
1.7 KiB
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 SUNLIGHT_Administrate.git
|
|
{
|
|
/// <summary>
|
|
/// MainWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class MainWindow : Window
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void TimePicker_SelectedDateTimeChanged(object sender, RoutedPropertyChangedEventArgs<DateTime?> e)
|
|
{
|
|
}
|
|
|
|
private void Exit(object sender, RoutedEventArgs e)
|
|
{
|
|
Application.Current.Shutdown();//关闭全部窗口
|
|
}
|
|
|
|
private void Help(object sender, RoutedEventArgs e)
|
|
{
|
|
//System.Windows.help help = new System.Windows.help();
|
|
//help.ShowDialog();//实例化并置顶打开信息窗口
|
|
}
|
|
|
|
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 StuffView(); break;
|
|
// case "统计": container.Content = new StatisticsView(); break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|