当前位置: 首页>>代码示例>>C#>>正文


C# ISettings.GetMarqueeText方法代码示例

本文整理汇总了C#中ISettings.GetMarqueeText方法的典型用法代码示例。如果您正苦于以下问题:C# ISettings.GetMarqueeText方法的具体用法?C# ISettings.GetMarqueeText怎么用?C# ISettings.GetMarqueeText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ISettings的用法示例。


在下文中一共展示了ISettings.GetMarqueeText方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnInit

 protected override void OnInit(EventArgs e)
 {
     base.OnInit (e);
     presenterd = ClientHelper.Connect();
     settings = ClientHelper.ConnectSettings(presenterd);
     txtMarquee.Text = settings.GetMarqueeText();
     txtNotepad.Text = settings.GetNotepadText();
 }
开发者ID:micolous,项目名称:SAGAPresenter2,代码行数:8,代码来源:Default.aspx.cs

示例2: MainWindow

    //("                                                                                                 [lblMarquee] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec metus quam, ullamcorper eu suscipit quis, rutrum sit amet massa.                                                                                                 ");
    //" Nunc dapibus accumsan metus, commodo placerat urna blandit non. Nullam turpis justo, dictum quis dignissim non, vehicula vel lorem. Fusce congue purus odio, lobortis pulvinar neque. Integer dui odio, venenatis sed tincidunt in, fringilla id urna. Maecenas faucibus massa eu orci tincidunt ac vulputate nibh aliquam. Aliquam ullamcorper erat nunc. Vestibulum hendrerit adipiscing neque quis interdum.");
    public MainWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build ();

        //lblRWinner.Style.FontDescription.Family = "Bitstream Vera Sans Mono";

        vpMarquee.BorderWidth = 0;
        vpMarquee.ShadowType = ShadowType.None;
        //vpMarquee.HeightRequest = 40;

        vpMarquee.Add (lblMarquee);
        this.vbox1.PackEnd (vpMarquee, false, false, 0);

        // update marquee every 33ms (~30fps)
        GLib.Timeout.Add (33, new GLib.TimeoutHandler (MarqueeUpdate));

        nbMain.ShowBorder = nbMain.ShowTabs = false;
        nbMain.CurrentPage = 0;
        // connect to the backend
        presenterd = ClientHelper.Connect ();
        settings = ClientHelper.ConnectSettings (presenterd);

        // populate fields
        MarqueeUpdate(settings.GetMarqueeText());

        // wire events
        presenterd.ClockChange += PresenterdClockChange;
        presenterd.SlideChange += PresenterdSlideChange;
        presenterd.PickWinner += PresenterdPickWinner;
        settings.MarqueeChanged += SettingsMarqueeChanged;
        presenterd.SponsorChange += PresenterdSponsorChange;
        settings.SettingsChanged += SettingsChanged;

        SettingsChanged();
        PresenterdSlideChange(presenterd.CurrentSlide);

        /*
        Console.WriteLine ("Competitions:");
        foreach (SCompetition c in settings.CompetitionsS) {
            Console.WriteLine (new Competition(c));
        }*/

        RebuildCompetitionTable();

        StartRandomiserText("");
    }
开发者ID:micolous,项目名称:SAGAPresenter2,代码行数:49,代码来源:MainWindow.cs


注:本文中的ISettings.GetMarqueeText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。