예제 #1
0
        private void DebugStartForm_Load(object sender, EventArgs e)
        {
            var modEditor = new frmModEditor(@"D:\Users\jjsfw\Documents\Paradox Interactive\Crusader Kings II\mod\EKSVN");
            ModEditorController controller = new ModEditorController(modEditor, ParadoxTitle.CrusaderKings, @"D:\Users\jjsfw\Documents\Paradox Interactive\Crusader Kings II\mod\EKSVN");

            this.Hide();
            modEditor.ShowDialog();
            this.Close();
        }
예제 #2
0
        private void btnCreateLoad_Click(object sender, EventArgs e)
        {
            if (Directory.Exists(txtModDirectory.Text))
            {
                // TODO: Remove parent debugging and implement initialisation based on selected game.

                var modEditor = new frmModEditor(txtModDirectory.Text);
                ModEditorController controller = new ModEditorController(modEditor, game, txtModDirectory.Text);
                this.Hide();
                modEditor.ShowDialog();
            }
            else
            {
                MessageBox.Show("The input directory does not exist.", "Directory Not Found", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }