/// <summary>
        /// Handles the LinkClicked event of the lnkAddChannel control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.Forms.LinkLabelLinkClickedEventArgs"/> instance containing the event data.</param>
        private void lnkAddChannel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmGateway gatewayForm = new frmGateway();

            gatewayForm.GatewayAdded += new NewGatewayEventHandler(gatewayForm_GatewayAdded);
            DialogResult result = gatewayForm.ShowDialog();

            //if (result == DialogResult.OK)
            // Autoresize
            //this.lvwChannels.AutoResizeColumn(0, ColumnHeaderAutoResizeStyle.ColumnContent);
        }
        /// <summary>
        /// Edits the channel.
        /// </summary>
        private void EditChannel()
        {
            object obj = lvwChannels.SelectedObject;

            if (obj != null)
            {
                GatewayConfig gwConfig = obj as GatewayConfig;

                frmGateway gatewayForm = new frmGateway();
                gatewayForm.GatewayUpdated += new UpdateGatewayEventHandler(gatewayForm_GatewayUpdated);
                gatewayForm.GatewayId       = gwConfig.Id;

                DialogResult result = gatewayForm.ShowDialog();
                //if (result == DialogResult.OK)
                // Autoresize
                //this.lvwChannels.AutoResizeColumn(0, ColumnHeaderAutoResizeStyle.ColumnContent);
            }
        }
        /// <summary>
        /// Handles the LinkClicked event of the lnkAddChannel control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.Forms.LinkLabelLinkClickedEventArgs"/> instance containing the event data.</param>
        private void lnkAddChannel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmGateway gatewayForm = new frmGateway();
            gatewayForm.GatewayAdded += new NewGatewayEventHandler(gatewayForm_GatewayAdded);
            DialogResult result = gatewayForm.ShowDialog();

            //if (result == DialogResult.OK)
                // Autoresize 
                //this.lvwChannels.AutoResizeColumn(0, ColumnHeaderAutoResizeStyle.ColumnContent);
        }
        /// <summary>
        /// Edits the channel.
        /// </summary>
        private void EditChannel()
        {
            object obj = lvwChannels.SelectedObject;
            if (obj != null)
            {
                GatewayConfig gwConfig = obj as GatewayConfig;

                frmGateway gatewayForm = new frmGateway();
                gatewayForm.GatewayUpdated += new UpdateGatewayEventHandler(gatewayForm_GatewayUpdated);
                gatewayForm.GatewayId = gwConfig.Id;

                DialogResult result = gatewayForm.ShowDialog();
                //if (result == DialogResult.OK)
                    // Autoresize 
                    //this.lvwChannels.AutoResizeColumn(0, ColumnHeaderAutoResizeStyle.ColumnContent);
            }
        }