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


C# Browser.Setup方法代码示例

本文整理汇总了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
            }
        }
开发者ID:TDarkShadow,项目名称:thwartski-tf2-hud,代码行数:45,代码来源:Form1.cs


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