コード例 #1
0
        //private void _btn_details_Click(object sender, RoutedEventArgs e)
        //{
        //    string czcard_id = (sender as Button).Tag.ToString();

        //    grid_info.Children.Add(new UcCreateCertificateProductDetails(dbOperation, czcard_id));
        //}

        private void _btn_card_Click(object sender, RoutedEventArgs e)
        {
            string card_id = (sender as Button).Tag.ToString();
            CertificateProductPreview cer = new CertificateProductPreview(dbOperation, card_id);

            cer.ShowDialog();
        }
コード例 #2
0
        void _tableview_DetailsRowEnvent(string id)
        {
            DataRow[] rows = currenttable.Select("cardid = '" + id + "'");
            string    type = rows[0]["type"].ToString();

            if (type == "动物证")
            {
                CertificatePreview cer = new CertificatePreview(dbOperation, id);
                cer.ShowDialog();
            }
            else if (type == "产品证")
            {
                CertificateProductPreview cer = new CertificateProductPreview(dbOperation, id);
                cer.ShowDialog();
            }
        }
コード例 #3
0
        void _tableview_DetailsRowEnvent(string id)
        {
            DataRow[] rows = currenttable.Select("cardid = '" + id + "'");
            string type = rows[0]["type"].ToString();

            if (type == "动物证")
            {
                CertificatePreview cer = new CertificatePreview(dbOperation, id);
                cer.ShowDialog();
            }
            else if (type == "产品证")
            {
                CertificateProductPreview cer = new CertificateProductPreview(dbOperation, id);
                cer.ShowDialog();
            }

        }
コード例 #4
0
        //private void _btn_details_Click(object sender, RoutedEventArgs e)
        //{
        //    string czcard_id = (sender as Button).Tag.ToString();

        //    grid_info.Children.Add(new UcCreateCertificateProductDetails(dbOperation, czcard_id));
        //}

        private void _btn_card_Click(object sender, RoutedEventArgs e)
        {
            string card_id = (sender as Button).Tag.ToString();
            CertificateProductPreview cer = new CertificateProductPreview(dbOperation, card_id);
            cer.ShowDialog();
        }