/// <summary> /// Konstruktor klase Cube sa parametrima. /// </summary> /// <param name="size">Velicina stranice kuce.</param> public Hangar(float width, float height, float depth) { this.m_width = width; this.m_height = height; this.m_depth = depth; try { m_box = new Box(m_width, m_height, m_depth); m_antena = new Antenna(m_width / 24.0f, m_height / 4.0f, m_depth / 5.0f); } catch (Exception) { MessageBox.Show("Neuspesno kreirana instanca klase Box", "GRESKA", MessageBoxButtons.OK, MessageBoxIcon.Error); } }