Пример #1
0
        private void NextButton_Click(object sender, EventArgs e)
        {
            FinalForm finalForm = new FinalForm();

            finalForm.previousForm = this;

            finalForm.Show();
            this.Hide();
        }
Пример #2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     splash  = new splashform();
     genform = new GenerateNameForm();
     ability = new AbilityGeneratorForm();
     race    = new RaceAndClassForm();
     final   = new FinalForm();
     Application.Run(new splashform());
 }
Пример #3
0
        private void NextButton_Click(object sender, EventArgs e)
        {
            // race prop. will be assigned when next button clicked
            Program.character.Race = _selectedRace;

            FinalForm finalForm = new FinalForm();

            finalForm.previousForm = this;


            finalForm.Show();
            this.Hide();
        }
Пример #4
0
        private void NextButton_Click(object sender, EventArgs e)
        {
            Character character = Program.character;

            character.Race = this._selectedRace;

            FinalForm finalForm = new FinalForm();

            finalForm.previousForm = this;

            finalForm.Show();
            this.Hide();
        }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //  INSTANTIATING THE FORM OBJECTS
            splashform           = new SplashForm();
            abilitygeneratorform = new AbilityGeneratorForm();
            aboutbox             = new AboutBox();
            finalform            = new FinalForm();
            generatenameform     = new GenerateNameForm();
            raceandclassform     = new RaceAndClassForm();

            //  DECLARING WHICH FORM WILL APPEAR FIRST
            Application.Run(splashform);
        }
Пример #6
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //  this will instaniate the form object
            splashform           = new SplashForm();
            abilitygeneratorform = new AbilityGeneratorForm();
            aboutbox             = new AboutBox();
            finalform            = new FinalForm();
            generatenameform     = new GenerateNameForm();
            raceandclassform     = new RaceAndClassForm();

            //  this will help to declare the splash form first
            Application.Run(splashform);
        }