コード例 #1
0
        public GraphView(ModelCalculAlcoolemie m)
        {
            InitializeComponent();
            GRAPH_POS = new Point(20, 20);

            MyModelCalculAlcoolemie = m;
        }
コード例 #2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            lstbxBoissons.Enabled = true;
            lstbxBu.Enabled       = true;
            cbxSexe.Enabled       = false;
            nudPoid.Enabled       = false;
            btnStart.Enabled      = false;

            MyModelCalculAlcoolemie     = new ModelCalculAlcoolemie();
            lstbxBoissons.DataSource    = MyModelCalculAlcoolemie.Drinks;
            lstbxBoissons.DisplayMember = "Display";

            MyModelCalculAlcoolemie.ShowGraphView();
        }