private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            rgbColorPickerNavItem = ColorPickerNav.MenuItems[0] as NavigationViewItem;

            LightSelectionFrame.Navigate(typeof(LightSelection));
            ((LightSelection)LightSelectionFrame.Content).GiveVariables(this);
        }
Exemplo n.º 2
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            LightSelectionFrame.Navigate(typeof(LightSelection));
            ((LightSelection)LightSelectionFrame.Content).GiveVariables(this);

            if (PartyOptions.activePartyOption.Equals(default(PartyOption)))
            {
                PartyOptions.SetPartyOption(0);
            }

            int id = PartyOptions.CompareCurrentWithSaves();

            if (id != -1)
            {
                SelectMenuItem("Simple");
                NavigateToItem("Simple");
            }
            else
            {
                SelectMenuItem("Advanced");
                NavigateToItem("Advanced");
            }
        }