public AjouterCommandeAchat(string cma_code, CommandesAchat ca,Accueil ac)
        {
            InitializeComponent();
            this.ca = ca;
            this.ac = ac;
            tbCodeCommA.Text = cma_code;

            ToolTip t = new ToolTip();

            t.ShowAlways = true;
            t.SetToolTip(tbCP, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbFixe, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbMobile, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbFax, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(textBox7, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox3, "Ajouter");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox4, "Modifier");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox5, "Supprimer");
        }
Example #2
0
        private void afficherCommandesAchat()
        {
            if (cma_show == false)
            {
                cma           = new CommandesAchat(this);
                cma.MdiParent = this;
                cma.Show();
                cma.Location = new Point(70, 85);
                cma_show     = true;

                cl.Hide();
                cl_show = false;
                fr.Hide();
                fr_show = false;
                st.Hide();
                st_show = false;
                dv.Hide();
                dv_show = false;
                cmv.Hide();
                cmv_show = false;
                fa.Hide();
                fa_show = false;
            }
            else
            {
                cma.Hide();
                cma_show = false;
            }
        }
        public AjouterCommandeAchat(string cma_code, CommandesAchat ca, Accueil ac)
        {
            InitializeComponent();
            this.ca          = ca;
            this.ac          = ac;
            tbCodeCommA.Text = cma_code;

            ToolTip t = new ToolTip();

            t.ShowAlways = true;
            t.SetToolTip(tbCP, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbFixe, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbMobile, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(tbFax, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(textBox7, "Insertion des numéros uniquement.");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox3, "Ajouter");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox4, "Modifier");

            t.ShowAlways = true;
            t.SetToolTip(pictureBox5, "Supprimer");
        }
Example #4
0
        private void afficherCommandesAchat()
        {
            if (cma_show == false)
            {
                cma = new CommandesAchat(this);
                cma.MdiParent = this;
                cma.Show();
                cma.Location = new Point(70, 85);
                cma_show = true;

                cl.Hide();
                cl_show = false;
                fr.Hide();
                fr_show = false;
                st.Hide();
                st_show = false;
                dv.Hide();
                dv_show = false;
                cmv.Hide();
                cmv_show = false;
                fa.Hide();
                fa_show = false;
            }
            else
            {
                cma.Hide();
                cma_show = false;
            }
        }