Exemple #1
0
 /// <summary>
 /// 关闭按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Rectangle_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (e.ClickCount == 2)
     {
         PasswordCloseWindow pcw = new PasswordCloseWindow();
         pcw.ShowDialog();
         if (pcw.viewModel.OperateResule == HandleResult.Successed)
         {
             viewModel.InitializeState = HandleResult.Failed;
             WPFMessage.MessageHelper.SendMessage(ConfigurationManager.AppSettings["SendMessageAPP"], SendClentMessageType.Close);
             Close();
         }
     }
 }
 /// <summary>
 /// 推广广告
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 //private void btn_Promotion_Click(object sender, RoutedEventArgs e)
 //{
 //    viewModel.ImageUpDown(SeatManage.EnumType.AdType.PromotionAd);
 //}
 /// <summary>
 /// 隐藏关闭
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_blankClose_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     StopRead();
     if (e.ClickCount == 2)
     {
         PasswordCloseWindow pcw = new PasswordCloseWindow();
         pcw.ShowDialog();
         if (pcw.viewModel.OperateResule == SeatManage.EnumType.HandleResult.Successed)
         {
             WPFMessage.MessageHelper.SendMessage(viewModel.ClientObject.LauncherClient, SeatManage.EnumType.SendClentMessageType.Close);
             this.Close();
         }
     }
     StartRead();
 }