private void BtnCusAreaRouts_Click(object sender, EventArgs e)
        {
            FindLocationsOfCustomers CusVisits = new FindLocationsOfCustomers();

            CusVisits.MdiParent = this.ParentForm;
            CusVisits.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void customerVisitsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(FindLocationsOfCustomers))
                {
                    form.Activate();
                    return;
                }
            }
            FindLocationsOfCustomers cust = new FindLocationsOfCustomers();

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