private void GitBtn_Click(object sender, EventArgs e) { try { if (UrlIsValid(URLTxt.Text)) { Tarayici.Navigate(URLTxt.Text); } else { throw new Exception(); } } catch (FormatException) { MessageBox.Show("Site ismi yanlış"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void BtnGit_Click(object sender, EventArgs e) { try { if (UrlIsValid(TxtURL.Text)) { Tarayici.Navigate(TxtURL.Text); } else { throw new FormatException(); } } catch (FormatException) { MessageBox.Show("Site adresi hatalı!\nLütfen Yeniden Deneyiniz."); } catch (Exception ex) { MessageBox.Show(ex.Message); } }