/// <summary> /// web服务连接失败 /// </summary> /// <param name="message">连接异常具体信息</param> /// <returns></returns> private void NetWork_ConnectedFailed(string message) { try { //共享面板 SharingPanel panel2 = MainPage.mainPage.SharingPanel; //导航到首页 MainWindow.mainWindow.IndexPageChangedToIndexPage(); //显示网络异常视图 MainWindow.mainWindow.NetWork_ViewVisibility = vy.Visible; //提示信息设置 MainWindow.mainWindow.SettingNetWorkConnectErrorTip(message); //共享漫步异常信息设置 panel2.SettingNetWorkConnectErrorTip(message); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
/// <summary> /// 窗体最小化处理 /// </summary> private void MainWindowToMinDealWidth() { try { //隐藏菜单 mainPage.ToolCmWindow.Visibility = vy.Collapsed; //设置会话区域显示内容 this.mainPage.ConversationM.SetConversationAreaShow(ShowType.HidenView, false); //隐藏所有资源管理窗体 this.mainPage.ConversationM.HidenAllResourceWindow(); //共享面板 SharingPanel sharingPanel = MainPage.mainPage.SharingPanel; //最小化窗体时发生 sharingPanel.MinwindowDealWidth(); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
public void CheckNetWorkCallBack(NetWorkErrTipType netWorkErrTipType) { try { //信息提示 string message = string.Empty; if (this.currentNetWorkState != netWorkErrTipType) { switch (netWorkErrTipType) { case NetWorkErrTipType.Normal: MainWindow.mainWindow.NetWork_ViewVisibility = System.Windows.Visibility.Collapsed; //if (LyncHelper.MainConversation != null) //{ MainWindow.MainPageInstance.SharingPanel.NetWork_ViewVisibility = System.Windows.Visibility.Collapsed; //} break; case NetWorkErrTipType.ConnectedRouteFailed: //共享面板 SharingPanel panel = MainWindow.MainPageInstance.SharingPanel; //导航到首页 MainWindow.mainWindow.IndexPageChangedToIndexPage(); message = "无法连接到当前网络"; MainWindow.mainWindow.NetWork_ViewVisibility = System.Windows.Visibility.Visible; MainWindow.mainWindow.SettingNetWorkConnectErrorTip(message); panel.NetWork_ViewVisibility = System.Windows.Visibility.Visible; panel.SettingNetWorkConnectErrorTip(message); break; case NetWorkErrTipType.ConnectedServiceFailed: //共享面板 SharingPanel panel2 = MainWindow.MainPageInstance.SharingPanel; //导航到首页 MainWindow.mainWindow.IndexPageChangedToIndexPage(); message = "无法连接到服务器"; MainWindow.mainWindow.NetWork_ViewVisibility = System.Windows.Visibility.Visible; MainWindow.mainWindow.SettingNetWorkConnectErrorTip(message); panel2.NetWork_ViewVisibility = System.Windows.Visibility.Visible; panel2.SettingNetWorkConnectErrorTip(message); break; case NetWorkErrTipType.ConnectedWebServiceFailed: //共享面板 SharingPanel panel3 = MainWindow.MainPageInstance.SharingPanel; //导航到首页 MainWindow.mainWindow.IndexPageChangedToIndexPage(); message = "无法访问web服务"; MainWindow.mainWindow.NetWork_ViewVisibility = System.Windows.Visibility.Visible; MainWindow.mainWindow.SettingNetWorkConnectErrorTip(message); panel3.NetWork_ViewVisibility = System.Windows.Visibility.Visible; panel3.SettingNetWorkConnectErrorTip(message); break; default: break; } } //当前网络状态 this.currentNetWorkState = netWorkErrTipType; } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }