Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
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();
     }
 }
Esempio n. 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();
            }
        }
Esempio n. 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();
            }
        }
Esempio n. 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();
            }
        }
Esempio n. 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();
            }
        }
Esempio n. 7
0
 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();
 }
Esempio n. 8
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();
 }