Ejemplo n.º 1
0
        public UserCamping(user usr)
        {
            InitializeComponent();
            label5.Text = File.ReadAllText("Texts/kariotesbeach.txt");
            label1.Text = File.ReadAllText("Texts/kathisma.txt");

            pictureBox1.ImageLocation = "Camping/kariotesbeach.jpeg";
            pictureBox3.ImageLocation = "Camping/kariotesbeach2.jpeg";
            pictureBox4.ImageLocation = "Camping/kariotesbeach3.jpeg";

            pictureBox6.ImageLocation = "Camping/kathisma.jpeg";
            pictureBox5.ImageLocation = "Camping/kathisma2.jpeg";
            pictureBox2.ImageLocation = "Camping/kathisma3.jpeg";

            pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox3.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox4.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox5.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox6.SizeMode = PictureBoxSizeMode.StretchImage;


            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserCamping");
        }
Ejemplo n.º 2
0
        public UserBeach(user usr)
        {
            InitializeComponent();
            label5.Text  = File.ReadAllText("Texts/peukoulia.txt");
            label6.Text  = File.ReadAllText("Texts/agios_nikhtas.txt");
            label8.Text  = File.ReadAllText("Texts/porto_katsiki.txt");
            label12.Text = File.ReadAllText("Texts/nikiana.txt");
            pictureBox1.ImageLocation = "Beaches/peukoulia.jpg";
            pictureBox2.ImageLocation = "Beaches/agiosnikitas.jpg";
            pictureBox3.ImageLocation = "Beaches/portokatsiki.jpg";
            pictureBox4.ImageLocation = "Beaches/nikiana.jpg";
            pictureBox1.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox2.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox3.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox4.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox5.Hide();


            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserBeach");
        }
Ejemplo n.º 3
0
        public UserEvents(user usr)
        {
            InitializeComponent();
            connection.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=EventCalendar.mdb;";
            dataGridView1.DefaultCellStyle.ForeColor = Color.Black;
            connection.Open();
            OleDbCommand command = new OleDbCommand();

            command.Connection  = connection;
            command.CommandText = "SELECT * FROM Events;";
            OleDbDataAdapter da = new OleDbDataAdapter(command);
            DataSet          dt = new DataSet();

            da.Fill(dt);
            dataGridView1.DataSource = dt.Tables[0].DefaultView;
            connection.Close();
            this.dataGridView1.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridView1.RowTemplate.Height             = 55;


            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserEvents");
        }
Ejemplo n.º 4
0
        public UserAbout(user usr)
        {
            InitializeComponent();
            label1.Text = File.ReadAllText("Texts/about.txt");

            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserAbout");
        }
Ejemplo n.º 5
0
        public UserVideos(user usr)
        {
            InitializeComponent();
            axWindowsMediaPlayer1.URL = @"Videos\lefkadaintro.mp4";


            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserVideos");
        }
Ejemplo n.º 6
0
        public UserPicture(user usr)
        {
            InitializeComponent();
            InitializeComponent();
            pictureBox1.ImageLocation  = "Gallery/1.jpg";
            pictureBox2.ImageLocation  = "Gallery/2.jpg";
            pictureBox3.ImageLocation  = "Gallery/3.jpeg";
            pictureBox4.ImageLocation  = "Gallery/4.jpg";
            pictureBox5.ImageLocation  = "Gallery/5.jpg";
            pictureBox6.ImageLocation  = "Gallery/6.jpg";
            pictureBox7.ImageLocation  = "Gallery/7.jpg";
            pictureBox8.ImageLocation  = "Gallery/8.jpg";
            pictureBox9.ImageLocation  = "Gallery/9.jpg";
            pictureBox10.ImageLocation = "Gallery/10.jpg";

            pictureBox11.ImageLocation = "Gallery/1.jpg";


            pictureBox1.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox2.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox3.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox4.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox5.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox6.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox7.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox8.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox9.SizeMode  = PictureBoxSizeMode.StretchImage;
            pictureBox10.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox11.SizeMode = PictureBoxSizeMode.StretchImage;


            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserPicture");
        }
