예제 #1
0
        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();
        }
예제 #2
0
 /// <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));
 }