Ejemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            Datamgmt datamgmt = new Datamgmt();

            string[] strinput = new string[3];
            int      nbrinput = 0;

            strinput[0] = txtCatid.Text;
            strinput[1] = txtCateName.Text;
            strinput[2] = txtCateDesc.Text;

            nbrinput = 3;

            retval = datamgmt.ShowData(strinput, nbrinput, "category");
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            Datamgmt datamgmt = new Datamgmt();

            string[] strinput = new string[4];
            int      nbrinput = 0;

            strinput[0] = txtSupplierID.Text;
            strinput[1] = txtSupplierName.Text;
            strinput[2] = txtContact.Text;
            strinput[3] = txtWebsite.Text;

            nbrinput = 4;

            retval = datamgmt.ShowData(strinput, nbrinput, "supplier");
        }
Ejemplo n.º 3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            Datamgmt datamgmt = new Datamgmt();

            string[] strinput = new string[4];
            int      nbrinput = 0;

            strinput[0] = txtCustomerID.Text;
            strinput[1] = txtCateID.Text;
            strinput[2] = txtSuppID.Text;
            strinput[3] = txtProdID.Text;

            nbrinput = 4;

            retval = datamgmt.ShowData(strinput, nbrinput, "follow");
        }
Ejemplo n.º 4
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            Datamgmt datamgmt = new Datamgmt();

            string[] strinput = new string[5];
            int      nbrinput = 0;

            strinput[0] = txtCustomerID.Text;
            strinput[1] = txtProductID.Text;
            strinput[2] = txtSaledate.Text;
            strinput[3] = txtProdqty.Text;
            strinput[4] = txtSaleprice.Text;

            nbrinput = 5;

            retval = datamgmt.ShowData(strinput, nbrinput, "order");
        }
Ejemplo n.º 5
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            Datamgmt datamgmt = new Datamgmt();

            string[] strinput = new string[5];
            int      nbrinput = 0;

            strinput[0] = txtUsername.Text;
            strinput[1] = txtProductID.Text;
            strinput[2] = txtReviewDate.Text;
            strinput[3] = txtComment.Text;
            strinput[4] = txtRating.Text;

            nbrinput = 5;

            retval = datamgmt.ShowData(strinput, nbrinput, "review");
        }
Ejemplo n.º 6
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            Datamgmt datamgmt = new Datamgmt();

            string[] strinput = new string[8];
            int      nbrinput = 0;

            strinput[0] = txtCustomerID.Text;
            strinput[1] = txtFirstname.Text;
            strinput[2] = txtLastname.Text;
            strinput[3] = txtEmail.Text;
            strinput[4] = txtAddress.Text;
            strinput[5] = txtCity.Text;
            strinput[6] = txtState.Text;
            strinput[7] = txtZip.Text;

            nbrinput = 8;

            retval = datamgmt.ShowData(strinput, nbrinput, "customer");
        }
Ejemplo n.º 7
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            Datamgmt datamgmt = new Datamgmt();

            string[] strinput = new string[8];
            int      nbrinput = 0;

            strinput[0] = txtProductid.Text;
            strinput[1] = txtProductName.Text;
            strinput[2] = txtProductImg.Text;
            strinput[3] = txtProductDesc.Text;
            strinput[4] = txtCategoryID.Text;
            strinput[5] = txtSupplierID.Text;
            strinput[6] = txtPurchasePrice.Text;
            strinput[7] = txtSalePrice.Text;

            nbrinput = 8;

            retval = datamgmt.ShowData(strinput, nbrinput, "product");
        }