Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
            }
        }
Exemple #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();
            }
        }
Exemple #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();
            }
        }
Exemple #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();
            }
        }
Exemple #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();
 }
Exemple #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();
 }