2018-06-05 12:59:35 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using Bunifu.Framework.UI;
|
|
|
|
|
using GestionDeCommerceInfoClasseBDDNCouches;
|
|
|
|
|
using GestionDeCommerceInfoClasseBDDNCouches.DataLayer;
|
|
|
|
|
|
|
|
|
|
namespace Gestion_de_commerce_Informatique
|
|
|
|
|
{
|
|
|
|
|
public partial class Form1 : Form
|
|
|
|
|
{
|
|
|
|
|
Object panRightControl;
|
2018-06-05 17:20:36 +02:00
|
|
|
|
|
|
|
|
|
DashBoard dashBoard;
|
|
|
|
|
GestionUtilisateurs gestionUtilisateur;
|
|
|
|
|
Commande commande;
|
2018-06-05 12:59:35 +02:00
|
|
|
|
|
2018-06-05 17:20:36 +02:00
|
|
|
|
|
2018-06-05 12:59:35 +02:00
|
|
|
|
public Form1()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2018-06-05 17:20:36 +02:00
|
|
|
|
dashBoard = new DashBoard();
|
|
|
|
|
gestionUtilisateur = new GestionUtilisateurs();
|
|
|
|
|
commande = new Commande(); ;
|
|
|
|
|
panRightControl = dashBoard;
|
2018-06-05 12:59:35 +02:00
|
|
|
|
this.panRight.Controls.Add((Control)panRightControl);
|
2018-06-05 17:20:36 +02:00
|
|
|
|
|
2018-06-05 12:59:35 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btnExit_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Application.Exit();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btn_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
BunifuFlatButton button = (BunifuFlatButton)sender;
|
|
|
|
|
btnUserMannager.Normalcolor = btnCommande.Normalcolor = btnConfig.Normalcolor = btnDashBoard.Normalcolor = btnStock.Normalcolor = Color.Transparent;
|
|
|
|
|
|
|
|
|
|
button.Normalcolor = Color.FromArgb(100, 0, 0, 0);
|
|
|
|
|
|
|
|
|
|
switch (button.Text)
|
|
|
|
|
{
|
|
|
|
|
case "DashBoard":
|
|
|
|
|
this.panRight.Controls.Remove((Control)panRightControl);
|
2018-06-05 17:20:36 +02:00
|
|
|
|
panRightControl = dashBoard;
|
2018-06-05 12:59:35 +02:00
|
|
|
|
this.panRight.Controls.Add((Control)panRightControl);
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case "Commande":
|
|
|
|
|
this.panRight.Controls.Remove((Control)panRightControl);
|
2018-06-05 17:20:36 +02:00
|
|
|
|
panRightControl = commande;
|
2018-06-05 12:59:35 +02:00
|
|
|
|
this.panRight.Controls.Add((Control)panRightControl);
|
|
|
|
|
break;
|
|
|
|
|
case "Stock":
|
|
|
|
|
break;
|
|
|
|
|
case "Configuration":
|
|
|
|
|
break;
|
|
|
|
|
case "Gestion utilisateurs":
|
|
|
|
|
this.panRight.Controls.Remove((Control)panRightControl);
|
2018-06-05 17:20:36 +02:00
|
|
|
|
panRightControl = gestionUtilisateur;
|
2018-06-05 12:59:35 +02:00
|
|
|
|
this.panRight.Controls.Add((Control)panRightControl);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-06-05 17:20:36 +02:00
|
|
|
|
|
2018-06-05 12:59:35 +02:00
|
|
|
|
}
|
|
|
|
|
}
|