Ejemplo n.º 1
0
        /// <summary>
        /// Class constructor taking one input for the parent DataPlotOptions
        /// </summary>
        /// <param name="parent"> Options modified by this form. </param>
        public DataPlotOptionsForm(DataPlotOptions parent)
        {
            parentOptions = parent;

            InitializeComponent();
            colorDropDown.Items.AddRange(new object[] { "Blue",
                                                        "Red" });
            colorDropDown.SelectedIndex = colorDropDown.Items.IndexOf(parentOptions.PlotColorString);
            scalingDropDown.Items.AddRange(Scaling.ScaleOptions.ToArray());
            scalingDropDown.SelectedIndex = Scaling.ScaleOptions.IndexOf(parentOptions.PlotScaling.ScaleMode);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Class constructor taking path to the data source file for this plot
 /// </summary>
 /// <param name="dataFile"> String path to data file. </param>
 public DataPlotSettings(string dataFile) : base(dataFile)
 {
     plotOptions = new DataPlotOptions(Color.Blue, new Scaling("Shared"));
 }