Exemple #1
0
        private void SetContent(string showText)
        {
            Paragraph paragraph = new Paragraph();

            paragraph.Inlines.AddRange(InlineEx.ConvertTextToInlineConsiderUrl(showText));
            FlowDocument flowDocument = new FlowDocument();

            flowDocument.Blocks.Add(paragraph);
            this.viewer.Document = flowDocument;
        }
Exemple #2
0
 public WndMsgBox(string message, string title, bool showCancelButton, Action <bool> callback = null)
 {
     this._isYesButtonClicked = false;
     this.InitializeComponent();
     this.tblContent.Inlines.AddRange(InlineEx.ConvertTextToInlineConsiderUrl(message));
     if (!string.IsNullOrEmpty(title))
     {
         Title = title;
     }
     if (!showCancelButton)
     {
         this.btnCancel.Visibility = Visibility.Collapsed;
     }
     this._callback = callback;
     Closed        += new EventHandler(this.WndMsgBox_Closed);
 }
Exemple #3
0
 private WndNotTipAgain(string text, string title, string showKey, bool showCancelButton = true, string okButtonText = null)
     : this(title, showKey, showCancelButton, okButtonText)
 {
     this.tblContent.Inlines.AddRange(InlineEx.ConvertTextToInlineConsiderUrl(text));
 }