using System; using System.Collections.Generic; using System.Linq; 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.Shapes; namespace Muchinfo.MTPClient.Update { /// /// TipsWindow.xaml 的交互逻辑 /// public partial class TipsWindow : Window { public TipsWindow(string tips) { InitializeComponent(); this.ShowInTaskbar = false; this.Topmost = true; this.txt_content.Text = tips; this.MouseDown += Window_MouseDown; } private void Button_Click(object sender, RoutedEventArgs e) { this.DialogResult = true; } private void Button_Click_1(object sender, RoutedEventArgs e) { this.DialogResult = false; } private void Bnt_Close_OnClick(object sender, RoutedEventArgs e) { this.DialogResult = false; } private void Window_MouseDown(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) DragMove(); } } }