コード例 #1
0
        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...");
        }
コード例 #2
0
        private void Button_ImportTexture_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog Dialog_ImportTexture = new OpenFileDialog();

            Dialog_ImportTexture.Multiselect = true;
            if (Dialog_ImportTexture.ShowDialog() == true)
            {
                foreach (string path in Dialog_ImportTexture.FileNames)
                {
                    Controller.ImportTexture(path);
                }

                Controller.RefreshView();
            }
        }