Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }