private void comboBox_HarmonicOrder_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox          _comboBox          = (ComboBox)sender;
            HarmonicOrderInfo _harmonicOrderInfo = (HarmonicOrderInfo)_comboBox.SelectedItem;

            this.OnHarmonicOrderChanged(_harmonicOrderInfo);
        }
 protected virtual void OnHarmonicOrderChanged(HarmonicOrderInfo _harmonicOrderInfo)
 {
     if (this.HarmonicOrderChanged != null)
     {
         this.HarmonicOrderChanged(this,
                                   new HarmonicOrderEventArgs(_harmonicOrderInfo));
     }
 }
Beispiel #3
0
        public override bool Equals(object obj)
        {
            if (obj is HarmonicOrderInfo)
            {
                HarmonicOrderInfo _harmonicOrderInfo = (HarmonicOrderInfo)obj;

                if (this.name == _harmonicOrderInfo.name)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }

            return(base.Equals(obj));
        }
 public HarmonicOrderEventArgs(HarmonicOrderInfo _harmonicOrderInfo)
 {
     this.harmonicOrderInfo = _harmonicOrderInfo;
 }