private void HandleFieldSetupSelectedCruiseMethodChanged(EditTemplateCruiseMethod method) { if (method != null) { //List<String> selectedTreeFields = (from TreeFieldSetupDefaultDO tf in this.Presenter.GetSelectedTreeFields(method) select tf.Field).ToList(); //List<TreeFieldSetupDefaultDO> unselectedTreeFields = method.UnselectedTreeFields; this._treeFieldWidget.SelectedItemsDataSource = method.TreeFields; this._treeFieldWidget.DataSource = method.UnselectedTreeFields; //List<String> selectedLogFields = (from LogFieldSetupDefaultDO lf in this.Presenter.GetSelectedLogFields(method) select lf.Field).ToList(); //List<LogFieldSetupDefaultDO> unselectedLogFields = method.UnselectedLogFields; } }
private void _BS_CruiseMethods_CurrentChanged(object sender, EventArgs e) { EditTemplateCruiseMethod method = this._BS_CruiseMethods.Current as EditTemplateCruiseMethod; HandleFieldSetupSelectedCruiseMethodChanged(method); }