static internal void Fill(this INamedCoordinates coord, ToolStripComboBox cx, ToolStripComboBox cy)
        {
            string x = coord.X;
            string y = coord.Y;

            cx.Text = "<X>";
            cx.Items.Clear();
            IList <string> l = coord.GetNames("x");

            if (l != null)
            {
                cx.FillCombo(l);
                if (x != null)
                {
                    cx.SelectCombo(x);
                }
            }
            cy.Text = "<Y>";
            cy.Items.Clear();
            l = coord.GetNames("y");
            if (l != null)
            {
                cy.FillCombo(l);
                if (y != null)
                {
                    cy.SelectCombo(y);
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// Construtor
 /// </summary>
 /// <param name="l">Object label</param>
 /// <param name="nc">Edited objet</param>
 /// <param name="array">Chart properties</param>
 public FormNamedSeries(IObjectLabel l, INamedCoordinates nc, object[] array)
     : this()
 {
     this.l = l;
     userControlNamedSeriesTab.NamedCoordinates = nc;
     userControlNamedSeriesTab.Array            = array;
     UpdateFormUI();
 }