示例#1
0
        public MediaPlayer()
        {
            //Initialize Page
            this.InitializeComponent();

            //NavigationHelper
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;
            this.NavigationCacheMode = NavigationCacheMode.Required;

            //Load Settings
            MPS_Start_Settings();

            //Register to handle the following system transpot control buttons.
            systemControls = SystemMediaTransportControls.GetForCurrentView();
            systemControls.ButtonPressed += SystemMediaControls_ButtonPressed;
            systemControls.IsPlayEnabled = true;
            systemControls.IsPauseEnabled = true;
            systemControls.IsStopEnabled = true;
            systemControls.IsNextEnabled = true;
            systemControls.IsPreviousEnabled = true;
            systemControls.IsEnabled = true;

            DC.Trace("(MediaPlayer Loaded)");
            SetupTimer();
        }
示例#2
0
        public MainPage()
        {
            this.InitializeComponent();

            titleBar = ApplicationView.GetForCurrentView().TitleBar;

            //Allows other Classes to use methods in this Class
            Current = this;

            Start_Settings();
            tip = new Tip();

            Login_Start.Begin();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;
            this.NavigationCacheMode = NavigationCacheMode.Required;

            if(Setting_SOMP == true)
            {
                RadioButton_3.IsChecked = true;
                RadioButton_3_Click(null, null);
            }

            Baaga();

            DC.Trace("(MainPage Loaded)");
            DC.Hide();

            //UpdateColorsStart();
        }
示例#3
0
 public WebBrowser()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
     this.NavigationCacheMode = NavigationCacheMode.Required;
     DC.Trace("WebBrowser Loaded");
 }
示例#4
0
        public TestingPage()
        {
            this.InitializeComponent();

            //-------------------------------------

            //--------------------------------------

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;
        }