Пример #1
0
        protected void CalculateKatigoria_Click(object sender, EventArgs e)
        {
            BLayer         myBlayer   = new BLayer();
            Dikaiologitika fermenaDik = new Dikaiologitika();

            try
            {
                foreach (ListItem li in DikaiologitikaListBox.Items)
                {
                    fermenaDik.id = Convert.ToInt32(li.Value);
                    fd.Add(fermenaDik);
                }

                for (int i = 0; i < fd.Count; i++)
                {
                    fermenaDik = fd[i];
                    myBlayer.add_Fermena_Dikaiologitika(fermenaDik);
                }

                Katigoria myKatigoria = myBlayer.get_Katigoria_From_Dikaiologitika();
                newKatigoria.Text = myKatigoria.katPerigrafi.ToString();
                katalogisteo.Text = myKatigoria.katKatalogisteo.ToString();
                kratiseis.Text    = myKatigoria.katKratiseis.ToString();
                pliroteo.Text     = myKatigoria.katPliroteo.ToString();
                dx.Text           = myKatigoria.katDXmas.ToString();
                dp.Text           = myKatigoria.katDPasxa.ToString();
            }

            catch (Exception ex)
            {
                errorMessage.Visible = true;
                errorMessage.Text    = ex.Message.ToString();
            }
        }