private void AskForEstimates() { if (_workingItem.Estimates.Duration != 0 || _workingItem.Estimates.ElapsedTime != 0) { return; } // If no estimates, then ask user add some if (MessageBox.Show(Resources.ThereAreNoEstimatesForTheWorkItem, Resources.AddEstimates, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { FormEstimates formEstimates = new FormEstimates(_workingItem); formEstimates.ShowDialog(this); } }
private void modifyEstimatesToolStripMenuItem_Click(object sender, EventArgs e) { FormEstimates formEstimates = new FormEstimates(_workingItem); formEstimates.Show(); }