Beispiel #1
0
        public FilterPars Clone()
        {
            FilterPars f = new FilterPars();

            f.Copy(this);
            return(f);
        }
Beispiel #2
0
 public void Copy(FilterPars _src)
 {
     IsFilter        = _src.IsFilter;
     CurrentType     = _src.CurrentType;
     CurrentSubType  = _src.CurrentSubType;
     Order           = _src.Order;
     CutoffFrequency = _src.CutoffFrequency;
     WidthFrequency  = _src.WidthFrequency;
     CenterFrequency = _src.CenterFrequency;
     RippleDb        = _src.RippleDb;
     Rolloff         = _src.Rolloff;
 }
Beispiel #3
0
            public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
            {
                FilterPars p = value as FilterPars;

                if (p == null)
                {
                    return(value);
                }
                p.GI = provider as GridItem;
                using (FFilter f = new FFilter(value as FilterPars, false)) { f.ShowDialog(); }
                p.GI = null;
                return(value);
            }
Beispiel #4
0
 public FFilter(FilterPars _instance, bool _IsPanel)
 {
     InitializeComponent();
     if (_IsPanel)
     {
         Panel p = new Panel();
         p.Dock   = DockStyle.Top;
         p.Height = 30;
         Button b = new Button();
         b.Top  = 3;
         b.Left = 3;
         b.Text = "Сохранить";
         p.Controls.Add(b);
         Controls.Add(p);
         b.Click    += new EventHandler(b_Click);
         instanceBuf = _instance;
         instance    = _instance.Clone();
     }
     else
     {
         instance = _instance;
     }
 }