Exemplo n.º 1
0
        /// <summary>
        /// Show the dialog
        /// </summary>
        /// <param name="title">Dialogs title</param>
        /// <param name="info">Info-text</param>
        /// <param name="action">Working action</param>
        /// <param name="bundle">Skin-Bundle</param>
        /// <returns>TRUE, if the dialog was not canceled and there are no exceptions in action thread</returns>
        public static bool ShowDialog(String title, String info, WorkingActionHandler action, SkinBundle bundle)
        {
            WorkingDialogEx dlg = new WorkingDialogEx();

            dlg.Title           = title;
            dlg.lblInfo.Content = info;
            dlg.action          = action;

            if (bundle != null)
            {
                dlg.Resources.Source = bundle.XAMLSkinPath;
                dlg.Style            = (Style)dlg.Resources[bundle.WindowTemplateKey];
            }

            return(dlg.ShowDialog().GetValueOrDefault(false));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Show the dialog
 /// </summary>
 /// <param name="title">Dialogs title</param>
 /// <param name="info">Info-text</param>
 /// <param name="action">Working action</param>
 /// <returns>TRUE, if the dialog was not canceled and there are no exceptions in action thread</returns>
 public static bool ShowDialog(String title, String info, WorkingActionHandler action)
 {
     return ShowDialog(title, info, action, null);
 }
Exemplo n.º 3
0
        /// <summary>
        /// Show the dialog
        /// </summary>
        /// <param name="title">Dialogs title</param>
        /// <param name="info">Info-text</param>
        /// <param name="action">Working action</param>
        /// <param name="bundle">Skin-Bundle</param>
        /// <returns>TRUE, if the dialog was not canceled and there are no exceptions in action thread</returns>
        public static bool ShowDialog(String title, String info, WorkingActionHandler action, SkinBundle bundle)
        {
            WorkingDialogEx dlg = new WorkingDialogEx();
            dlg.Title = title;
            dlg.lblInfo.Content = info;
            dlg.action = action;

            if (bundle != null)
            {
                dlg.Resources.Source = bundle.XAMLSkinPath;
                dlg.Style = (Style)dlg.Resources[bundle.WindowTemplateKey];
            }

            return dlg.ShowDialog().GetValueOrDefault(false);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Show the dialog
 /// </summary>
 /// <param name="title">Dialogs title</param>
 /// <param name="info">Info-text</param>
 /// <param name="action">Working action</param>
 /// <returns>TRUE, if the dialog was not canceled and there are no exceptions in action thread</returns>
 public static bool ShowDialog(String title, String info, WorkingActionHandler action)
 {
     return(ShowDialog(title, info, action, null));
 }