예제 #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();
 }