Example #1
0
 public void PopUpOption(int idx = 0)
 {
     using (ChartOptionForm cof = new ChartOptionForm(option, idx))
     {
         if (cof.ShowDialog() == DialogResult.OK)
         {
             LayOutSideChange(option.Side);
             chartLeft.SetColor(option.StartColor, option.EndColor, option.Gamma);
             chartRight.SetColor(option.StartColor, option.EndColor, option.Gamma);
             chartLeft.Gain          = option.Gain;
             chartRight.Gain         = option.Gain;
             waveLeft.DisplayAmpMax  = option.RawMax;
             waveRight.DisplayAmpMax = option.RawMax;
             //do something
         }
     }
 }
Example #2
0
        public void PopUpOption(int idx=0)
        {
            using (ChartOptionForm cof = new ChartOptionForm(option, idx))
            {
                if (cof.ShowDialog() == DialogResult.OK)
                {
                    LayOutSideChange(option.Side);
                    chartLeft.SetColor(option.StartColor,option.EndColor,option.Gamma);
                    chartRight.SetColor(option.StartColor, option.EndColor, option.Gamma);
                    chartLeft.Gain = option.Gain;
                    chartRight.Gain = option.Gain;
                    waveLeft.DisplayAmpMax = option.RawMax;
                    waveRight.DisplayAmpMax = option.RawMax;
                    //do something

                }
            }
        }