Пример #1
0
 private void companyProfileButton_Click(object sender, EventArgs e)
 {
     Forms.CompanyProfile createTimeSlots = new Forms.CompanyProfile();
     createTimeSlots.VisibleChanged += delegate(object source, EventArgs args)
     {
         if (!createTimeSlots.Visible)
         {
             this.Show();
         }
     };
     createTimeSlots.Show();
 }
Пример #2
0
        private void Company_Clicked(object sender, CompanyView.CompanyEventArgs args)
        {
            //open company profile form
            CompanyProfile form = new CompanyProfile();

            form.FormClosed += delegate(object s, FormClosedEventArgs a)
            {
                Visible = !Visible;
            };
            Visible = false;

            form.Show();

            //view selected company
            form.Company = args.Company;
        }
 private void m_btn_ReturningCompany_Click(object sender, EventArgs e)
 {
     Forms.CompanyProfile profile = new Forms.CompanyProfile();
     profile.Show();
     // this.Hide();
 }