Пример #1
0
 /// <summary> Initializes a new instance of DBLookupButton. </summary>
 public DBLookupButton() : base()
 {
     _link = new DAEClient.FieldDataLink();
     _link.OnDataChanged   += new DAEClient.DataLinkHandler(SyncEnabled);
     _link.OnActiveChanged += new DAEClient.DataLinkHandler(SyncEnabled);
     _link.OnFocusControl  += new DataLinkFieldHandler(FocusControl);
     Size  = new System.Drawing.Size(21, 19);
     Image = ResourceBitmap(typeof(DBLookupButton), "Alphora.Dataphor.DAE.Client.Controls.Images.Lookup.bmp");
 }
Пример #2
0
 public DBRadioButtonGroup()
 {
     _link = new DAEClient.FieldDataLink();
     _link.OnFieldChanged     += new DAEClient.DataLinkFieldHandler(FieldChanged);
     _link.OnUpdateReadOnly   += new EventHandler(UpdateReadOnly);
     _link.OnSaveRequested    += new DAEClient.DataLinkHandler(SaveRequested);
     _link.OnFocusControl     += new DataLinkFieldHandler(FocusControl);
     _autoUpdateInterval       = 200;
     _autoUpdateTimer          = new System.Windows.Forms.Timer();
     _autoUpdateTimer.Interval = _autoUpdateInterval;
     _autoUpdateTimer.Tick    += new EventHandler(AutoUpdateElapsed);
     _autoUpdateTimer.Enabled  = false;
     UpdateReadOnly(this, EventArgs.Empty);
 }