示例#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();
     }
 }