private void ButtonOK_Click(object sender, RoutedEventArgs e) { if (newFolder.NullEmpty()) return; if (local ? LocalHelper.NameExists(newFolder) : ClientHelper.NameExists(newFolder)) TextBlockNewFolderinfo.Text = AppLanguage.Get("LangTextBlockSameNameExists"); else DialogResult = true; }
private void ButtonOK_Click(object sender, RoutedEventArgs e) { if (newName.NullEmpty() || (oldName == TextBoxNewName.Text)) { return; } if (local ? LocalHelper.NameExists(newName) : ClientHelper.NameExists(newName)) { TextBlockNewNameinfo.Text = AppLanguage.Get("LangTextBlockSameNameExists"); } else { DialogResult = true; } }