Exemplo n.º 1
0
        private void btn_save_tab3_Click(object sender, RoutedEventArgs e)
        {
            string cikk1, charge1, beerk1, cikk2, charge2, beerk2;

            if (tbx_cikkModify_tab3.Text == "")
            {
                cikk1 = tbx_cikkView_tab3.Text;
            }
            else
            {
                cikk1 = tbx_cikkModify_tab3.Text;
            }

            if (tbx_chargeModify_tab3.Text == "")
            {
                charge1 = tbx_chargeView_tab3.Text;
            }
            else
            {
                charge1 = tbx_chargeModify_tab3.Text;
            }

            if (tbx_beerkModify_tab3.Text == "")
            {
                beerk1 = tbx_beerkView_tab3.Text;
            }
            else
            {
                beerk1 = tbx_beerkModify_tab3.Text;
            }
            cikk2   = tbx_cikkView_tab3.Text;
            charge2 = tbx_chargeView_tab3.Text;
            beerk2  = tbx_beerkView_tab3.Text;

            db.admin_meresModify(cikk1, charge1, beerk1, cikk2, charge2, beerk2);
            listLoader.adminMeasureLoader(db.admin_listviewLoader(tbx_cikk_tab3.Text, tbx_charge_tab3.Text, tbx_kw_tab3.Text, tbx_beerk_tab3.Text), lv_admin);
        }