Beispiel #1
0
        public MenuAdult(List <Tour> tours, NavigatorAdult form) : base(tours, form)
        {
            InitializeComponent();

            menuPanel = new AsistimeMenuPanel(this)
            {
                Parent = this
            };
            menuPanel.Location = new System.Drawing.Point(0, 0);
            this.Controls.Add(menuPanel);

            MyTours = new AsistimeCardContainer(tours, this)
            {
                Parent = this
            };
            contentPanel.Controls.Add(MyTours);

            NewTours = new AsistimeCardContainer(null, this)
            {
                Parent = this
            };
            contentPanel.Controls.Add(NewTours);

            ShowMyTours();
        }
Beispiel #2
0
        public void PlayTour(Tour tour)
        {
            this.Hide();
            NavigatorAdult form = previousForm as NavigatorAdult;

            form.PlayTour(tour);
        }
        protected void Asistime(object sender, EventArgs e)
        {
            NavigatorAdult control = this.Parent as NavigatorAdult;

            control.Asistime();
        }