Esempio n. 1
0
        public Quotes()
        {
            this.InitializeComponent();

            QuotesParameter = "s:0;s:1;s:2";

            GridColumn column = new GridColumn();
            column.setLabel("Symbol");
            column.Width = 95;
            QuoteGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Company");
            column.Width = 150;
            QuoteGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Volume");
            column.Width = 90;
            QuoteGrid.addColumn(column);

            column = new GridColumnTextRight();
            column.setLabel("Price Range");
            column.Width = 180;
            QuoteGrid.addColumn(column);

            column = new GridColumnTextRight();
            column.setLabel("Open Price");
            column.Width = 110;
            QuoteGrid.addColumn(column);

            column = new GridColumnGain();
            column.setLabel("Current Price");
            column.Width = 140;
            QuoteGrid.addColumn(column);
            
            column = new GridColumnGain();
            column.setLabel("Gain (Loss)");
            column.Width = 110;
            QuoteGrid.addColumn(column);

            column = new GridColumnSell();
            column.setLabel("Trade");
            column.Width = 72;
            QuoteGrid.addColumn(column);

            QuoteGrid.RowHighLighted += new System.Windows.Input.MouseEventHandler(onQuoteGridRowHighLighted);
            QuoteGrid.RowMouseMove += new System.Windows.Input.MouseEventHandler(onQuoteGridRowMouseMove);
            GetQuote.ClickGetQuote += new EventHandler(GetQuote_ClickGetQuote);
            QuoteGrid.SellRow += new EventHandler(QuoteGrid_SellRow);

        }
Esempio n. 2
0
		public Portfolio()
		{
            isBySymbol = false;
			this.InitializeComponent();

            GridColumn column = new GridColumn();
            column.setLabel("Holding ID");
            column.Width = 95;
            PortfolioGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Purchase\nDate");
            column.Width = 150;
            PortfolioGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Symbol");
            column.Width = 90;
            PortfolioGrid.addColumn(column);

            column = new GridColumnTextRight();
            column.setLabel("Quantity");
            column.Width = 70;
            PortfolioGrid.addColumn(column);

            column = new GridColumnTextRight();
            column.setLabel("Purchase\nPrice");
            column.Width = 90;
            PortfolioGrid.addColumn(column);

            column = new GridColumnTextRight();
            column.setLabel("Current\nPrice");
            column.Width = 90;
            PortfolioGrid.addColumn(column);

            column = new GridColumnTextRight();
            column.setLabel("Purchase\nBasis");
            column.Width = 90;
            PortfolioGrid.addColumn(column);

            column = new GridColumnTextRight();
            column.setLabel("Market\nValue");
            column.Width = 90;
            PortfolioGrid.addColumn(column);

            column = new GridColumnGain();
            column.setLabel("Gain (Loss)");
            column.Width = 110;
            PortfolioGrid.addColumn(column);

            column = new GridColumnSell();
            column.setLabel("Trade");
            column.Width = 72;
            PortfolioGrid.addColumn(column);

            PortfolioGrid.ColumnSortChanged += new EventHandler(PortfolioGrid_ColumnSortChanged);

            ToolTip = new PieTip();
            ToolTip.Visibility = Visibility.Hidden;
            LayoutRoot.Children.Add(ToolTip);

            PortfolioGrid.RowHighLighted += new System.Windows.Input.MouseEventHandler(onPortfolioGridRowHighLighted);
            PortfolioGrid.RowMouseMove += new System.Windows.Input.MouseEventHandler(onPortfolioGridRowMouseMove);
            PortfolioGrid.SellRow += new EventHandler(PortfolioGrid_SellRow);
            GetQuote.ClickGetQuote += new EventHandler(GetQuote_ClickGetQuote);
		}