Exemple #1
0
 public static bool?AskDxMBox(string message, string title, E_DxButtons buttons, string optionnalMessage = null)
 {
     return(Application.Current.Dispatcher?.Invoke
            (
                () =>
     {
         return DxMBox.ShowDial(message, title, buttons, optionnalMessage);
     }
            ));
 }
Exemple #2
0
 public static bool?ShowStatus(string message, string title, Dictionary <string, bool?> states, string trueC = "#FF60DC32", string falseC = "#FFFF2323", string nullC = "#FFFFFFFF", E_DxButtons buttons = E_DxButtons.Yes | E_DxButtons.No)
 {
     return(Application.Current.Dispatcher?.Invoke
            (
                () =>
     {
         return ColumnStatus.ShowDial(message, title, states, trueC, falseC, nullC, buttons);
     }
            ));
 }
Exemple #3
0
        /// <summary>
        /// Show a message window, called by delegate (useful with async)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="message"></param>
        /// <param name="title"></param>
        public static bool?Dispatch_Mbox(object sender, string message, string title, E_DxButtons buttons = E_DxButtons.Ok, string optMessage = null)
        {
            bool?res = false;

            Application.Current.Dispatcher?.Invoke(() => res = DxMBox.ShowDial(message, title, buttons, optMessage));
            return(res);
        }