Ejemplo n.º 7
0
        public UserBar(user usr)
        {
            InitializeComponent();
            label5.Text = File.ReadAllText("Texts/cmyk.txt");
            label1.Text = File.ReadAllText("Texts/pirates.txt");
            label8.Text = File.ReadAllText("Texts/liotrivi.txt");
            pictureBox1.ImageLocation = "Bars/cmyk.jpg";
            pictureBox2.ImageLocation = "Bars/pirates.jpg";
            pictureBox3.ImageLocation = "Bars/liotrivi.jpg";
            pictureBox1.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox2.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox3.SizeMode      = PictureBoxSizeMode.StretchImage;

            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserBar");
        }
Ejemplo n.º 8
0
        public UserResaturant(user usr)
        {
            InitializeComponent();
            label5.Text = File.ReadAllText("Texts/frini.txt");
            label1.Text = File.ReadAllText("Texts/raxi.txt");
            label8.Text = File.ReadAllText("Texts/stavros.txt");
            pictureBox1.ImageLocation = "Restaurant/frini.jpeg";
            pictureBox2.ImageLocation = "Restaurant/raxi.jpg";
            pictureBox3.ImageLocation = "Restaurant/stavros.jpg";
            pictureBox1.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox2.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox3.SizeMode      = PictureBoxSizeMode.StretchImage;


            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserResaturant");
        }
Ejemplo n.º 9
0
        public UserHotels(user usr)
        {
            InitializeComponent();
            label5.Text = File.ReadAllText("Texts/sunrisehotel.txt");
            label1.Text = File.ReadAllText("Texts/hotelboschetto.txt");
            label8.Text = File.ReadAllText("Texts/villaverde.txt");
            pictureBox1.ImageLocation = "Hotels/sunrisehotel.jpg";
            pictureBox2.ImageLocation = "Hotels/hotelboschetto.jpg";
            pictureBox3.ImageLocation = "Hotels/villaverde.jpg";
            pictureBox1.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox2.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox3.SizeMode      = PictureBoxSizeMode.StretchImage;


            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserHotels");
        }
Ejemplo n.º 10
0
        public Home(user usr)
        {
            InitializeComponent();
            timer1.Enabled  = true;
            timer1.Interval = 4000;
            timer1.Start();
            timer1.Tick            += new System.EventHandler(timer1_Tick);
            Slideshow.ImageLocation = "Images/1.jpg";
            Slideshow.SizeMode      = PictureBoxSizeMode.StretchImage;
            label1.Text             = File.ReadAllText(path1);
            label5.Text             = File.ReadAllText(path2);
            label9.Text             = File.ReadAllText(path3);
            welcome.Text            = "ΚΑΛΩΣ ΕΠΕΣΤΡΕΨΕΣ " + Login.globalusername + "  ΣΤΟN ΟΔΗΓΟ!";

            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("Home");
        }
Ejemplo n.º 11
0
        public UserSites(user usr)
        {
            InitializeComponent();
            label5.Text = File.ReadAllText("Texts/kastro.txt");
            label1.Text = File.ReadAllText("Texts/gefura.txt");
            label8.Text = File.ReadAllText("Texts/iera_monh.txt");
            pictureBox1.ImageLocation = "Sites/kastro.jpg";
            pictureBox2.ImageLocation = "Sites/gefira.jpg";
            pictureBox3.ImageLocation = "Sites/monastiri.jpg";
            pictureBox1.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox2.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox3.SizeMode      = PictureBoxSizeMode.StretchImage;
            pictureBox5.Hide();


            bool alreadyBeen = usr.Visited(this.Name.ToString());

            if (alreadyBeen)
            {
                this.toolStripVisited.Visible = true;
            }
            User = usr;
            User.UpdHist("UserSites");
        }