예제 #1
0
        private void DropXYVariable(string[] tokens)
        {
            if (tokens.Length != 3)
            {
                return;
            }

            GraphVariable gvar = new GraphVariable(session_, tokens[1], tokens[2]);

            Config.AddVariable(gvar);
        }
예제 #2
0
        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++;
            }
        }
예제 #3
0
        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();
            }
        }
예제 #4
0
 public void AddVariable(GraphVariable gvar)
 {
     variables_.Add(gvar);
 }