private void DropXYVariable(string[] tokens) { if (tokens.Length != 3) { return; } GraphVariable gvar = new GraphVariable(session_, tokens[1], tokens[2]); Config.AddVariable(gvar); }
private void DropYVariable(string[] tokens) { int index = 1; while (index < tokens.Length) { int col = session_.GetColumnFromName(tokens[index]); if (col != -1) { GraphVariable gvar = new GraphVariable(session_, Config.XVariable, tokens[index]); Config.AddVariable(gvar); } index++; } }
private void RemoveElement(string name) { GraphVariable theone = null; foreach (GraphVariable gvar in Config.Variables) { if (gvar.YVariable == name) { theone = gvar; } } if (theone != null) { Config.Variables.Remove(theone); chart_.Series.Clear(); UpdateGraph(); } }
public void AddVariable(GraphVariable gvar) { variables_.Add(gvar); }