Esempio n. 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     splashForm       = new SplashForm();
     generateNameForm = new GenerateNameForm();
     Application.Run(splashForm);
 }
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     // instantiate splashform,generateNameForm ,AbilityGenerator objects
     splashform       = new SplashForm();
     generateNameForm = new GenerateNameForm();
     AbilityGenerator = new AbilityGeneratorForm();
     Application.Run(splashform);
 }
 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());
 }
Esempio n. 4
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            //This will hide Splash form
            this.Hide();
            //This will stop timer of the splash form or it will continue and at every 3000 ms event is trigerred again and again
            timer1.Stop();
            // main form object is created
            GenerateNameForm main = new GenerateNameForm();

            // GenerateNameForm show
            main.Show();
        }
        //Timer's tick event handler
        private void Timer_Tick(object sender, EventArgs e)
        {
            //Stop method to stop the Splashscreen
            Timer.Stop();

            //Instantiate a new GenerateNameForm object
            GenerateNameForm mf = new GenerateNameForm();

            //A method to show the SplashForm
            mf.Show();

            //A method to hide the SplashForm
            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);
        }
Esempio n. 7
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);
        }