예제 #1
0
 private void buttonRollOptions_Click(object sender, RoutedEventArgs e)
 {
     textboxMoney.Text = "Starting Money: " + RollTheme.RollForMoney();
     System.Threading.Thread.Sleep(1);
     textboxLoans.Text = RollTheme.RollForLoan();
     System.Threading.Thread.Sleep(1);
     textboxFees.Text = RollTheme.RollForFees();
     System.Threading.Thread.Sleep(1);
     textboxGoaltime.Text = "Time to hold Goals: " + RollTheme.RollForGoaltime();
     System.Threading.Thread.Sleep(1);
     textboxMapsize.Text = RollTheme.RollForMapsize();
 }
예제 #2
0
        private string ChooseModifier()
        {
            string mod       = "";
            bool   duplicate = true;

            while (duplicate)
            {
                mod       = RollTheme.RollForModifier();
                duplicate = CheckModLegal(mod);
            }

            return(mod);
        }
예제 #3
0
        private void buttonRollGoals_Click(object sender, RoutedEventArgs e)
        {
            textboxGoalOne.Text   = "";
            textboxGoalTwo.Text   = "";
            textboxGoalThree.Text = "";

            textboxGoalOne.Text = RollTheme.RollforGoal();
            System.Threading.Thread.Sleep(1);
            textboxGoalTwo.Text = RollTheme.RollforGoal();
            System.Threading.Thread.Sleep(1);
            textboxGoalThree.Text = RollTheme.RollforGoal();
            System.Threading.Thread.Sleep(1);
            textboxGoaltime.Text = "Time to hold Goals: " + RollTheme.RollForGoaltime();
        }
예제 #4
0
        private void buttonRollAll_Click(object sender, RoutedEventArgs e)
        {
            textboxModOne.Text   = "";
            textboxModTwo.Text   = "";
            textboxModThree.Text = "";
            textboxModFour.Text  = "";
            textboxModFive.Text  = "";

            textboxGoalOne.Text   = "";
            textboxGoalTwo.Text   = "";
            textboxGoalThree.Text = "";

            textboxTheme.Text = RollTheme.RollForTheme();
            System.Threading.Thread.Sleep(1);
            textboxModOne.Text = ChooseModifier();
            System.Threading.Thread.Sleep(1);
            textboxModTwo.Text = ChooseModifier();
            System.Threading.Thread.Sleep(1);
            textboxModThree.Text = ChooseModifier();
            System.Threading.Thread.Sleep(1);
            textboxModFour.Text = ChooseModifier();
            System.Threading.Thread.Sleep(1);
            textboxModFive.Text = ChooseModifier();

            System.Threading.Thread.Sleep(1);
            textboxGoalOne.Text = RollTheme.RollforGoal();
            System.Threading.Thread.Sleep(1);
            textboxGoalTwo.Text = RollTheme.RollforGoal();
            System.Threading.Thread.Sleep(1);
            textboxGoalThree.Text = RollTheme.RollforGoal();
            System.Threading.Thread.Sleep(1);
            textboxGoaltime.Text = "Time to hold Goals: " + RollTheme.RollForGoaltime();

            System.Threading.Thread.Sleep(1);
            textboxMoney.Text = "Starting Money: " + RollTheme.RollForMoney();
            System.Threading.Thread.Sleep(1);
            textboxLoans.Text = RollTheme.RollForLoan();
            System.Threading.Thread.Sleep(1);
            textboxFees.Text = RollTheme.RollForFees();
            System.Threading.Thread.Sleep(1);
            textboxGoaltime.Text = "Time to hold Goals: " + RollTheme.RollForGoaltime();
            System.Threading.Thread.Sleep(1);
            textboxMapsize.Text = RollTheme.RollForMapsize();
        }
예제 #5
0
 private void buttonRollMapsize_Click(object sender, RoutedEventArgs e)
 {
     textboxMapsize.Text = RollTheme.RollForMapsize();
 }
예제 #6
0
 private void buttonRollGoaltime_Click(object sender, RoutedEventArgs e)
 {
     textboxGoaltime.Text = "Time to hold Goals: " + RollTheme.RollForGoaltime();
 }
예제 #7
0
 public MainWindow()
 {
     InitializeComponent();
     RollTheme.loadLists();
 }
예제 #8
0
 private void buttonRollFees_Click(object sender, RoutedEventArgs e)
 {
     textboxFees.Text = RollTheme.RollForFees();
 }
예제 #9
0
 private void buttonRollLoans_Click(object sender, RoutedEventArgs e)
 {
     textboxLoans.Text = RollTheme.RollForLoan();
 }
예제 #10
0
 private void buttonRollMoney_Click(object sender, RoutedEventArgs e)
 {
     textboxMoney.Text = "Starting Money: " + RollTheme.RollForMoney();
 }
예제 #11
0
 private void buttonRollGoalThree_Click(object sender, RoutedEventArgs e)
 {
     textboxGoalThree.Text = "";
     textboxGoalThree.Text = RollTheme.RollforGoal();
 }