Beispiel #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 "";
        }
        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("");
            }
        }