Пример #1
0
 void updatezy()
 {
     for (int i = 0; i < medataset.Tables[0].Rows.Count; i++)
     {
         funkcija f          = new funkcija();
         Panel    temp_panel = (Panel)f.make_new_func(i + 1, Convert.ToInt32(medataset.Tables[0].Rows[i][0]));
         f.Update2 += A_Update1;
         this.Controls.Add(temp_panel);
         br_tablica++;
     }
     rl_br_tablica = br_tablica;
 }
Пример #2
0
        private void dodajbut(object sender, EventArgs e)
        {
            int next_id = 1;

            if (medataset.Tables[0].Rows.Count > 0)
            {
                next_id = Convert.ToInt32(medataset.Tables[0].Rows[medataset.Tables[0].Rows.Count - 1][0]) + 1;
            }

            funkcija f          = new funkcija();
            Panel    temp_panel = f.make_new_func(rl_br_tablica, next_id);

            f.Update2 += A_Update1;
            this.Controls.Add(temp_panel);
            this.Controls[rl_br_tablica.ToString()].SendToBack();

            adapter.Fill(medataset);
            br_tablica++;
            rl_br_tablica++;
        }