Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mrowka[] listaMrowek;
- public Form1()
- {
- CreateObjects(20);
- InitializeComponent();
- Konosla();
- Console.WriteLine(listaMrowek[0].imie);
- Console.WriteLine(listaMrowek[0].ListaUmiejetnosci[1]);
- }
- public void CreateObjects(int itemsAnts)
- {
- listaMrowek = new Mrowka[itemsAnts];
- for (int i = 0; i<listaMrowek.Length; i++)
- {
- listaMrowek[i] = new Mrowka(4);
- }
- }
- private void mrowkaComboBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- // odwolanie sie do tablicy elementow typu mrowka
- }
- #region Konsola
- public void Konosla()
- {
- AllocConsole();
- }
- [DllImport("kernel32.dll", SetLastError = true)]
- [return: MarshalAs(UnmanagedType.Bool)]
- static extern bool AllocConsole();
- #endregion
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement