Beispiel #1
0
 public EditServiceAddressDialog(ServiceAddressInfo serviceInfo)
 {
     InitializeComponent();
     _serviceInfo           = serviceInfo;
     TxtMark.Text           = serviceInfo.Mark;
     TxtServiceAddress.Text = serviceInfo.ServiceAddress;
 }
 private void ButtonAdd_Click(object sender, RoutedEventArgs e)
 {
     if (!Mark.IsNullOrEmpty() && !ServiceAddress.IsNullOrEmpty())
     {
         var serviceAddressInfo = new ServiceAddressInfo
         {
             Mark           = Mark,
             ServiceAddress = ServiceAddress
         };
         _editServiceAddressInfos.Add(serviceAddressInfo);
         TxtMark.Text           = string.Empty;
         TxtServiceAddress.Text = string.Empty;
     }
 }