private void buttonNext_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBoxCloudName.Text)) { MessageBox.Show("Please insert the name for the cloud."); return; } this.Height += 220; panelCloudSelect.Visible = false; panelCloudLogin.Visible = true; var uri = cloudController.PrepareUri(); string Path = Environment.GetFolderPath(Environment.SpecialFolder.Cookies); try { System.IO.Directory.Delete(Path, true); }catch (Exception) {} webBrowser1.Navigate(uri); }
private void WebBrowser_Loaded(object sender, RoutedEventArgs e) { var uri = cloudController.PrepareUri(); webBrowser.Navigate(uri); }