private void ViewerYKLMH_Unchecked(object sender, RoutedEventArgs e) { if (!viewerLoading) { N2MessageView.main.Close(); panViewerSet.Visibility = Visibility.Visible; isYKLMH = false; N2MessageView view = new N2MessageView(); view.WindowStartupLocation = WindowStartupLocation.CenterOwner; view.roomID = openRoomID; view.toolPage = this; view.Show(); viewerLoading = false; } }
private void Button_Click_1(object sender, RoutedEventArgs e) { if (isLogined && openRoomID != null && openRoomID != "") { panViewerSet.Visibility = Visibility.Visible; ViewerHeight.Text = SystemParameters.WorkArea.Height.ToString(); ViewerWidth.Text = (SystemParameters.WorkArea.Width * 0.15).ToString(); N2MessageView view = new N2MessageView(); view.WindowStartupLocation = WindowStartupLocation.CenterOwner; view.roomID = openRoomID; view.toolPage = this; view.Show(); viewerLoading = false; } else { if (!isLogined) { MainWindow.main.MsgAdd(new List <string> { "N2 Station Tools", "请先登录到 N2 Staticon 账户。" }, new List <string> { "知道了" }, null); } else { MainWindow.main.MsgAdd(new List <string> { "N2 Station Tools", "请等待房间信息获取完成或没有开着的房间。" }, new List <string> { "知道了" }, null); } } }