private void returnToFarmerSelectionToolStripMenuItem_Click(object sender, EventArgs e) { Farmer_Selection form = new Farmer_Selection(); //form.Show(); this.Hide(); form.ShowDialog(); this.Close(); }
private void Complete() { if (pgbLoading.Value >= pgbLoading.Maximum) { Farmer_Selection navToFarmerSelection = new Farmer_Selection(AllFarmers); this.Hide(); navToFarmerSelection.ShowDialog(); this.Close(); } }
private void pbxBack_Click(object sender, EventArgs e) { DialogResult confirm = MessageBox.Show("Are you sure you want to cancel?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (confirm == DialogResult.Yes) { Farmer_Selection form = new Farmer_Selection(); this.Hide(); form.ShowDialog(); this.Close(); } }