/* The main box contains two overlapped panels, one containing information * on the outgoing transfer, the other for the incoming * The following two methods manage the visualization of one or the other */ private void ShowTransferOut(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { #region Show Transfers ProgressBarsOutPanel.Show(); ProgressBarsInPanel.Hide(); this.RaisePaintEvent(this, null); #endregion } }
private void HideOnClickOut(object sender, EventArgs e) { ProgressBarsInPanel.Hide(); ProgressBarsOutPanel.Hide(); this.Hide(); }