Example #1
0
        private void UserSelected_Click(object sender, RoutedEventArgs e)
        {
            if (entryScreen.freeGoal.IsChecked == true)
            {
                freeGoal = true;
            }
            MainCanvas.Children.Remove(entryScreen);
            entryScreen = null;
            try
            {
                string focusFile = System.IO.Path.Combine(userDirectory, "focused.txt");
                if (!File.Exists(focusFile))
                {
                    File.CreateText(focusFile);
                }

                focusedString = System.IO.File.ReadAllText(focusFile);
            }
            catch
            {
            }

            myState = States.menu;
            loadMode();
        }
Example #2
0
 private void loadEntryScreen()
 {
     entryScreen        = new EntryScreen();
     entryScreen.Height = this.ActualHeight;
     entryScreen.Width  = this.ActualWidth;
     MainCanvas.Children.Add(entryScreen);
     Canvas.SetTop(entryScreen, 0);
     Canvas.SetLeft(entryScreen, 0);
     entryScreen.Loaded += EntryScreen_Loaded;
 }