Пример #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);
     }
 }
Пример #2
0
 private void DeleteBN_Click(object sender, EventArgs e)
 {
     Controller.DeleteChannel();
     Controller.UpdateChannels();
 }
Пример #3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Controller.UpdateChannels();
 }