Beispiel #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     skinTabControl1.SelectedIndex = 0;
     //Load language
     MultiLanguage.LoadLanguage(this, typeof(Easyswarm));
     if (StartForm.ENorCH)
     {
         System.Resources.ResourceManager rs = new System.Resources.ResourceManager(typeof(Easyswarm));
         pictureBox1.Image = (System.Drawing.Image)rs.GetObject("picture2");
         //pictureBox1.Image = image;
         pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     }
     else
     {
         System.Resources.ResourceManager rs = new System.Resources.ResourceManager(typeof(Easyswarm));
         pictureBox1.Image    = (System.Drawing.Image)rs.GetObject("picture1");
         pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     }
 }