private void FormSpawn_Load(object sender, EventArgs e) { LoadData(); int numRows = FormUtils.ParseNumRows(tbNumRows.Text); _rngHelper.CalculateRng(numRows); DisplayFutureRng(); }
private void btnContinue_Click(object sender, EventArgs e) { if (!_rngHelper.FindNextRngPosition(int.Parse(tbLastHeal.Text))) { HandleImpossibleHealVal(); return; } int numRows = FormUtils.ParseNumRows(tbNumRows.Text); _rngHelper.CalculateRng(numRows); DisplayFutureRng(); }
private void bConsume_Click(object sender, EventArgs e) { int consume; int.TryParse(tbConsume.Text, out consume); DateTime begint = DateTime.Now; _rngHelper.ConsumeNextNRngPositions(consume); DateTime endt = DateTime.Now; toolStripStatusLabelPercent.Text = (endt - begint).ToString(); int numRows = FormUtils.ParseNumRows(tbNumRows.Text); _rngHelper.CalculateRng(numRows); DisplayFutureRng(); }
private void btnBegin_Click(object sender, EventArgs e) { SetContinueButtonsEnabledStatus(true); LoadData(); if (!_rngHelper.FindFirstRngPosition(int.Parse(tbLastHeal.Text))) { SetContinueButtonsEnabledStatus(false); HandleImpossibleHealVal(); return; } int numRows = FormUtils.ParseNumRows(tbNumRows.Text); _rngHelper.CalculateRng(numRows); DisplayFutureRng(); }