public Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection GetValues()
        {
            Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection _items = new Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection();
            _items.Add("relativeToHome");
            _items.Add("relativeToGround");
            _items.Add("absolute");

            return(_items);
        }
Exemple #2
0
        //System.Collections.Generic.List<string> _list;
        //Xceed.Wpf.Toolkit.PropertyGrid.PropertyItem m_PropertyItem;
        //Xceed.Wpf.Toolkit.PropertyGrid.Editors.PropertyGridEditorComboBox _control;

        //public FrameworkElement ResolveEditor(Xceed.Wpf.Toolkit.PropertyGrid.PropertyItem propertyItem)
        //{
        //	m_PropertyItem = propertyItem;
        //	_control = new Xceed.Wpf.Toolkit.PropertyGrid.Editors.PropertyGridEditorComboBox();
        //	_control.SelectionChanged += OnSelectionChanged;
        //	return _control;
        //}
        //void OnSelectionChanged(object sender, EventArgs e)
        //{
        //	//m_PropertyItem.Value = _control.SelectionBoxItem;
        //}

        public Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection GetValues()
        {
            Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection _items = new Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection();


            //foreach(var _item in _list)
            //{
            //	_items.Add(_item);
            //}

            return(_items);
        }
Exemple #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public TickerDataStore()
        {
            _symbolsInMemory = new ConcurrentDictionary <int, TickerData>();
            SimTickerDates   = new SortedDictionary <DateTime, bool>();

            // Create the root datacache folders and all the sub folders for the different type
            // of data we support running with (daily, minute, 5 minute).
            Directory.CreateDirectory(_cacheFolder);
            SimulatorConfig.DataItemsSource dataTypes = new SimulatorConfig.DataItemsSource();
            Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection dataTypesValues = dataTypes.GetValues();
            for (int i = 0; i < dataTypesValues.Count; i++)
            {
                Directory.CreateDirectory(_cacheFolder + @"\" + dataTypesValues[i].Value);
            }
        }
 public Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection GetValues()
 {
     Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection employe = new Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection();
     employe.Add(new Employe()
     {
         Name = "Name1",
         Rank = "Rank1",
         Age  = 40,
     }); employe.Add(new Employe()
     {
         Name = "Name2",
         Rank = "Rank2",
         Age  = 40,
     }); employe.Add(new Employe()
     {
         Name = "Name3",
         Rank = "Rank3",
         Age  = 40,
     });
     return(employe);
 }