Ejemplo n.º 1
0
 private void _linkChannelButton_Click(object sender, EventArgs e)
 {
     if (_channelsDataGridView.SelectedRows.Count > 0)
     {
         LinkedChannelItem     linkItem = _channelsDataGridView.SelectedRows[0].DataBoundItem as LinkedChannelItem;
         CreateChannelLinkForm form     = new CreateChannelLinkForm();
         form.Channel = linkItem.Channel;
         if (form.ShowDialog() == DialogResult.OK)
         {
             ChannelLinks.Save();
             string message;
             Color  rowColor;
             GetLinkedMessageAndColor(linkItem.Channel, out message, out rowColor);
             linkItem.Message  = message;
             linkItem.RowColor = rowColor;
             _channelItemsBindingSource.ResetBindings(false);
         }
     }
 }
Ejemplo n.º 2
0
 private void _linkChannelButton_Click(object sender, EventArgs e)
 {
     if (_channelsDataGridView.SelectedRows.Count > 0)
     {
         LinkedChannelItem linkItem = _channelsDataGridView.SelectedRows[0].DataBoundItem as LinkedChannelItem;
         CreateChannelLinkForm form = new CreateChannelLinkForm();
         form.Channel = linkItem.Channel;
         if (form.ShowDialog() == DialogResult.OK)
         {
             ChannelLinks.Save();
             string message;
             Color rowColor;
             GetLinkedMessageAndColor(linkItem.Channel, out message, out rowColor);
             linkItem.Message = message;
             linkItem.RowColor = rowColor;
             _channelItemsBindingSource.ResetBindings(false);
         }
     }
 }