Example #1
0
        private void ButtonMultiComponent_Click(object sender, EventArgs e)
        {
            //Multi-component system window open
            MultiComp CdF = new MultiComp();

            CdF.Show();
        }
        public Compo(MultiComp InputFom1)
        {
            InitializeComponent();

            /*public variable K contains the number of n-alkane
             * components from MultiComp class*/
            msg = InputFom1.k;
            int numBofRows = 0;

            Int32.TryParse(msg, out numBofRows);

            /*the first collumn of data grid table will be filled with
             * carbon number components based on the inserted number of components*/
            for (int i = 0; i < numBofRows; i++)
            {
                int             Hl  = i + 1;
                DataGridViewRow row = (DataGridViewRow)GridViewCompo.
                                      Rows[i].Clone();
                row.Cells[0].Value = "C" + Hl;
                GridViewCompo.Rows.Add(row);
            }
        }
Example #3
0
 public Exp(MultiComp InputFom1)
 {
     InitializeComponent();
 }