public AsistimeRegister() : base()
        {
            InitializeComponent();

            Label nameLabel = new Label()
            {
                Text  = "NOMBRE",
                Font  = Constants.H2LabelFont,
                Width = 400
            };

            this.Controls.Add(nameLabel);

            nameTextBox = new AsistimeSearchBox()
            {
                Font     = Constants.TextBoxFont,
                Parent   = this,
                Width    = 400,
                TextName = null
            };
            this.Controls.Add(nameTextBox);

            nameTextBox.Location = new Point(this.Width / 2 - nameTextBox.Width / 2, initControlsHeight);
            nameLabel.Location   = new Point(nameTextBox.Location.X, nameTextBox.Location.Y - spaceBeforeTextBox);

            Label mailLabel = new Label()
            {
                Text  = "MAIL",
                Font  = Constants.H2LabelFont,
                Width = 400
            };

            this.Controls.Add(mailLabel);

            mailTextBox = new AsistimeSearchBox()
            {
                Font     = Constants.TextBoxFont,
                Parent   = this,
                Width    = 400,
                TextName = null
            };
            this.Controls.Add(mailTextBox);

            mailTextBox.Location = new Point(this.Width / 2 - mailTextBox.Width / 2, nameTextBox.Location.Y + spaceBetweenTextBoxes / 2);
            mailLabel.Location   = new Point(mailTextBox.Location.X, mailTextBox.Location.Y - spaceBeforeTextBox);

            Label passwrdLabel = new Label()
            {
                Text  = "PASSWORD",
                Font  = Constants.H2LabelFont,
                Width = 400
            };

            this.Controls.Add(passwrdLabel);

            passwrdTextBox = new AsistimeSearchBox()
            {
                Font       = Constants.TextBoxFont,
                Parent     = this,
                Width      = 400,
                TextName   = null,
                IsPassword = true
            };
            this.Controls.Add(passwrdTextBox);

            passwrdTextBox.Location = new Point(this.Width / 2 - passwrdTextBox.Width / 2, mailTextBox.Location.Y + spaceBetweenTextBoxes / 2);
            passwrdLabel.Location   = new Point(passwrdTextBox.Location.X, passwrdTextBox.Location.Y - spaceBeforeTextBox);

            Label passwrdConfirmationLabel = new Label()
            {
                Text  = "REPETIR PASSWORD",
                Font  = Constants.H2LabelFont,
                Width = 400
            };

            this.Controls.Add(passwrdConfirmationLabel);

            passwrdConfirmationTextBox = new AsistimeSearchBox()
            {
                Font       = Constants.TextBoxFont,
                Parent     = this,
                Width      = 400,
                TextName   = null,
                IsPassword = true
            };
            this.Controls.Add(passwrdConfirmationTextBox);

            passwrdConfirmationTextBox.Location = new Point(this.Width / 2 - passwrdConfirmationTextBox.Width / 2, passwrdTextBox.Location.Y + spaceBetweenTextBoxes / 2);
            passwrdConfirmationLabel.Location   = new Point(passwrdConfirmationTextBox.Location.X, passwrdConfirmationTextBox.Location.Y - spaceBeforeTextBox);

            registerAccountButton            = new AsistimeActionButton();
            registerAccountButton.Click     += new EventHandler(RegisterAccount);
            registerAccountButton.ButtonText = "Registrar cuenta";
            this.Controls.Add(registerAccountButton);

            backToLoginButton            = new AsistimeActionButton();
            backToLoginButton.Click     += new EventHandler(BackToLogin);
            backToLoginButton.ButtonText = "Volver al Login";
            this.Controls.Add(backToLoginButton);
        }
        public AsistimeTourCard(Tour tour, int x, int y)
        {
            color        = Color.Transparent;
            BorderRadius = 20;

            if (tour.viewFlag)
            {
                BackColor = ColorTranslator.FromHtml(Constants.TourCardNew);
                PictureBox newImage = new PictureBox();
                newImage.Image = Constants.NewImage;
                this.Controls.Add(newImage);
                newImage.Width    = 100;
                newImage.Height   = 40;
                newImage.Location = new Point(Constants.TourCardWidth - 100, 0);
                newImage.BringToFront();
            }
            else
            {
                BackColor = ColorTranslator.FromHtml(Constants.TourCardBackground);
            }

            this.Width = Constants.TourCardWidth;

            //Título
            Label title = new Label();

            title.AutoSize = true;
            title.Font     = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            title.Location = new System.Drawing.Point(12, 16);
            title.Width    = Constants.TourCardWidth - 20;
            title.TabIndex = 1;
            title.Text     = tour.name;

            //Descripción
            Label description = new Label();

            description.Location = new System.Drawing.Point(12, 59);
            description.Width    = Constants.TourCardWidth - 20;
            description.Height   = Constants.TourCardHeigth / 2;
            description.TabIndex = 2;
            description.Text     = tour.description;

            //Botón de realizar tour
            AsistimeActionButton playButton = new AsistimeActionButton();

            playButton.TabIndex   = 0;
            playButton.ButtonText = "Realizar Tour";
            //playButton.ReSize();
            //playButton.Location = new Point(Constants.TourCardWidth - playButton.Width - 30,
            //Constants.TourCardHeigth - playButton.Height - 10);
            int playButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(playButton.ButtonText, playButton.Font);
                size.Width     += 40;
                playButtonWidth = (int)size.Width;
            }
            playButton.Location = new Point(Constants.TourCardWidth - playButtonWidth - 10, Constants.TourCardHeigth - playButton.Height - 10);
            playButton.Click   += new EventHandler(this.PlayTour);

            //Formato de la tarjeta
            Controls.Add(description);
            Controls.Add(title);
            Controls.Add(playButton);
            Font         = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            ForeColor    = ColorTranslator.FromHtml(Constants.TourCardFontColour);
            Size         = new System.Drawing.Size(Constants.TourCardWidth, Constants.TourCardHeigth);
            TabIndex     = 0;
            TabStop      = false;
            Location     = new System.Drawing.Point(x, y);
            tourAsociado = tour;
        }
        public AssistantTourCard(Tour tour, int x, int y)
        {
            color        = Color.Transparent;
            BorderRadius = 20;
            BackColor    = ColorTranslator.FromHtml(Constants.TourCardBackground);

            //Título
            Label title = new Label();

            title.AutoSize = true;
            title.Font     = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            title.Location = new System.Drawing.Point(12, 16);
            title.Width    = Constants.TourCardWidth - 20;
            title.TabIndex = 1;
            title.Text     = tour.name;

            //Descripción
            Label description = new Label();

            description.Location = new System.Drawing.Point(12, 59);
            description.Width    = Constants.TourCardWidth - 20;
            description.Height   = Constants.TourCardHeigth / 2;
            description.TabIndex = 2;
            description.Text     = tour.description;

            //Botón de asignar tour
            AsistimeActionButton assignButton = new AsistimeActionButton();

            assignButton.TabIndex   = 0;
            assignButton.ButtonText = "Asignar";
            //assignButton.ReSize();
            //assignButton.Location = new Point(30, Constants.TourCardHeigth - assignButton.Height - 10);
            int assignButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(assignButton.ButtonText, assignButton.Font);
                size.Width       += 40;
                assignButtonWidth = (int)size.Width;
            }
            //assignButton.Location = new Point(10, Constants.TourCardHeigth - assignButton.Height - 10);
            assignButton.Click   += new EventHandler(this.AssignTour);
            assignButton.Location = new Point(Constants.TourCardWidth - assignButtonWidth - 10, Constants.TourCardHeigth - assignButton.Height - 10);

            //Botón de borrar tour
            AsistimeRoundButton exitButton = new AsistimeRoundButton(44, 44, Constants.DestroyImage, Constants.DestroyHoverImage, Constants.DestroyClickedImage)
            {
                Parent = this.Parent
            };

            exitButton.Location = new Point(Constants.TourCardWidth - 56, 10);
            exitButton.Click   += new EventHandler(DeleteTour);
            this.Controls.Add(exitButton);

            //Botón de realizar tour

            /*AsistimeActionButton playButton = new AsistimeActionButton();
             * playButton.TabIndex = 0;
             * playButton.ButtonText = "Realizar";
             * int playButtonWidth;
             * using (Graphics cg = this.CreateGraphics())
             * {
             *  SizeF size = cg.MeasureString(playButton.ButtonText, playButton.Font);
             *  size.Width += 40;
             *  playButtonWidth = (int)size.Width;
             * }
             * playButton.Location = new Point(Constants.TourCardWidth - playButtonWidth - 10, Constants.TourCardHeigth - playButton.Height - 10);
             * playButton.Click += new EventHandler(this.PlayTour);*/

            //Formato de la tarjeta
            Controls.Add(description);
            Controls.Add(title);
            Controls.Add(assignButton);
            //Controls.Add(playButton);
            Font         = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            ForeColor    = ColorTranslator.FromHtml(Constants.TourCardFontColour);
            Size         = new System.Drawing.Size(Constants.TourCardWidth, Constants.TourCardHeigth);
            TabIndex     = 0;
            TabStop      = false;
            Location     = new System.Drawing.Point(x, y);
            tourAsociado = tour;
        }
