private void BtnFarmersLoc_Click(object sender, EventArgs e)
        {
            FarmersLocationsDetails farmer = new FarmersLocationsDetails();

            farmer.MdiParent = this.ParentForm;
            farmer.Show();
            //_mainMDI.CheckAllFarmers();
            this.Hide();
        }
Beispiel #2
0
        private void farmersOnMapToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(FarmersLocationsDetails))
                {
                    form.Activate();
                    return;
                }
            }
            FarmersLocationsDetails farmers = new FarmersLocationsDetails();

            farmers.MdiParent = this;
            farmers.Show();
        }
Beispiel #3
0
        public void CheckAllFarmers()
        {
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(FarmersLocationsDetails))
                {
                    form.Activate();
                    return;
                }
            }
            FarmersLocationsDetails farmers = new FarmersLocationsDetails();

            farmers.MdiParent = this;
            farmers.Show();
        }