Esempio n. 1
0
 private void Addbtn_Click(object sender, EventArgs e)
 {
     try
     {
         Controller.AddChannel(NameTB.Text, new Uri(URLTB.Text));
         Controller.UpdateChannels();
     }
     catch
     {
         MessageBox.Show("URL inserted incorrectly.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }