private void Change_Click(object sender, RoutedEventArgs e) { if (!ExistNameList.Contains(InputName.Text)) { DialogResult = true; } else { Utils.DialogService.ShowSimpleTextDialog("Warning", "해당 이름이 이미 사용중입니다."); InputName.Focus(); InputName.SelectionStart = InputName.Text.Length; } }
public void SetText(string text) { InputName.Text = text; InputName.Focus(); InputName.SelectionStart = InputName.Text.Length; }