Beispiel #1
0
        public static DialogControl <T> ShowDialog(ScrumSurface surface, DialogInfo info)
        {
            DialogControl <T> dia = ShowDialog(surface);

            dia.InitializeDialog(info);
            return(dia);
        }
Beispiel #2
0
        public static DialogControl <T> ShowDialog(ScrumSurface surface, DialogInfo info, MessageDialog.OptionTypes types)
        {
            DialogControl <T> dia = ShowDialog(surface, types);

            dia.InitializeDialog(info);
            return(dia);
        }
Beispiel #3
0
        public static DialogControl <T> ShowDialog(ScrumSurface surface, MessageDialog.OptionTypes opts)
        {
            Func <DialogControl <T> > f = new Func <DialogControl <T> >(() =>
            {
                DialogControl <T> dia = new DialogControl <T>(surface, opts);
                return(dia);
            });

            if (Application.Current.Dispatcher.CheckAccess())
            {
                return(f.Invoke());
            }
            else
            {
                return((DialogControl <T>)Application.Current.Dispatcher.Invoke(f));
            }
        }