コード例 #1
0
ファイル: MainForm.cs プロジェクト: Gargash/fo2238
 private void btnAddUp_Click(object sender, EventArgs e)
 {
     Effect eff = new Effect(0, true, 0);
     AddForm window = new AddForm(false, null, eff);
     window.ShowDialog();
     if (window.Ok)
     {
         LevelData level = getCurrentLevel();
         level.UpEffects.Add(eff);
         refreshUp();
     }
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: Gargash/fo2238
 private void btnAddReq_Click(object sender, EventArgs e)
 {
     Requirement req = new Requirement(0, true, 0);
     AddForm window = new AddForm(true, req, null);
     window.ShowDialog();
     if (window.Ok)
     {
         LevelData level = getCurrentLevel();
         level.Requirements.Add(req);
         refreshReq();
     }
 }
コード例 #3
0
        private void btnAddDown_Click(object sender, EventArgs e)
        {
            Effect  eff    = new Effect(0, true, 0);
            AddForm window = new AddForm(false, null, eff);

            window.ShowDialog();
            if (window.Ok)
            {
                LevelData level = getCurrentLevel();
                level.DownEffects.Add(eff);
                refreshDown();
            }
        }
コード例 #4
0
        private void btnAddReq_Click(object sender, EventArgs e)
        {
            Requirement req    = new Requirement(0, true, 0);
            AddForm     window = new AddForm(true, req, null);

            window.ShowDialog();
            if (window.Ok)
            {
                LevelData level = getCurrentLevel();
                level.Requirements.Add(req);
                refreshReq();
            }
        }
コード例 #5
0
        private void lbDown_DoubleClick(object sender, EventArgs e)
        {
            if (lbDown.SelectedIndex < 0)
            {
                return;
            }
            LevelData level  = getCurrentLevel();
            AddForm   window = new AddForm(false, null, level.DownEffects[lbDown.SelectedIndex]);

            window.ShowDialog();
            if (window.Ok)
            {
                refreshDown();
            }
        }
コード例 #6
0
        private void lbReq_DoubleClick(object sender, EventArgs e)
        {
            if (lbReq.SelectedIndex < 0)
            {
                return;
            }
            LevelData level  = getCurrentLevel();
            AddForm   window = new AddForm(true, level.Requirements[lbReq.SelectedIndex], null);

            window.ShowDialog();
            if (window.Ok)
            {
                refreshReq();
            }
        }
コード例 #7
0
ファイル: MainForm.cs プロジェクト: Gargash/fo2238
 private void lbUp_DoubleClick(object sender, EventArgs e)
 {
     if (lbUp.SelectedIndex < 0) return;
     LevelData level = getCurrentLevel();
     AddForm window = new AddForm(false, null,level.UpEffects[lbUp.SelectedIndex]);
     window.ShowDialog();
     if (window.Ok) refreshUp();
 }
コード例 #8
0
ファイル: MainForm.cs プロジェクト: Gargash/fo2238
 private void lbReq_DoubleClick(object sender, EventArgs e)
 {
     if (lbReq.SelectedIndex < 0) return;
     LevelData level = getCurrentLevel();
     AddForm window = new AddForm(true, level.Requirements[lbReq.SelectedIndex], null);
     window.ShowDialog();
     if (window.Ok) refreshReq();
 }