Beispiel #1
0
 private void performRefreshAction(SelectOption option)
 {
     if (option == SelectOption.RefreshSelected)
     {
         refreshStartValues(SelectedStartValues);
     }
     else if (option == SelectOption.RefreshAll)
     {
         refreshStartValues(VisibleStartValues);
     }
 }
Beispiel #2
0
 private void performDeleteAction(SelectOption selectOption)
 {
     if (selectOption == SelectOption.DeleteSelected)
     {
         deleteSelected();
     }
     else if (selectOption == SelectOption.DeleteSourceNotDefined)
     {
         deleteUnresolved();
     }
 }
      private void performSetFlagValueAction(Action<IEnumerable<IMoleculeStartValue>, bool> selectionAction, SelectOption option)
      {
         if (option.IsOneOf(SelectOption.AllPresent, SelectOption.AllNegativeValuesAllowed))
            selectionAction(VisibleStartValues, true);

         else if (option.IsOneOf(SelectOption.AllNotPresent, SelectOption.AllNegativeValuesNotAllowed))
            selectionAction(VisibleStartValues, false);

         else if (option.IsOneOf(SelectOption.SelectedPresent, SelectOption.SelectedNegativeValuesAllowed))
            selectionAction(SelectedStartValues, true);

         else if (option.IsOneOf(SelectOption.SelectedNotPresent, SelectOption.SelectedNegativeValuesNotAllowed))
            selectionAction(SelectedStartValues, false);
      }
 private void performNegativeValuesAllowedAction(SelectOption option)
 {
    performSetFlagValueAction(setNegativeValuesAllowed, option);
 }
 private void performIsPresentAction(SelectOption option)
 {
    performSetFlagValueAction(setIsPresent, option);
 }
Beispiel #6
0
 protected ApplyToSelectionPresenter(IApplyToSelectionView view, SelectOption defaultSelection, string caption) : base(view)
 {
     CurrentSelection = defaultSelection;
     view.Caption     = caption;
     view.BindToSelection();
 }