protected virtual void InitFromBundle(SelectionBundle parameters)
        {
            _parameterId         = parameters.ParameterId;
            _parameterWidgetType = parameters.WidgetType;

            Name           = parameters.ParameterName;
            Values         = parameters.Values;
            SelectedValues = parameters.SelectedValues;
        }
        public void AddBundlesButtonHandler(Object obj, EventArgs e)
        {
            DateRange range = new DateRange(_fromDateTimePicker.Value, _toDateTimePicker.Value);

            using (SelectionBundle sb = new SelectionBundle(range))
            {
                if (sb.ShowDialog() == DialogResult.OK)
                {
                    foreach (IBundle b in sb.SelectedBundles())
                    {
                        _bundles.Add(b);
                        _bundleListView.Items.Add(b.InformationString);
                    }
                    _clearButton.Enabled = true;
                }
                else
                {
                    return;
                }
            }
        }
Exemplo n.º 3
0
 public void NavigateToSelection(SelectionBundle bundle)
 {
     NavigateTo <IFilterSelectionViewModel>(bundle);
 }