Пример #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            UC_Cotisation uc = new UC_Cotisation();

            if (isColapsed)
            {
                panelLeft.Width = panelLeft.Width + 10;



                if (panelLeft.Width >= panelWidth)
                {
                    timer1.Stop();
                    isColapsed = false;
                    this.Refresh();
                }
            }
            else
            {
                panelLeft.Width = panelLeft.Width - 10;

                if (panelLeft.Width <= 65)
                {
                    timer1.Stop();
                    isColapsed = true;
                    this.Refresh();
                }
            }
        }
Пример #2
0
        private void btnContrib_Click(object sender, EventArgs e)
        {
            UC_Cotisation fr = new UC_Cotisation();

            MoveSidePanel(btnContrib);
            ChargerUser(fr);
        }