Exemple #1
0
        public static bool?ShowContentDialog(object contentView, string title)
        {
            var dlWin = new DialogSelectWindow
            {
                Title = title
            };

            dlWin.PART_ContentControl.Content = contentView;

            return(dlWin.ShowDialog());
        }
Exemple #2
0
        public static bool?ShowSimpleSelectDialog(Window owner, string title, string text)
        {
            var stView = new SimpleTextView();

            stView.TextContent.Text = text;

            var dlWin = new DialogSelectWindow
            {
                Title = title
            };

            dlWin.PART_ContentControl.Content = stView;
            dlWin.Owner = owner;

            return(dlWin.ShowDialog());
        }
Exemple #3
0
        public static bool?ShowSimpleSelectDialog(string title, string text)
        {
            var stView = new SimpleTextView();

            stView.TextContent.Text = text;

            var dlWin = new DialogSelectWindow
            {
                Title = title
            };

            dlWin.PART_ContentControl.Content = stView;
            dlWin.WindowStartupLocation       = WindowStartupLocation.CenterScreen;

            return(dlWin.ShowDialog());
        }