예제 #1
0
        private void returnToFarmerSelectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Farmer_Selection form = new Farmer_Selection();

            //form.Show();
            this.Hide();
            form.ShowDialog();
            this.Close();
        }
예제 #2
0
 private void Complete()
 {
     if (pgbLoading.Value >= pgbLoading.Maximum)
     {
         Farmer_Selection navToFarmerSelection = new Farmer_Selection(AllFarmers);
         this.Hide();
         navToFarmerSelection.ShowDialog();
         this.Close();
     }
 }
예제 #3
0
        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();
            }
        }