private void _connectionForm_ConnectionLost(object sender, EventArgs e) { _iconPictureBox.Image = new Icon(Resources.EasyConnect, 16, 16).ToBitmap(); Icon = Resources.Disconnected; ParentTabs.RedrawTabs(); }
private void _connectionForm_Connected(object sender, EventArgs e) { Icon = ConnectionFactory.GetProtocol(_connection).ProtocolIcon; _iconPictureBox.Image = new Icon(Icon, 16, 16).ToBitmap(); ParentTabs.RedrawTabs(); }