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))); }
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(); }
private void MxList_SmptTestAll(object sender, RoutedEventArgs e) { MxList.SelectAll(); MxList_SmtpTest(sender, e); }
private void MxList_SelectAll(object sender, RoutedEventArgs e) => MxList.SelectAll();