public Authentification(MDIParent parent)
 {
     InitializeComponent();
     this.Owner = parent;
     this.parent = parent;
     this.mDIParent = parent;
 }
 public FormGestionCategorie(MDIParent parent)
 {
     InitializeComponent();
     this.Parent = parent;
        // gestion_utilisateur.privilege privi = new gestion_utilisateur.privilege();
        // privi.categoriebien(Parent.priv, this);
 }
Beispiel #3
0
 public FormInventaire(MDIParent mDIParent, String uidInventaire)
 {
     this.mDIParent = mDIParent;
     this.uidInventaire = uidInventaire;
     InitializeComponent();
     //change the dimensions of button itself
     toolStrip1.AutoSize = false;
     toolStrip1.Height = 50;
     toolStripButton1.AutoSize = false;
     toolStripButton1.Width = 50;
     //resize the image of the button to the
     int sourceWidth = toolStripButton1.Image.Width;
     int sourceHeight = toolStripButton1.Image.Height;
     Bitmap b = new Bitmap(40, 40);
     Graphics g = Graphics.FromImage((Image)b);
     g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
     g.DrawImage(toolStripButton1.Image, 0, 0, 40, 40);
     g.Dispose(); Image myResizedImg = (Image)b;
     //put the resized image back to the button and change toolstrip's
     toolStripButton1.Image = myResizedImg;
     toolStrip1.ImageScalingSize = new Size(35, 35);
     gestion_utilisateur.privilege privi = new gestion_utilisateur.privilege();
     privi.forminventaire(mDIParent.priv, this);
     //privi.forminventaire(mDIParent.priv, this);
 }
        public OuvrirInventaire(MDIParent parent)
        {
            InitializeComponent();
            this.mDIParent = parent;

            Bitmap b = new Bitmap(40, 40);
            Graphics g = Graphics.FromImage((Image)b);
            //Graphics g2 = Graphics.FromImage((Image)b);

                       g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;

                        g.DrawImage(bOuvrir.Image, 0, 0, 40, 40);
                        g.Dispose(); Image myResizedImg = (Image)b;
                        //put the resized image back to the button and change toolstrip's
                       bOuvrir.Image = myResizedImg;
        }
        public NouvelInventaire(MDIParent parent)
        {
            InitializeComponent();
            this.parent = parent;

            Bitmap b = new Bitmap(40, 40);
               // Bitmap b2 = new Bitmap(40, 40);
            Graphics g = Graphics.FromImage((Image)b);
              //Graphics g2 = Graphics.FromImage((Image)b);

                       g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;

                        g.DrawImage(importer.Image, 0, 0, 30, 30);
                        g.Dispose();
            Image myResizedImg = (Image)b;
                        //put the resized image back to the button and change toolstrip's
                       importer.Image = myResizedImg;
                       //bAnnuler.Image = myResizedImg;

                      /* g2.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
                       g2.DrawImage(bAnnuler.Image, 0, 0, 40, 40);
                       g2.Dispose(); Image size1 = (Image)b;
                       bAnnuler.Image = size1;*/
        }
Beispiel #6
0
 private void toolStripButton1_Click_2(object sender, EventArgs e)
 {
     MDIParent parent = new MDIParent();
     parent.Show();
 }