void AddClick(object sender, RoutedEventArgs e) { var result = EditDatabaseConnectDialog.Run(Owner, new DBConnectInfo()); if (result != null) { DBConnectInfos.Add(result); } }
void CopyClick(object sender, RoutedEventArgs e) { if (DBConnectInfo == null) { return; } var result = EditDatabaseConnectDialog.Run(Owner, DBConnectInfo); if (result != null) { DBConnectInfos.Add(result); } }