Пример #1
0
        private void name_SelectedIndexChanged(object sender, EventArgs e)
        {
            ShowRichText cw = new ShowRichText();

            cw.Individual = (Individual)name.SelectedItem;
            cw.Show();
        }
Пример #2
0
        private void name_SelectedIndexChanged(object sender, EventArgs e)
        {
            ShowRichText cw = new ShowRichText();

            cw.Client = (LegalPerson)name.SelectedItem;
            cw.Show();
        }
Пример #3
0
 private void name_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (clientType.SelectedItem.Equals("юр. лицо"))
     {
         ShowRichText cw = new ShowRichText();
         cw.Client = (LegalPerson)name.SelectedItem;
         cw.Show();
     }
     if (clientType.SelectedItem.Equals("физ. лицо"))
     {
         ShowRichText cw = new ShowRichText();
         cw.Individual = (Individual)name.SelectedItem;
         cw.Show();
     }
 }