예제 #1
0
		public Home()
		{
			this.InitializeComponent();

            for (int i = 0; i < 2; i++)
            {
                GridColumn column = new GridColumn();
                column.setLabel("Symbol");
                column.Width = 127;
                if( i == 0 )
                    GainGrid.addColumn(column);
                else
                    LoseGrid.addColumn(column);

                column = new GridColumnGain();
                column.setLabel("Price");
                column.Width = 144;
                if (i == 0)
                    GainGrid.addColumn(column);
                else
                    LoseGrid.addColumn(column);

                column = new GridColumnGain();
                column.setLabel("Change");
                column.Width = 118;
                if (i == 0)
                    GainGrid.addColumn(column);
                else
                    LoseGrid.addColumn(column);
            }
		}
예제 #2
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);

        }
예제 #3
0
        public Order()
        {
            this.InitializeComponent();

            GridColumn column = new GridColumn();
            column.setLabel("Order ID");
            column.Width = 95;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Order Status");
            column.Width = 140;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Creation Date");
            column.Width = 190;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Completion Date");
            column.Width = 162;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Txn Fee");
            column.Width = 90;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Type");
            column.Width = 90;
            OrderGrid.addColumn(column);

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

            column = new GridColumn();
            column.setLabel("Quantity");
            column.Width = 90;
            OrderGrid.addColumn(column);


            OrderGrid.RowHighLighted += new System.Windows.Input.MouseEventHandler(onOrderGridRowHighLighted);
            OrderGrid.RowMouseMove += new System.Windows.Input.MouseEventHandler(onOrderGridRowMouseMove);
            OrderGrid.SellRow += new EventHandler(OrderGrid_SellRow);
            GetQuote.ClickGetQuote += new EventHandler(GetQuote_ClickGetQuote);
        }
예제 #4
0
		public OrderAlert()
		{
			this.InitializeComponent();

            GridColumn column = new GridColumn();
            column.setLabel("Order ID");
            column.Width = 80;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Order Status");
            column.Width = 80;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Creation Date");
            column.Width = 140;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Completion Date");
            column.Width = 140;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Txn Fee");
            column.Width = 60;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Type");
            column.Width = 40;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Symbol");
            column.Width = 50;
            OrderGrid.addColumn(column);

            column = new GridColumn();
            column.setLabel("Quantity");
            column.Width = 50;
            OrderGrid.addColumn(column);

            CloseButton.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(CloseButton_MouseLeftButtonDown);
            CloseButton.Label = "OK";
		}
예제 #5
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);
		}