/// <summary>
        /// Initializes a new instance of the <see cref="StatisticParameterGrid"/>.
        /// </summary>
        public StatisticParameterGrid()
        {
            InitializeComponent();
            ItemsSource = Parameters = new ObservableCollection <IStatisticParameter>();

            GroupingColumns.Add(CategoryColumn);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Создать <see cref="PortfolioGrid"/>.
        /// </summary>
        public PortfolioGrid()
        {
            InitializeComponent();

            var itemsSource = new ObservableCollectionEx <PositionItem>();

            ItemsSource = itemsSource;

            _positions = new ConvertibleObservableCollection <BasePosition, PositionItem>(new ThreadSafeObservableCollection <PositionItem>(itemsSource), p => new PositionItem(p));

            GroupingColumns.Add(Columns[0]);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Создать <see cref="MarketDataGrid"/>.
        /// </summary>
        public MarketDataGrid()
        {
            InitializeComponent();

            ItemsSource = _visibleEntries = new ObservableCollection <MarketDataEntry>();

            //for (var i = 3; i < Columns.Count; i++)
            //	ApplyFormatRules(Columns[i]);

            //ApplyFormatRules();

            ShowHeaderInGroupTitle = false;
            GroupingColumnConverters.Add("Month", (IValueConverter)Resources["monthToNameConverter"]);

            GroupingColumns.Add(Columns[0]);
            GroupingColumns.Add(Columns[1]);

            _serializableColumns = Columns.ToArray();
        }