예제 #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();
     }
 }