Exemplo n.º 1
0
        private void LockButton_Click(object sender, RoutedEventArgs e)
        {
            ((MainWindow)Application.Current.MainWindow).gameWrapPanel.Children.Clear();
            ((MainWindow)Application.Current.MainWindow).gameWrapPanel.Children.Clear();
            LogInService li = new LogInService();

            this.Hide();
            ((MainWindow)Application.Current.MainWindow).logIn();
            bool locked = Properties.Settings.Default.ParentalLockEngaged;

            if (locked)
            {
                ((MainWindow)Application.Current.MainWindow).CreateButtons(true);
            }
            else
            {
                ((MainWindow)Application.Current.MainWindow).CreateButtons(false);
            }
            this.Close();
        }
        public void logIn()
        {
            LogInService li = new LogInService();

            li.ShowDialog();
        }