44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
|
|
using System.Text;
|
|||
|
|
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 InSituLaboratory.Views
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Interaction logic for MainWindow.xaml
|
|||
|
|
/// </summary>
|
|||
|
|
public partial class MainView : Window
|
|||
|
|
{
|
|||
|
|
public MainView()
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|||
|
|
{
|
|||
|
|
this.Close();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void Button_MinClick(object sender, RoutedEventArgs e)
|
|||
|
|
{
|
|||
|
|
this.WindowState = WindowState.Minimized;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void Button_MaxClick(object sender, RoutedEventArgs e)
|
|||
|
|
{
|
|||
|
|
//判断是否以及最大化,最大化就还原窗口,否则最大化
|
|||
|
|
if (this.WindowState == WindowState.Maximized)
|
|||
|
|
this.WindowState = WindowState.Normal;
|
|||
|
|
else
|
|||
|
|
this.WindowState = WindowState.Maximized;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|