示例#1
0
        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;
        }
示例#2
0
        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;
            }
        }