| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- 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
- {
- /// <summary>
- /// TipsWindow.xaml 的交互逻辑
- /// </summary>
- 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();
- }
-
- }
- }
|