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); } }
private void DeleteBN_Click(object sender, EventArgs e) { Controller.DeleteChannel(); Controller.UpdateChannels(); }
private void Form1_Load(object sender, EventArgs e) { Controller.UpdateChannels(); }