Пример #1
0
 public NumberSliderData(IPopupControlCallback popupCallback, ConfigurationPlaceholder control)
 {
     this.popupCallback = popupCallback;
     this.control       = control;
     this.value         = double.Parse(this.popupCallback.GetValue(control).ToString(), (IFormatProvider)CultureInfo.InvariantCulture);
     this.pendingValue  = this.value;
 }
Пример #2
0
        public FileBrowserData(IPopupControlCallback popupCallback, ConfigurationPlaceholder control)
        {
            this.popupCallback = popupCallback;
            this.control       = control;
            object obj = this.popupCallback.GetValue(control);

            this.DirectoryDisplayText = obj != null?obj.ToString() : (string)null;
        }
Пример #3
0
        protected DataConfigurationPopup(IPopupControlCallback popupCallback, ConfigurationPlaceholder rootConfig)
        {
            this.rootConfig = rootConfig;
            FrameworkElement element = FileTable.GetElement("Resources\\DataPane\\ConfigureSampleDataPopup.xaml");

            this.Child                = (UIElement)element;
            element.DataContext       = (object)this;
            this.Focusable            = true;
            this.PopupCallback        = popupCallback;
            this.ConfigurationOptions = new ObservableCollection <IConfigurationOptionData>();
            this.GenerateContent();
        }
Пример #4
0
 public ComboBoxData(IPopupControlCallback popupCallback, ConfigurationPlaceholder control, DataConfigurationPopup popup)
 {
     this.PopupCallback = popupCallback;
     this.Control       = control;
     this.Popup         = popup;
 }