示例#1
0
        public void OpenWebinarStatics(Webinar webinar)
        {
            Webinar webinar_staistic = webinar;

            try
            {
                webinar_staistic = WebinarApiInstance.GetWebinarStatic(token, webinar.Id);
            } catch (Exception exc) { }

            ((NavigationWindow)Application.Current.MainWindow).Navigate(new WebinarStatistic(webinar_staistic));
        }
示例#2
0
        private void background_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
        {
            var  UserApiInstance = new UserApi();
            User localUser       = UserApiInstance.GetUserInfo(Application.Current.Resources["token"].ToString());

            if (localUser.UserStatus != UserStatus.Student)
            {
                var     WebinarApiInstance = new WebinApi();
                Webinar statisWebinar      = webinar;
                try
                {
                    statisWebinar = WebinarApiInstance.GetWebinarStatic(Application.Current.Resources["token"].ToString(), webinar.Id);
                } catch (Exception ex) { }
                ((Week)Application.Current.MainWindow.Content).OpenWebinarStatics(statisWebinar);
            }
        }