private void BtnFarmersLoc_Click(object sender, EventArgs e) { FarmersLocationsDetails farmer = new FarmersLocationsDetails(); farmer.MdiParent = this.ParentForm; farmer.Show(); //_mainMDI.CheckAllFarmers(); this.Hide(); }
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(); }
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(); }