Beispiel #4
0
        public AsistimeCreatePanel()
        {
            this.title.Text = "CREACIÓN DE TOUR";

            tourNameLabel = new Label()
            {
                Text  = "NOMBRE DEL TOUR",
                Font  = Constants.H2LabelFont,
                Width = 400
            };
            this.Controls.Add(tourNameLabel);
            tourNameLabel.BringToFront();

            tourNameTextBox = new AsistimeSearchBox()
            {
                Font     = Constants.TextBoxFont,
                Parent   = this,
                Width    = 400,
                TextName = null
            };
            this.Controls.Add(tourNameTextBox);
            tourNameTextBox.BringToFront();

            Label tourDescTextBox = new Label()
            {
                Text  = "DESCRIPCIÓN",
                Font  = Constants.H2LabelFont,
                Width = 400
            };

            this.Controls.Add(tourDescTextBox);
            tourDescTextBox.BringToFront();

            box        = new AsistimeSearchBox();
            box.Width  = 400;
            box.Height = 300;
            this.Controls.Add(box);
            box.BringToFront();

            textbox           = new TextBox();
            textbox.Multiline = true;
            textbox.Width     = 380; //20 menos que el ancho del searchbox
            textbox.Height    = 280; //20 menos que la altura del searchbox
            this.Controls.Add(textbox);
            textbox.BorderStyle = BorderStyle.None;
            textbox.Font        = Constants.H2LabelFont;
            textbox.BringToFront();

            box.Location             = new Point(this.Width / 2 - box.Width / 2, 260);
            textbox.Location         = new Point(box.Location.X + 10, box.Location.Y + 10);
            tourDescTextBox.Location = new Point(box.Location.X, box.Location.Y - 30);
            tourNameTextBox.Location = new Point(this.Width / 2 - tourNameTextBox.Width / 2, 150);
            tourNameLabel.Location   = new Point(tourNameTextBox.Location.X, tourNameTextBox.Location.Y - 30);

            nextButton            = new AsistimeActionButton();
            nextButton.Click     += new EventHandler(Next);
            nextButton.ButtonText = "Siguiente";
            this.Controls.Add(nextButton);
            nextButton.BringToFront();

            cancelButton            = new AsistimeActionButton();
            cancelButton.Click     += new EventHandler(Cancel);
            cancelButton.ButtonText = "Cancelar";
            this.Controls.Add(cancelButton);
            cancelButton.BringToFront();

            int nextButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(nextButton.ButtonText, nextButton.Font);
                size.Width     += 40;
                nextButtonWidth = (int)size.Width;
            }
            nextButton.Location = new Point(this.Width / 2 - nextButtonWidth / 2, 600);

            int cancelButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(cancelButton.ButtonText, cancelButton.Font);
                size.Width       += 40;
                cancelButtonWidth = (int)size.Width;
            }
            cancelButton.Location = new Point(this.Width / 2 - cancelButtonWidth / 2, nextButton.Location.Y + 80);
        }
