Beispiel #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";
            }
        }
Beispiel #2
0
 public void deleteFormula(Formula f)
 {
     formulas.Remove(f);
 }
Beispiel #3
0
 public void addFormula(string name)
 {
     Formula f = new Formula(name, this, this.subject);
     formulas.Add(f);
 }
Beispiel #4
0
 public void addFormula()
 {
     Formula f = new Formula("Empty Formula", this, this.subject);
     formulas.Add(f);
 }
Beispiel #5
0
 public void addFormula(Formula f)
 {
     formulas.Add(f);
 }