private void btnSales_Click(object sender, EventArgs e) { UserControl content = new ucSales(); Global.mainForm.pContent.Controls.Clear(); pContent.Controls.Add(content); }
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); } }