本文整理汇总了C#中System.Threading.Timer.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Timer.ToString方法的具体用法?C# Timer.ToString怎么用?C# Timer.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Threading.Timer
的用法示例。
在下文中一共展示了Timer.ToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: init
public void init()
{
/* Make Our Connection!*/
Glade.XML gxml = new Glade.XML (SupportFileLoader.locateGameFile("gpremacy_gui/gpremacy_gui.glade"), "GameSetup", null);
gxml.Autoconnect (this);
GameSetup.Modal = true;
GameSetup.TransientFor = MainWindow;
GameSetup.DeleteEvent += on_GameSetup_delete_event;
GameSetupSingleStart.Clicked += on_GameSetupSingleStart_clicked;
GameSetupConnectButton.Clicked += on_GameSetupConnectButton_clicked;
GameSetupMultiStart.Clicked += on_GameSetupMultiStart_clicked;
GameSetupRadioClient.Toggled += on_MultiRadio_changed;
GameSetupRadioServer.Toggled += on_MultiRadio_changed;
GameSetupPortLabel.Text += "(normally " + Game.DefaultPort.ToString();
GameSetupMultiStart.Sensitive = false;
populatePlayers(GameSetupSingleCountryTable);
populatePlayers(GameSetupCountryTable);
/* Turn off the AI buttons */
setSensitiveAIButtons(GameSetupCountryTable, false);
on_MultiRadio_changed(null, null); /* Fake event */
// Create a timer that waits one second, then invokes every second.
UpdateStatusTimer = new Timer(new TimerCallback(updateStatus), null, 1000, 1000);
UpdateStatusTimer.ToString(); // Shut UP, you damn warning!
GameSetupEntryIP.Text = "192.168.1.150";
}