public ChorusSendReceiveSettingsDialog()
 {
     InitializeComponent();
     _browser = new GeckoWebBrowser { Dock = DockStyle.Fill };
     var pathToHtml = Path.Combine(Path.Combine(Environment.CurrentDirectory, "SendReceiveSettingDialog"),
                                   "ChorusSendReceiveSettings.htm");
     _browser.Navigate("file://" + pathToHtml);
     Controls.Add(_browser);
     _internetTab = new HtmlButton(_browser, "tab-1");
     _internetTab.Clicked += OnTabClicked;
     _chorusHubTab = new HtmlButton(_browser, "tab-2");
     _chorusHubTab.Clicked += OnTabClicked;
 }
Beispiel #2
0
 public GeckoTestDlg()
 {
     InitializeComponent();
     _browser = new GeckoWebBrowser {Dock = DockStyle.Fill};
     _browser.Navigate("file://" + Path.Combine(Environment.CurrentDirectory, "GeckoTestDlg.htm"));
     Controls.Add(_browser);
     _usbButton = new HtmlButton(_browser, "UsbButton");
     _hubButton = new HtmlButton(_browser, "ChorusHubButton");
     _internetButton = new HtmlButton(_browser, "InternetButton");
     _settingButton = new HtmlButton(_browser, "settingsButton");
     _graphiteButton = new HtmlButton(_browser, "enableGraphiteButton");
     _toggleInsertUsbFlashDrive = new HtmlButton(_browser, "toggleInsertUsbFlashDrive");
     _usbButton.Clicked += OnUsbClicked;
     _hubButton.Clicked += OnHubClicked;
     _settingButton.Clicked += OnSettingsClicked;
     _internetButton.Clicked += OnInternetClicked;
     _graphiteButton.Clicked += OnGraphiteButtonClicked;
     _toggleInsertUsbFlashDrive.Clicked += OnToggleInsertUsbFlashDriveButtonClicked;
     _timer = new Timer();
     _timer.Tick += OnTimerTick;
     _timer.Interval = 5000;
     _timer.Start();
     Size = new Size(640, 480);
 }