Exemple #1
0
 //选择自定义数据后弹出一个窗体
 private void cmbType_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (cmbType.SelectedItem != null)
     {
         KeyValuePair <string, Flag> kv = (KeyValuePair <string, Flag>)cmbType.SelectedItem;
         if (kv.Value == Flag.Customer)
         {
             AddCustomer add = new AddCustomer();
             if ((bool)add.ShowDialog())
             {
                 customerData = add.customerData;
             }
         }
     }
 }
 public void CreateCustomerData()
 {
     string[] result = TextContent.Text.Split(';');
     customerData      = new AutoData.CustomerData <string>(result);
     this.DialogResult = true;
 }