public void UseStyle(DynamicWorkItemSixStyle style)
        {
            switch (style)
            {
            case DynamicWorkItemSixStyle.FourLastHyperLink:
                this.tbkAfterNameTwo.TextTrimming        = TextTrimming.WordEllipsis;
                this.tbkAfterNameTwo.HorizontalAlignment = HorizontalAlignment.Left;
                this.tbkAfterNameTwo.Style = (base.FindResource("TitleStyle") as Style);
                this.tbkAfterNameTwo.MouseLeftButtonDown += delegate
                {
                    BrowserUtil.OpenHyperlinkHandler(this.urlFour);
                };
                this.tbkAfterToNameFour.TextTrimming        = TextTrimming.WordEllipsis;
                this.tbkAfterToNameFour.HorizontalAlignment = HorizontalAlignment.Left;
                this.tbkAfterToNameFour.Style = (base.FindResource("TitleStyle") as Style);
                this.tbkAfterToNameFour.MouseLeftButtonDown += delegate
                {
                    BrowserUtil.OpenHyperlinkHandler(this.urlSix);
                };
                break;

            case DynamicWorkItemSixStyle.LastHyperLink:
                this.tbkAfterNameTwo.Foreground             = new SolidColorBrush(Color.FromRgb(0, 109, 131));
                this.tbkAfterToNameFour.TextTrimming        = TextTrimming.WordEllipsis;
                this.tbkAfterToNameFour.HorizontalAlignment = HorizontalAlignment.Left;
                this.tbkAfterToNameFour.Style = (base.FindResource("TitleStyle") as Style);
                this.tbkAfterToNameFour.MouseLeftButtonDown += delegate
                {
                    BrowserUtil.OpenHyperlinkHandler(this.urlSix);
                };
                break;
            }
        }
Exemple #2
0
 private void ViewLoggerNoticeHandler(object sender, MouseButtonEventArgs e)
 {
     try
     {
         BrowserUtil.OpenHyperlinkHandler(this.link);
     }
     catch (System.Exception)
     {
     }
     finally
     {
         base.Close();
     }
 }
Exemple #3
0
        public void UseStyle(DynamicWorkItemFourStyle style)
        {
            switch (style)
            {
            case DynamicWorkItemFourStyle.None:
                this.column3.Width = new GridLength(1.0, GridUnitType.Auto);
                this.tbkAfterNameTwo.HorizontalAlignment = HorizontalAlignment.Left;
                this.tbkAfterNameTwo.Foreground          = new SolidColorBrush(Color.FromRgb(0, 109, 131));
                break;

            case DynamicWorkItemFourStyle.LastHyperLink:
                this.column3.Width         = new GridLength(1.0, GridUnitType.Star);
                this.tbkAfterNameTwo.Style = (base.FindResource("TitleStyle") as Style);
                this.tbkAfterNameTwo.MouseLeftButtonDown += delegate
                {
                    BrowserUtil.OpenHyperlinkHandler(this.tbkAfterNameTwo.Tag.ToString());
                };
                break;
            }
        }
Exemple #4
0
 private void GoWebSiteHandler(object sender, MouseButtonEventArgs e)
 {
     BrowserUtil.OpenHyperlinkHandler("http://www.idkin.com");
 }