예제 #1
0
 private void OnValueChanged(object sender, EventArgs e)
 {
     var task = Windows.Invoke(() =>
     {
         //Fix the width so all 2d math is integer.
         this.MinWidth = SpectrumBehaviourConfiguration.GetWidthForBands(BandCount.Value);
     });
 }
예제 #2
0
 public EnhancedSpectrum()
 {
     this.InitializeComponent();
     if (BandCount != null)
     {
         //Fix the width so all 2d math is integer.
         this.MinWidth           = SpectrumBehaviourConfiguration.GetWidthForBands(BandCount.Value);
         BandCount.ValueChanged += this.OnValueChanged;
     }
 }