Example #1
0
        private void Financial_items_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            System.Windows.Controls.ListView list = (System.Windows.Controls.ListView)sender;
            FinancialItem selectedObject          = (FinancialItem)list.SelectedItem;

            show_financial_history(selectedObject);
        }
Example #2
0
        private void show_financial_history(FinancialItem selectedItem)
        {
            ArrayList values = new ArrayList();

            foreach (BsonDocument financial in financial_reports)
            {
                BsonDocument group = financial[selectedItem.Category].AsBsonDocument;
                long         value = group[selectedItem.Item].ToInt64();
                values.Add(value);
            }
            long[] value_aray = (long[])values.ToArray(typeof(long));
            long   max        = value_aray.Max();
            long   min        = value_aray.Min();
        }