예제 #1
0
 private void toolStripAbout_Click(object sender, EventArgs e)
 {
     m_formabout = new about(m_langue);
        m_formabout.ShowDialog();
 }
예제 #2
0
        public Form1()
        {
            InitializeComponent();
            this.FormClosing += new FormClosingEventHandler(this.form_close);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            m_listeVillage = new List<ToolStripMenuItem>();
            m_listeCoverType = new List<ToolStripMenuItem>();
            m_listeSol = new List<ToolStripMenuItem>();
            m_equivalentSol = new Dictionary<string, string>();
            m_equivalentCouverture = new Dictionary<string, string>();
            m_equivalentMois = new Dictionary<string, string>();
            m_langue = "Français";
            chargerLangage(m_langue);

            //paramètre
            m_pasTracer = true;
            m_vitesseSimulation = 50;
            m_opacite = 200;

            m_villageItem = m_listeVillage[0];
            m_coverTypeItem = m_listeCoverType[0];
            m_solItem = m_listeSol[0];
            m_villageItem.Checked = m_coverTypeItem.Checked = m_solItem.Checked = true;
            this.panelTableau.BackgroundImage = Image.FromFile("image/Argile.png");
            this.panelTableau.BackColor = Color.FromArgb(255, 72, 58, 48);

            this.panelTableau.BackgroundImageLayout = ImageLayout.Stretch;

            genererGraphique(new Point(0, 0), new Size(this.panelGraphique.Size.Width, this.panelGraphique.Size.Height), m_nomGraphique,m_nomAxe);
            initialiserBoutonSimulation();
            genererTableauActif(new Point((int)(m_graphique.getOrigine()[0] - m_graphique.getEspaceParGraduationX() / 2), 0), new Size((int)m_graphique.getGrandeurAxeX(), this.panelTableau.Size.Height));
            genererNeigeContainer();

            m_finiTracer = true;
            this.panelGraphique.BackColor = Color.AliceBlue;

            //form option
            m_formOption = new Option(this, m_langue, m_vitesseSimulation, m_opacite);
            m_formabout = new about(m_langue);
            initialiserDatawrite();
        }