public MainWindow()
        {
            InitializeComponent();

            Controller      = new LevelEditor_Controller();
            Controller.View = this;

            Controller.LoadConfig();

            string[] CMDArguments = Environment.GetCommandLineArgs();

            foreach (string s in CMDArguments)
            {
                if (s.Contains("fullscreen"))
                {
                    Controller.Model.Config.WindowState = WindowState.Maximized;
                }
            }

            Controller.ApplyConfig();

            Controller.RefreshView();

            Controller.LogMessage("Level Editor initialized...");
        }
Esempio n. 2
0
        /// <summary>
        /// The Language Manager
        /// </summary>
        /// <param name="_controller"></param>
        public LanguageManager(LevelEditor_Controller _controller)
        {
            Controller = _controller;

            // Dictionary = new LanguageDictionary(new List<LanguageEntry>());
            // Dictionary.Dict.Add(new LanguageEntry("#Test", new LanguageEntryMeanings("Der Test", "The Test", "Le Test", "El Test")));
            // Dictionary.Dict.Add(new LanguageEntry("#MenuItem_File", new LanguageEntryMeanings("Datei", "File", "Le File", "El File")));
            // Dictionary.Dict.Add(new LanguageEntry("#MenuItem_NewLevel", new LanguageEntryMeanings("Neues Level", "New Level", "Le Help", "El Helpo")));
        }