public static void No(string text, string caption) { YesNoForm temp = new YesNoForm(); temp.SetText(text); temp.SetCaption(caption); temp.DisableYes(); temp.ShowDialog(); }
public static bool YesNo(string text, string caption) { YesNoForm temp = new YesNoForm(); temp.SetText(text); temp.SetCaption(caption); DialogResult dr = temp.ShowDialog(); if (dr == DialogResult.Yes) { return(true); } return(false); }