Esempio n. 1
0
 private void MxList_Copy(object sender, RoutedEventArgs e)
 {
     if (MxList.SelectedItems.Count == 0)
     {
         MxList.SelectAll();
     }
     Clipboard.SetDataObject(string.Join(";",
                                         ((IEnumerable <DnsRecord>)MxList.SelectedItems).Select(r => r.Server)));
 }
Esempio n. 2
0
        private void MxList_SmtpTest(object sender, RoutedEventArgs e)
        {
            if (MxList.SelectedItems.Count == 0)
            {
                MxList.SelectAll();
            }

            SmtpServer.Text = string.Join(";",
                                          from object item in MxList.SelectedItems select((DnsRecord)item).Server);

            Tab_SmtpTest();
        }
Esempio n. 3
0
 private void MxList_SmptTestAll(object sender, RoutedEventArgs e)
 {
     MxList.SelectAll();
     MxList_SmtpTest(sender, e);
 }
Esempio n. 4
0
 private void MxList_SelectAll(object sender, RoutedEventArgs e) => MxList.SelectAll();