Example #1
0
        /// <summary>
        /// Medhot to Recreate the Entire Legend
        /// </summary>
        private void ReDoEntireLegend()
        {
            OutputClass tempOC = new OutputClass();

            GetDataLegendDataSource(ParentCAD.LegendDataTable);
            tempOC.MaxForce = MaxValue;
            tempOC.MinForce = MinValue;
            ParentCAD.PostProcessing(this, tempOC, UsersGradient1, UsersGradient2, UsersGradientStyle, NoOfSteps, StepSize);
            GridControlConditioning_SetDataSource();
        }
Example #2
0
 /// <summary>
 /// Method to reset the Legend to its very initial state
 /// </summary>
 private void ResetLegend()
 {
     ///<summary>Resetting the <see cref="NoOfSteps"/> and the <see cref="StepSize"/> to because thats how the default legend is created</summary>
     NoOfSteps = 0;
     StepSize  = 0;
     textBoxNoOfSteps.Clear();
     textBoxStepSize.Clear();
     ///<summary>Calling the <see cref="CAD.PostProcessing(LegendEditor, OutputClass, Color, Color, GradientStyle, int, double)"/> method. This method is what initializes the Legend and hence it is use to reset it</summary>
     ParentCAD.PostProcessing(this, BaseOC, UsersGradient1, UsersGradient2, UsersGradientStyle, NoOfSteps, StepSize);
     GridControlConditioning_SetDataSource();
 }