Exemplo n.º 1
0
        public Main()
        {
            InitializeComponent();

            //Version
            this.Text += " v." + GlobalConstants.VERSION;

            //Loading ProjectManager
            _ProjectManager = new Sm4shProject();

            //Loading configuration
            if (!File.Exists(UIConstants.CONFIG_FILE))
            {
                if (!CreateConfig())
                {
                    this.Close();
                    return;
                }
            }

            //Console Redirection
            _ConsoleText     = new ConsoleRedirText(textConsole);
            _ConsoleProgress = new ConsoleRedirProgress(backgroundWorker);

            _MainLoaded = true;
        }
Exemplo n.º 2
0
        public Main()
        {
            InitializeComponent();

            //Version
            this.Text += " v." + GlobalConstants.VERSION;

            //Loading ProjectManager
            _ProjectManager = new SmashProjectManager();
            _ProjectManager.LoadConfig();

            //Loading configuration
            if (!File.Exists(_ProjectManager._Config.LastProject))
            {
                if (!CreateProject())
                {
                    this.Close();
                    return;
                }
            }
            LoadProject();

            //Console Redirection
            _ConsoleText     = new ConsoleRedirText(textConsole);
            _ConsoleProgress = new ConsoleRedirProgress(backgroundWorker);

            HelpBox.Initialize(_ProjectManager);
            Rendering.OpenTKSharedResources.InitializeSharedResources();

            _MainLoaded = true;
        }