Пример #1
0
        public void LoadMainPage()
        {
            ServerListItem server = appSettings.GetServer();

            if (server == null)
            {
                SettingsFlyoutMain settingFlyout = new SettingsFlyoutMain();
                settingFlyout.Show();

                return;
            }

            App.ReInitializeWebSocket();

            try
            {
                if (server != null)
                {
                    Uri mb = new Uri("http://" + server + "/mediabrowser");
                    mainWebPage.Navigate(mb);
                }
            }
            catch (Exception exeption)
            {
                App.AddNotification(new Notification()
                {
                    Title = "Error Loading Main Page", Message = exeption.Message
                });
            }
        }
Пример #2
0
        public void ShowCustomSettingFlyoutMain()
        {
            SettingsFlyoutMain settingFlyout = new SettingsFlyoutMain();

            settingFlyout.Show();
        }
Пример #3
0
 public void ShowCustomSettingFlyoutMain()
 {
     SettingsFlyoutMain settingFlyout = new SettingsFlyoutMain();
     settingFlyout.Show();
 }
Пример #4
0
        public void LoadMainPage()
        {
            ServerListItem server = appSettings.GetServer();
            if (server == null)
            {
                SettingsFlyoutMain settingFlyout = new SettingsFlyoutMain();
                settingFlyout.Show();

                return;
            }

            App.ReInitializeWebSocket();

            try
            {
                if (server != null)
                {
                    Uri mb = new Uri("http://" + server + "/mediabrowser");
                    mainWebPage.Navigate(mb);
                }
            }
            catch (Exception exeption)
            {
                App.AddNotification(new Notification() { Title = "Error Loading Main Page", Message = exeption.Message });
            }
        }