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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

62 lines
1.9 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_Audit.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)
{
Windows.help help = new 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;
}
}
private void Button_Click(object sender, RoutedEventArgs e)//最小化按钮
{
SystemCommands.MinimizeWindow(this);//最小化页面
}
}
}