本文整理汇总了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();
}
示例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("");
}