public override QueryResult QueryDialog(string message, string title, QueryButtons buttons) { MessageBoxButtons buttons2 = MessageBoxButtons.OK; if (buttons == QueryButtons.YesNo) { buttons2 = MessageBoxButtons.YesNo; } DialogResult dialogResult = MessageBox.Show(message, title, buttons2, MessageBoxIcon.Question); QueryResult result = QueryResult.Yes; if (dialogResult != DialogResult.Yes) { result = QueryResult.No; } return(result); }
public override QueryResult QueryDialog(string message, string title, QueryButtons buttons) { return(QueryResult.No); }
public abstract QueryResult QueryDialog(string message, string title, QueryButtons buttons);