public VisitorBeach(visitor guest) { 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 = guest.Visited(this.Name.ToString()); if (alreadyBeen) { this.toolStripVisited.Visible = true; } Guest = guest; Guest.UpdHist("VisitorBeach"); }
public VisitorBookSearch(visitor guest) { InitializeComponent(); connection.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Books.mdb;"; dataGridView1.DefaultCellStyle.ForeColor = Color.Black; connection.Open(); OleDbCommand command = new OleDbCommand(); command.Connection = connection; command.CommandText = "SELECT * FROM Books;"; 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 = guest.Visited(this.Name.ToString()); if (alreadyBeen) { this.toolStripVisited.Visible = true; } Guest = guest; Guest.UpdHist("VisitorBookSearch"); }
public VisitorVideos(visitor guest) { InitializeComponent(); axWindowsMediaPlayer1.URL = @"Videos\lefkadaintro.mp4"; bool alreadyBeen = guest.Visited(this.Name.ToString()); if (alreadyBeen) { this.toolStripVisited.Visible = true; } Guest = guest; Guest.UpdHist("VisitorVideos"); }
public VisitorAbout(visitor guest) { InitializeComponent(); label1.Text = File.ReadAllText("Texts/about.txt"); bool alreadyBeen = guest.Visited(this.Name.ToString()); if (alreadyBeen) { this.toolStripVisited.Visible = true; } Guest = guest; Guest.UpdHist("VisitorAbout"); }
public VisitorHome(visitor guest) { 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); bool alreadyBeen = guest.Visited(this.Name.ToString()); if (alreadyBeen) { this.toolStripVisited.Visible = true; } Guest = guest; Guest.UpdHist("VisitorHome"); }
public VisitorPicture(visitor guest) { 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"; label1.Text = "Άγιος Νικήτας"; 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 = guest.Visited(this.Name.ToString()); if (alreadyBeen) { this.toolStripVisited.Visible = true; } Guest = guest; Guest.UpdHist("VisitorPicture"); }
public VisitorSites(visitor guest) { 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 = guest.Visited(this.Name.ToString()); if (alreadyBeen) { this.toolStripVisited.Visible = true; } Guest = guest; Guest.UpdHist("VisitorSites"); }