Exemple #1
0
 private void c1TextBox2_TextChanged(object sender, EventArgs e)
 {
     btnOK.Enabled = true;
     if (Save)
     {
         TB_Articles a = new TB_Articles();
         c1TextBox1.Value = a.GenerateCode((string)c1TextBox2.Text);
     }
 }
Exemple #2
0
        public InfoArticle()
        {
            InitializeComponent();
            btnOK.Enabled    = true;
            Save             = true;
            c1TextBox3.Value = 1;
            DB_PostgreSQL dataBase = new DB_PostgreSQL();

            c1Combo1.DataSource    = dataBase.returnDataSet("SELECT \"Code\",\"Libelle\" FROM \"Famille\"").Tables[0];
            c1Combo1.DisplayMember = "Libelle";
            c1Combo1.ValueMember   = "Code";
            c1Combo1.Text          = "";
            c1NumericEdit1.Value   = 0;
            c1NumericEdit2.Value   = 0;
            c1NumericEdit3.Value   = 0;
            c1NumericEdit4.Value   = 0;
            TB_Articles article = new TB_Articles();

            c1TextBox1.Value = article.GenerateCode((string)c1TextBox2.Text);
        }