Exemple #1
0
        public void RunArgument(NimbusMain window)
        {
            //MessageBox.Show(this.Activator + this.Code);

            if (Activator == "Game")
            {
            }
            if (Activator == "Install")
            {
                Factory.Games.AddGame(Code);
            }
            if (Activator == "Play")
            {
                Game g = Factory.Games.GetGameByCode(Code);
                if (g != null)
                {
                    g.Play();
                }
            }
            if (Activator == "Config")
            {
                Game g = Factory.Games.GetGameByCode(Code);
                if (g != null)
                {
                    g.Configure();
                }
            }
        }
Exemple #2
0
        public void RunArgument(NimbusMain window)
        {
            //MessageBox.Show(this.Activator + this.Code);

            if (Activator == "Game")
            {

            }
            if (Activator == "Install")
            {

                Factory.Games.AddGame(Code);

            }
            if (Activator == "Play")
            {
                Game g = Factory.Games.GetGameByCode(Code);
                if (g != null) g.Play();
            }
            if (Activator == "Config")
            {
                Game g = Factory.Games.GetGameByCode(Code);
                if (g != null) g.Configure();

            }
        }
Exemple #3
0
        protected override void OnCreateMainForm()
        {
            try
            {
                Factory.CurrentTheme = NimbusTheme.FromFile(Path.GetDirectoryName(Application.ExecutablePath) + "\\themes\\default\\default.theme");
            }
            catch (ThemingError e)
            {
                MessageBox.Show(e.Error);
                Application.Exit();
            }

            mainForm = new NimbusMain(Factory.CurrentTheme);
            this.MainForm = mainForm;
            string[] args = new string[this.CommandLineArgs.Count];
            this.CommandLineArgs.CopyTo(args, 0);
            base.OnCreateMainForm();
            mainForm.ProcessArgs(args);
        }
Exemple #4
0
        protected override void OnCreateMainForm()
        {
            try
            {
                Factory.CurrentTheme = NimbusTheme.FromFile(Path.GetDirectoryName(Application.ExecutablePath) + "\\themes\\default\\default.theme");
            }
            catch (ThemingError e)
            {
                MessageBox.Show(e.Error);
                Application.Exit();
            }

            mainForm      = new NimbusMain(Factory.CurrentTheme);
            this.MainForm = mainForm;
            string[] args = new string[this.CommandLineArgs.Count];
            this.CommandLineArgs.CopyTo(args, 0);
            base.OnCreateMainForm();
            mainForm.ProcessArgs(args);
        }