Ejemplo n.º 1
0
 private void ShowConfigureFrom_Click(object sender, EventArgs e)
 {
     if ((_frmConfigure == null) || (!_frmConfigure.Visible))
     {
         _frmConfigure = new frmConfigure();
         var result = _frmConfigure.ShowDialog();
         if (result == DialogResult.OK)
         {
             _clientInfor = RegManager.LoadConfig();
         }
     }
 }
Ejemplo n.º 2
0
        public frmConfigureController(frmConfigure form)
        {
            this.form = form;

            root = new Root();

            AudioConfig    = new AudioConfigure();
            GameConfig     = new GameConfigure();
            GraphicConfig  = new GraphicConfigure();
            ResourceConfig = new ResourceConfigure();
            gameXmlConfig  = GameConfigXml.Load("game.xml", root);

            form.Controller = this;
        }
Ejemplo n.º 3
0
        public frmConfigureController(frmConfigure form)
        {
            this.form = form;

            AudioConfig   = new AudioConfigure();
            GameConfig    = new GameConfigure();
            GraphicConfig = new GraphicConfigure();

            parser  = new IniConfigFileParser();
            gameCfg = (IniConfigFile)parser.Load("game.cfg");
            ogreCfg = (IniConfigFile)parser.Load("ogre.cfg");
            r       = new Root();

            form.Controller = this;
        }
Ejemplo n.º 4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ScriptManager.Instance.InitScripts();
            frmConfigure configureForm = new frmConfigure();

            if (configureForm.ShowDialog() == DialogResult.OK)
            {
                int counter = 0;
                while (counter < 100)
                {
                    counter++;
                    System.Threading.Thread.Sleep(10);
                }
                frmRenderPanel mainWindow = new frmRenderPanel(configureForm.Config);
                Application.Run(mainWindow);
            }
        }
Ejemplo n.º 5
0
        private void btnConfig_Click(object sender, EventArgs e)
        {
            frmConfigure frm = new frmConfigure();

            frm.ShowDialog();
        }