Ejemplo n.º 1
0
        //Same principle as above method
        private void listFormula_SelectedIndexChanged(object sender, EventArgs e)
        {
            currentFormula = (Formula)listFormula.SelectedValue;

            if (currentFormula != null)
            {
                propName.Text = currentFormula.name;
                propDescription.Text = currentFormula.description;
                propFormula.Text = currentFormula.formula;

                statusSay.Text = "Selected " + currentFormula.ToString();
            }
            else if(currentFormula == null)
            {
                propName.Text = "No Formula";
                propDescription.Text = "Can't describe nothing.";
                propFormula.Text = "Nothing";

                statusSay.Text = "No formula to be selected";
            }
        }
Ejemplo n.º 2
0
 public void deleteFormula(Formula f)
 {
     formulas.Remove(f);
 }
Ejemplo n.º 3
0
 public void addFormula(string name)
 {
     Formula f = new Formula(name, this, this.subject);
     formulas.Add(f);
 }
Ejemplo n.º 4
0
 public void addFormula()
 {
     Formula f = new Formula("Empty Formula", this, this.subject);
     formulas.Add(f);
 }
Ejemplo n.º 5
0
 public void addFormula(Formula f)
 {
     formulas.Add(f);
 }