Beispiel #1
0
        private void MonumentInfo_Load(object sender, EventArgs e)
        {
            Monument monument = DataBaseFunctions.getMonumentInfoById(_id);

            materialLabel2.Text = monument.Name;
            materialLabel3.Text = monument.Country;
            materialLabel5.Text = monument.City;
            materialLabel9.Text = monument.Year;
            materialLabel7.Text = monument.Street;
            richTextBox1.Text   = monument.Info;
            string img = monument.Img;

            if (img != null)
            {
                pictureBox1.Image = Image.FromFile(img);
            }
        }
Beispiel #2
0
        private void UpdateMount_Load(object sender, EventArgs e)
        {
            Monument monument = new Monument();

            monument = DataBaseFunctions.getMonumentInfoById(_id);
            materialSingleLineTextField1.Text = monument.Name;
            materialSingleLineTextField3.Text = monument.Country;
            materialSingleLineTextField4.Text = monument.City;
            materialSingleLineTextField5.Text = monument.Year;
            materialSingleLineTextField2.Text = monument.Street;
            richTextBox1.Text = monument.Info;
            string img = monument.Img;

            if (img != null)
            {
                pictureBox1.Image = Image.FromFile(img);
            }
        }