public FrmEditFileLoadInfo() { InitializeComponent(); UiControls.SetIcon(this); _binder = new CtlBinder <FileLoadInfo>(); _binderTlp = _binder.AutoBind(); _binderTlp.Dock = DockStyle.Top; _binderTlp.AutoSize = true; _binderTlp.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.panel1.Controls.Add(_binderTlp); _binder.Read(MainSettings.Instance.FileLoadInfo); }
public void BindAll <T>(CtlBinder <T> _binder, PropertyPath <T, PlotSetup> source, Core core, Type dataType) { _core = core; _dataType = dataType; if (!_binder.BinderCollection.Any(z => z is AxisBinder)) { _binder.BinderCollection.Add(new AxisBinder()); } _binder.Bind(this._txtClusterInfo, source.Append <object>(z => z.Information)); _binder.Bind(this._txtClusterSubtitle, source.Append <object>(z => z.SubTitle)); _binder.Bind(this._txtClusterTitle, source.Append <object>(z => z.Title)); _binder.Bind(this._txtClusterXAxis, source.Append <object>(z => z.AxisX)); _binder.Bind(this._txtClusterYAxis, source.Append <object>(z => z.AxisY)); _binder.Bind(this._xrMax, source.Append <object>(z => z.RangeXMax)); _binder.Bind(this._xRmin, source.Append <object>(z => z.RangeXMin)); _binder.Bind(this._yrMax, source.Append <object>(z => z.RangeYMax)); _binder.Bind(this._yrMin, source.Append <object>(z => z.RangeYMin)); }