Пример #1
0
        private void btnSales_Click(object sender, EventArgs e)
        {
            UserControl content = new ucSales();

            Global.mainForm.pContent.Controls.Clear();
            pContent.Controls.Add(content);
        }
Пример #2
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     try
     {
         Cursor.Current = Cursors.WaitCursor;
         UserControl content = new ucSales();
         Global.mainForm.pContent.Controls.Clear();
         Global.mainForm.pContent.Controls.Add(content);
         Cursor.Current = Cursors.Default;
     }
     catch (Exception ex)
     {
         Mail.gestionaError(ex.Message); Global.error = true;
         MessageBox.Show("ERROR", "Charlotte", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }