Beispiel #1
0
 /// <summary>
 /// Carrega os incrementos e apresenta na lista.
 /// </summary>
 public void LoadIncrement()
 {
     list_increment.Items.Clear();
     //obtem os incrementos e preenche a lista
     increment = ClasseDB.GetClasseBasicData("classes_increment");
     for (var n = 0; n < increment.Count; n++)
     {
         list_increment.Items.Add(new DarkListItem($"{increment[n].ID} - {increment[n].Name}"));
     }
 }
Beispiel #2
0
        /// <summary>
        /// Carrega as classes e apreseta na lista.
        /// </summary>
        public void LoadClasse()
        {
            list_classes.Items.Clear();

            //obtem as classes e preenche a lista
            classe = ClasseDB.GetClasseBasicData("classes");
            for (var n = 0; n < classe.Count; n++)
            {
                list_classes.Items.Add(new DarkListItem($"{classe[n].ID} - {classe[n].Name}"));
            }
        }
        public Basic()
        {
            InitializeComponent();

            DockArea = DarkDockArea.Document;
            Dock     = DockStyle.Fill;

            txt_id.KeyPress    += ControlEvent.TextBox_KeyPress;
            txt_level.KeyPress += ControlEvent.TextBox_KeyPress;
            txt_point.KeyPress += ControlEvent.TextBox_KeyPress;

            //obtem os incrementos e preenche a lista
            increment = ClasseDB.GetClasseBasicData("classes_increment");
            for (var n = 0; n < increment.Count; n++)
            {
                list_increment.Items.Add(new DarkListItem($"{increment[n].ID} - {increment[n].Name}"));
            }
        }