コード例 #1
0
ファイル: MainForm.cs プロジェクト: jpazarzis/hogar
        private void OnNew(object sender, EventArgs e)
        {
            OnFormIsClosing(null, null);

            var selectRaces = new SelectNumberOfRacesForm();

            if (selectRaces.ShowDialog() == DialogResult.OK)
            {
                var f = new FullSystemForm(selectRaces.GetNumberOfRaces(), null);
                if (f.ShowDialog() == DialogResult.OK)
                {
                    _fullSystem = f.GetFullSystem();
                    BindFullSystem();
                    this.Text = "[ Exotic Studio ]  (c) Kasosoft 2008 - 2011   New System";
                    _outputTextBox.Text = "";
                }
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: jpazarzis/hogar
        private void OnEditFullSystem(object sender, EventArgs e)
        {
            var f = new FullSystemForm(_fullSystem.NumberOfRaces, _fullSystem);

            if (f.ShowDialog() == DialogResult.OK)
            {
                _fullSystem = f.GetFullSystem();
                BindFullSystem();
            }
        }