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