Example #1
0
 /// <summary>
 /// 设置键盘透明度
 /// </summary>
 public void TouchKeyBoardOpacitySetting()
 {
     try
     {
         if (File.Exists(Constant.KeyboardSettingFile_32))
         {
             //设置触摸键盘透明
             ProcessManage.OpenFileByLocalAddress(Constant.KeyboardSettingFile_32);
         }
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
     finally
     {
     }
 }
        void OpenFileByLocalApp(string uri)
        {
            try
            {
                //获取文件名称(包含扩展名称)
                var fileName = System.IO.Path.GetFileName(uri);
                //本地地址
                var loaclF = this.LocalTempRoot + "\\" + fileName;
                //创建一个下载管理实例
                WebClientManage webClientManage = new WebClientManage();

                //PictureView pictureView = new PictureView();
                //pictureView.Title = Path.GetFileNameWithoutExtension(uri);
                ////加载UI事件(比如多媒体播放器,浏览器)
                //this.book_LoadUI(pictureView);
                //文件下载
                webClientManage.FileDown(uri, loaclF, this.LoginUserName, this.WebLoginPassword, this.UserDomain, new Action <int>((intProcess) =>
                {
                }), new Action <Exception, bool>((ex, IsSuccessed) =>
                {
                    try
                    {
                        if (IsSuccessed)
                        {
                            if (File.Exists(loaclF))
                            {
                                ProcessManage.OpenFileByLocalAddress(loaclF);
                            }
                        }
                    }
                    catch (Exception ex2)
                    {
                        LogManage.WriteLog(this.GetType(), ex2);
                    }
                }));
            }
            catch (Exception ex)
            {
                LogManage.WriteLog(this.GetType(), ex);
            }
            finally
            {
            }
        }
Example #3
0
 /// <summary>
 /// 设置键盘透明度
 /// </summary>
 public void TouchKeyBoardOpacitySetting()
 {
     try
     {
         string keyFile = AppDomain.CurrentDomain.BaseDirectory + Constant.KeyboardSettingFile_32;
         if (File.Exists(keyFile))
         {
             //设置触摸键盘透明
             ProcessManage.OpenFileByLocalAddress(keyFile);
         }
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
     finally
     {
     }
 }
Example #4
0
 private void gridCancelButton_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     try
     {
         MessageBoxResult result = MessageBox.Show("是否注销", "操作提示", MessageBoxButton.YesNo, MessageBoxImage.Warning);
         if (result == MessageBoxResult.Yes)
         {
             Application.Current.Shutdown(0);
             ProcessManage.OpenFileByLocalAddress(SpaceCodeEnterEntity.StartApplication);
         }
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
     finally
     {
     }
 }