public static string ShowPrompt(Window owner, string name, string title, string label) { var wnd = new PromptWindow { Owner = owner }; wnd.Title = title; wnd.lblName.Content = label; wnd.ctOkBtn.Text = App.Translation.Prompt.PromptWindowOK; wnd.ctCancelBtn.Text = App.Translation.Prompt.Cancel; wnd.ctName.Text = name; wnd.ctName.Focus(); if (wnd.ShowDialog() != true) return null; return wnd.ctName.Text; }
public static string ShowPrompt(Window owner, string name, string title, string label) { var wnd = new PromptWindow { Owner = owner }; wnd.Title = title; wnd.lblName.Content = label; wnd.ctOkBtn.Text = App.Translation.Prompt.PromptWindowOK; wnd.ctCancelBtn.Text = App.Translation.Prompt.Cancel; wnd.ctName.Text = name; wnd.ctName.Focus(); if (wnd.ShowDialog() != true) { return(null); } return(wnd.ctName.Text); }