private void OnRemoveProfile(object sender, EventArgs e) { string name = view.GetSelectedProfile(); if (name == null) { return; } if (!view.AskQuestion(ClientServiceLocator.GetService <ILanguage>().GetText("DeleteQuestion") + "'" + name + "'?", ClientServiceLocator.GetService <ILanguage>().GetText("DeleteProfile"))) { return; } manager.Delete(name); view.ReloadList(); }
/// <summary>Ask the user a question</summary> /// <param name="message">The message to show the user.</param> public QuestionResponseEnum AskQuestion(string message) { return(view.AskQuestion(message)); }