예제 #1
0
        public static MessageBoxResult Show(string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon)
        {
            IgrisMessageBoxWindow IgrisMessageBoxWindow = new IgrisMessageBoxWindow(messageBoxText, caption, button, icon);

            IgrisMessageBoxWindow.ShowDialog();
            return(IgrisMessageBoxWindow.Result);
        }
예제 #2
0
        public static MessageBoxResult Show(string messageBoxText)
        {
            IgrisMessageBoxWindow IgrisMessageBoxWindow = new IgrisMessageBoxWindow(messageBoxText);

            IgrisMessageBoxWindow.ShowDialog();
            return(IgrisMessageBoxWindow.Result);
        }
예제 #3
0
        public static MessageBoxResult ShowOK(string messageBoxText, string caption, string okButtonText, MessageBoxImage icon)
        {
            IgrisMessageBoxWindow IgrisMessageBoxWindow = new IgrisMessageBoxWindow(messageBoxText, caption, MessageBoxButton.OK, icon)
            {
                OkButtonText = okButtonText
            };

            IgrisMessageBoxWindow.ShowDialog();
            return(IgrisMessageBoxWindow.Result);
        }
예제 #4
0
        public static MessageBoxResult Show(Window owner, string messageBoxText, string caption)
        {
            IgrisMessageBoxWindow IgrisMessageBoxWindow = new IgrisMessageBoxWindow(messageBoxText, caption)
            {
                Owner = owner
            };

            IgrisMessageBoxWindow.ShowDialog();
            return(IgrisMessageBoxWindow.Result);
        }
예제 #5
0
        public static MessageBoxResult ShowOKCancel(string messageBoxText, string caption, string okButtonText, string cancelButtonText)
        {
            IgrisMessageBoxWindow IgrisMessageBoxWindow = new IgrisMessageBoxWindow(messageBoxText, caption, MessageBoxButton.OKCancel)
            {
                OkButtonText     = okButtonText,
                CancelButtonText = cancelButtonText
            };

            IgrisMessageBoxWindow.ShowDialog();
            return(IgrisMessageBoxWindow.Result);
        }
예제 #6
0
        public static MessageBoxResult ShowYesNo(string messageBoxText, string caption, string yesButtonText, string noButtonText, MessageBoxImage icon)
        {
            IgrisMessageBoxWindow IgrisMessageBoxWindow = new IgrisMessageBoxWindow(messageBoxText, caption, MessageBoxButton.YesNo, icon)
            {
                YesButtonText = yesButtonText,
                NoButtonText  = noButtonText
            };

            IgrisMessageBoxWindow.ShowDialog();
            return(IgrisMessageBoxWindow.Result);
        }