本文整理汇总了C#中Browser.Setup方法的典型用法代码示例。如果您正苦于以下问题:C# Browser.Setup方法的具体用法?C# Browser.Setup怎么用?C# Browser.Setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Browser
的用法示例。
在下文中一共展示了Browser.Setup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Form1_Load
//default functionality as form loads
private void Form1_Load(object sender, EventArgs e)
{
//objects which reference the form and/or other class objects
//option objects
this.aspectOption = new Option(installer, aspectCombobox, aspectPicturebox, aspectLabel, Properties.Settings.Default.settingComboboxAspect);
this.scoreboardMinmodeOption = new Option(installer, scoreboardMinmodeCombobox, scoreboardMinmodePicturebox, scoreboardMinmodeLabel, Properties.Settings.Default.settingComboboxMinmode);
this.scoreboardMaxmodeOption = new Option(installer, scoreboardMaxmodeCombobox, scoreboardMaxmodePicturebox, scoreboardMaxmodeLabel, Properties.Settings.Default.settingComboboxMaxmode);
//hud location objects
this.assetLocation = new Location();
this.installLocation = new Location();
//one-off class objects
this.buttons = new Buttons(this, uninstallButton, installButton);
this.installer = new Installer(buttons, assetLocation, installLocation);
this.uninstaller = new Uninstaller();
this.browser = new Browser(installer, InstallBrowserDialog, InstallBrowserPathLabel, InstallBrowserInstructLabel, Properties.Settings.Default.settingInstallBrowserPath);
this.downloader = new Downloader(assetLocation, installLocation);
this.tracker = new Tracker(buttons, installer, assetLocation, installLocation, aspectOption, scoreboardMinmodeOption, scoreboardMaxmodeOption);
//TODO make these actually dynamic
//assetLocation.VersionHud = new Version("2.0.4");
//installLocation.VersionHud = new Version("2.0.4");
//MessageBox.Show(Convert.ToString("asset version " + assetLocation.VersionHud));
//MessageBox.Show(Convert.ToString("install version " + installLocation.VersionHud));
//generate tooltips for the form
updateTooltips();
//Generate tooltips, populate strings, comboboxes, and assets.
tracker.Setup();
//Fill the browser with a best guess default string or a saved string, if one exists
browser.Setup();
//download current updates and check if they need to be installed
if (downloader.checkAndUpdate())
{
//TODO special mode for the install button
}
}