Example #1
0
        public static string ConfirmWindow(string condition)
        {
            ConfirmationWindow cw = new ConfirmationWindow();
            cw.hdrWindow.Header = condition;
            bool? res = cw.ShowDialog();

            if (res == true)
                return cw.MessageBoxText.Text;
            else
                return "";
        }
Example #2
0
        public static string ConfirmWindow(string condition)
        {
            ConfirmationWindow cw = new ConfirmationWindow();

            cw.hdrWindow.Header = condition;
            bool?res = cw.ShowDialog();

            if (res == true)
            {
                return(cw.MessageBoxText.Text);
            }
            else
            {
                return("");
            }
        }