Beispiel #5
0
        public AsistimeAudioPanel()
        {
            this.title.Text = "GRABACIÓN DE AUDIO";

            textbox           = new TextBox();
            textbox.Multiline = true;
            textbox.Width     = 450;
            textbox.Height    = 250;
            this.Controls.Add(textbox);
            textbox.BorderStyle = BorderStyle.None;
            textbox.Font        = Constants.H2LabelFont;
            textbox.BringToFront();
            textbox.Text      = "Recordá hablar despacio y claro, para que alguien mayor te pueda entender. ¡Ojo! Sólo puede haber un audio por paso, si ya existe un audio y grabás uno nuevo vas a borrar el anterior.";
            textbox.TextAlign = HorizontalAlignment.Center;
            textbox.Location  = new Point(this.Width / 2 - textbox.Width / 2, 120);

            ReproductorWav = new SoundPlayer();

            RecordButton = new AsistimeRoundButton(84, 84, Constants.RecordImage, Constants.RecordHoverImage, Constants.RecordClickImage)
            {
                Parent = this.Parent
            };
            Label recordLabel = new Label()
            {
                Text = "Grabar", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            RecordButton.Location = new Point(103, 400);
            Center_With(recordLabel, RecordButton);
            RecordButton.Click += new EventHandler(RecordAudio);
            this.Controls.Add(RecordButton);
            this.Controls.Add(recordLabel);
            recordLabel.BringToFront();
            RecordButton.BringToFront();

            StopButton = new AsistimeRoundButton(84, 84, Constants.StopImage, Constants.StopHoverImage, Constants.StopClickImage)
            {
                Parent = this.Parent
            };
            Label stopLabel = new Label()
            {
                Text = "Parar", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            StopButton.Location = new Point(RecordButton.Location.X + 205, RecordButton.Location.Y);
            Center_With(stopLabel, StopButton);
            StopButton.Click += new EventHandler(StopRecording);
            this.Controls.Add(StopButton);
            StopButton.Enabled = false;
            this.Controls.Add(stopLabel);
            stopLabel.BringToFront();
            StopButton.BringToFront();

            PlayButton = new AsistimeRoundButton(84, 84, Constants.ListenImage, Constants.ListenHoverImage, Constants.ListenClickImage)
            {
                Parent = this.Parent
            };
            Label playLabel = new Label()
            {
                Text = "Reproducir", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            PlayButton.Location = new Point(RecordButton.Location.X + 410, RecordButton.Location.Y);
            Center_With(playLabel, PlayButton);
            PlayButton.Click += new EventHandler(PlayAudio);
            this.Controls.Add(PlayButton);
            PlayButton.Enabled = false;
            this.Controls.Add(playLabel);
            playLabel.BringToFront();
            PlayButton.BringToFront();


            nextButton            = new AsistimeActionButton();
            nextButton.Click     += new EventHandler(Next);
            nextButton.ButtonText = "¡Listo!";
            this.Controls.Add(nextButton);
            nextButton.BringToFront();

            /*cancelButton = new AsistimeActionButton();
             * cancelButton.Click += new EventHandler(Cancel);
             * cancelButton.ButtonText = "Salir";
             * this.Controls.Add(cancelButton);
             * cancelButton.BringToFront();*/

            int nextButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(nextButton.ButtonText, nextButton.Font);
                size.Width     += 40;
                nextButtonWidth = (int)size.Width;
            }
            nextButton.Location = new Point(this.Width / 2 - nextButtonWidth / 2, 600);

            try
            {
                if (File.Exists(UrlReproductor))
                {
                    PlayButton.Enabled = false;
                }
                ;
            }
            catch
            {
                new PopupNotification("Error", "Error al crear el directorio para los audios");
            }

            /*int cancelButtonWidth;
             * using (Graphics cg = this.CreateGraphics())
             * {
             *  SizeF size = cg.MeasureString(cancelButton.ButtonText, cancelButton.Font);
             *  size.Width += 40;
             *  cancelButtonWidth = (int)size.Width;
             * }
             * cancelButton.Location = new Point(this.Width / 2 - cancelButtonWidth / 2, nextButton.Location.Y + 80);*/
        }
Beispiel #6
0
        public AsistimeFormsPanel()
        {
            this.title.Text = "CREACIÓN DE FORMAS";

            textbox           = new TextBox();
            textbox.Multiline = true;
            textbox.Width     = 450;
            textbox.Height    = 250;
            this.Controls.Add(textbox);
            textbox.BorderStyle = BorderStyle.None;
            textbox.Font        = Constants.H2LabelFont;
            textbox.BringToFront();
            textbox.Text      = "¡Dale forma al tour! Cada una de las siguientes formas está pensada para resaltar sectores del sitio web. Con ellas podés indicarle al adulto mayor en qué sector de la página debe realizar una acción, qué componentes debe observar, o restringir el 'click' en algún sector.";
            textbox.TextAlign = HorizontalAlignment.Center;
            textbox.Location  = new Point(this.Width / 2 - textbox.Width / 2, 120);

            AsistimeRoundButton RectangleButton = new AsistimeRoundButton(84, 84, Constants.RectImage, Constants.RectHoverImage, Constants.RectClickImage)
            {
                Parent = this.Parent
            };
            Label rectLabel = new Label()
            {
                Text = "Rectángulo", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            RectangleButton.Location = new Point(87, 400);
            Center_With(rectLabel, RectangleButton);
            RectangleButton.Click += new EventHandler(DrawRectangle);
            this.Controls.Add(RectangleButton);
            this.Controls.Add(rectLabel);

            AsistimeRoundButton DivButton = new AsistimeRoundButton(84, 84, Constants.DivImage, Constants.DivHoverImage, Constants.DivClickImage)
            {
                Parent = this.Parent
            };
            Label divLabel = new Label()
            {
                Text = "Recuadrar", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            DivButton.Location = new Point(RectangleButton.Location.X + 110, RectangleButton.Location.Y);
            Center_With(divLabel, DivButton);
            DivButton.Click += new EventHandler(DrawDiv);
            this.Controls.Add(DivButton);
            this.Controls.Add(divLabel);

            AsistimeRoundButton DialogButton = new AsistimeRoundButton(84, 84, Constants.DialogImage, Constants.DialogHoverImage, Constants.DialogClickImage)
            {
                Parent = this.Parent
            };
            Label dialogLabel = new Label()
            {
                Text = "Diálogo", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            DialogButton.Location = new Point(RectangleButton.Location.X + 220, RectangleButton.Location.Y);
            Center_With(dialogLabel, DialogButton);
            DialogButton.Click += new EventHandler(DrawDialog);
            this.Controls.Add(DialogButton);
            this.Controls.Add(dialogLabel);

            AsistimeRoundButton TextButton = new AsistimeRoundButton(84, 84, Constants.TextImage, Constants.TextHoverImage, Constants.TextClickImage)
            {
                Parent = this.Parent
            };
            Label textLabel = new Label()
            {
                Text = "Texto", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            TextButton.Location = new Point(RectangleButton.Location.X + 330, RectangleButton.Location.Y);
            Center_With(textLabel, TextButton);
            TextButton.Click += new EventHandler(DrawText);
            this.Controls.Add(TextButton);
            this.Controls.Add(textLabel);

            AsistimeRoundButton CircleButton = new AsistimeRoundButton(84, 84, Constants.CircleImage, Constants.CircleHoverImage, Constants.CircleClickImage)
            {
                Parent = this.Parent
            };
            Label circleLabel = new Label()
            {
                Text = "Círculo", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            CircleButton.Location = new Point(RectangleButton.Location.X + 440, RectangleButton.Location.Y);
            Center_With(circleLabel, CircleButton);
            CircleButton.Click += new EventHandler(DrawCircle);
            this.Controls.Add(CircleButton);
            this.Controls.Add(circleLabel);

            nextButton            = new AsistimeActionButton();
            nextButton.Click     += new EventHandler(Next);
            nextButton.ButtonText = "Siguiente";
            this.Controls.Add(nextButton);
            nextButton.BringToFront();

            cancelButton            = new AsistimeActionButton();
            cancelButton.Click     += new EventHandler(Cancel);
            cancelButton.ButtonText = "Anterior";
            this.Controls.Add(cancelButton);
            cancelButton.BringToFront();

            int nextButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(nextButton.ButtonText, nextButton.Font);
                size.Width     += 40;
                nextButtonWidth = (int)size.Width;
            }
            nextButton.Location = new Point(this.Width / 2 - nextButtonWidth / 2, 600);

            int cancelButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(cancelButton.ButtonText, cancelButton.Font);
                size.Width       += 40;
                cancelButtonWidth = (int)size.Width;
            }
            cancelButton.Location = new Point(this.Width / 2 - cancelButtonWidth / 2, nextButton.Location.Y + 80);
        }
Beispiel #7
0
        //private List<Step>;

        public AsistimeStepsPanel()
        {
            this.title.Text = "ALTA DE PASOS";
            stepCount       = 0;

            /*tourNameLabel = new Label()
             * {
             *  Font = Constants.H2LabelFont,
             *  Width = 400
             * };
             * this.Controls.Add(tourNameLabel);*/

            textbox           = new TextBox();
            textbox.Multiline = true;
            textbox.Width     = 450;
            textbox.Height    = 300;
            this.Controls.Add(textbox);
            textbox.BorderStyle = BorderStyle.None;
            textbox.Font        = Constants.H2LabelFont;
            textbox.BringToFront();
            textbox.Text      = "¡Agregá pasos al tour! En cada paso, indicale al adulto mayor qué es lo que debe hacer, ayudándolo con dibujos en pantalla y un audio opcional. Recordá que cuanta menos información incluyas en cada paso, el adulto mayor podrá realizar el tour con mas facilidad.";
            textbox.TextAlign = HorizontalAlignment.Center;
            textbox.Location  = new Point(this.Width / 2 - textbox.Width / 2, 120);
            //tourNameLabel.Location = new Point(textbox.Location.X, textbox.Location.Y - 30);

            Label stepsLabel = new Label()
            {
                Text  = "CANTIDAD DE PASOS: " + stepCount,
                Font  = Constants.H2LabelFont,
                Width = 400
            };

            stepsLabel.Location = new Point(textbox.Location.X, textbox.Location.Y + textbox.Height);
            this.Controls.Add(stepsLabel);

            AsistimeRoundButton AddStepButton = new AsistimeRoundButton(84, 84, Constants.AddStepImage, Constants.AddStepHoverImage, Constants.AddStepClickImage)
            {
                Parent = this.Parent
            };
            Label addLabel = new Label()
            {
                Text = "Agregar paso", ForeColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour), Font = Constants.H1LabelFont, Height = 40
            };

            AddStepButton.Location = new Point(450, textbox.Location.Y + textbox.Height - 30);
            Center_With(addLabel, AddStepButton);
            AddStepButton.Click += new EventHandler(AddStep);
            this.Controls.Add(AddStepButton);
            AddStepButton.BringToFront();
            this.Controls.Add(addLabel);

            nextButton            = new AsistimeActionButton();
            nextButton.Click     += new EventHandler(Next);
            nextButton.ButtonText = "Siguiente";
            this.Controls.Add(nextButton);
            nextButton.BringToFront();

            cancelButton            = new AsistimeActionButton();
            cancelButton.Click     += new EventHandler(Cancel);
            cancelButton.ButtonText = "Anterior";
            this.Controls.Add(cancelButton);
            cancelButton.BringToFront();

            int nextButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(nextButton.ButtonText, nextButton.Font);
                size.Width     += 40;
                nextButtonWidth = (int)size.Width;
            }
            nextButton.Location = new Point(this.Width / 2 - nextButtonWidth / 2, 600);

            int cancelButtonWidth;

            using (Graphics cg = this.CreateGraphics())
            {
                SizeF size = cg.MeasureString(cancelButton.ButtonText, cancelButton.Font);
                size.Width       += 40;
                cancelButtonWidth = (int)size.Width;
            }
            cancelButton.Location = new Point(this.Width / 2 - cancelButtonWidth / 2, nextButton.Location.Y + 80);
        }
        public AsistimeAppBar()
        {
            BackColor = ColorTranslator.FromHtml(Constants.AppPrimaryColour);
            ForeColor = ColorTranslator.FromHtml(Constants.AppSecondaryColour);
            Height    = Constants.AppBarHeight;
            Width     = Constants.AppBarWidth;

            this.Controls.Add(this.GetNavBackButton(20, 15));
            this.Controls.Add(this.GetNavRefreshButton(130, 15));
            this.Controls.Add(this.GetNavForwardButton(240, 15));
            this.Controls.Add(this.GetNavProfileButton(this.ClientSize.Width - 150, 15));

            Label backLabel = new Label()
            {
                Text = "Atrás", ForeColor = Color.White, Font = Constants.H1LabelFont, Height = 40
            };

            Center_With(backLabel, NavBackButton);
            this.Controls.Add(backLabel);
            Label refreshLabel = new Label()
            {
                Text = "Recargar", ForeColor = Color.White, Font = Constants.H1LabelFont, Height = 40
            };

            Center_With(refreshLabel, NavRefreshButton);
            this.Controls.Add(refreshLabel);
            Label forwardLabel = new Label()
            {
                Text = "Adelante", ForeColor = Color.White, Font = Constants.H1LabelFont, Height = 40
            };

            Center_With(forwardLabel, NavForwardButton);
            this.Controls.Add(forwardLabel);
            Label profileLabel = new Label()
            {
                Text = "Menú", ForeColor = Color.White, Font = Constants.H1LabelFont, Height = 40
            };

            Center_With(profileLabel, NavProfileButton);
            this.Controls.Add(profileLabel);

            searchTextBox = new AsistimeSearchBox()
            {
                Font     = Constants.TextBoxFont,
                TextName = Constants.SearchBoxText,
                Parent   = this
            };
            searchTextBox.Location = new System.Drawing.Point(350, 37);
            searchTextBox.KeyDown += directionBox_KeyDown;
            this.Controls.Add(searchTextBox);

            AsistimeActionButton searchButton = new AsistimeActionButton()
            {
                Font       = Constants.ActionbuttonFont,
                ButtonText = Constants.SearchButtonText,
                Parent     = this
            };

            searchButton.Click   += new EventHandler(this.Navigate);
            searchButton.Location = new System.Drawing.Point(searchTextBox.Location.X + searchTextBox.Width, searchTextBox.Location.Y);
            this.Controls.Add(searchButton);

            AsistimeActionButton goGoogle = new AsistimeActionButton()
            {
                Font       = Constants.ActionbuttonFont,
                ButtonText = "Google",
                Parent     = this
            };

            goGoogle.Click   += new EventHandler(this.NavigateToGoogle);
            goGoogle.Location = new System.Drawing.Point(searchTextBox.Location.X + searchTextBox.Width + searchButton.Width - 75, searchTextBox.Location.Y);
            this.Controls.Add(goGoogle);

            /*AsistimeActionButton seeToursButton = new AsistimeActionButton()
             * {
             *  Font = Constants.ActionbuttonFont,
             *  ButtonText = Constants.SeeToursButtonText,
             *  Parent = this
             * };
             * seeToursButton.Location = new System.Drawing.Point(searchTextBox.Location.X, searchTextBox.Location.Y + 50);
             * seeToursButton.Click += new EventHandler(ShowTour);
             * this.Controls.Add(seeToursButton);*/
        }