예제 #1
0
파일: Zfd.cs 프로젝트: bluejack2000/core
        public Zfd(ZenFire.Connection z)
        {
            InitializeComponent();
            zf = z;
            /*
            insertRow = new InsertRowCallback(eventGrid.Rows.Insert);
            zf.Alert += new ZenFire.Connection.AlertEventHandler(zf_Alert);
             */

            accountListBox.Items.AddRange(zf.ListAccounts());
        }
예제 #2
0
        public Zfd(ZenFire.Connection z)
        {
            InitializeComponent();
            zf = z;

            /*
             * insertRow = new InsertRowCallback(eventGrid.Rows.Insert);
             * zf.Alert += new ZenFire.Connection.AlertEventHandler(zf_Alert);
             */

            accountListBox.Items.AddRange(zf.ListAccounts());
        }
예제 #3
0
        public PlaceOrderWindow(ZenFire.Connection z)
        {
            InitializeComponent();
            zf = z;

            Bind.List(accountComboBox, zf.ListAccounts());
            Bind.List(actionComboBox, Bind.FromEnum(ZenFire.Order.Action.Buy));
            Bind.List(durationComboBox, Bind.FromEnum(ZenFire.Order.Duration.Day));
            Bind.List(typeComboBox, Bind.FromEnum(ZenFire.Order.Type.Market));

            exchangeComboBox.DisplayMember = "Text";
            exchangeComboBox.ValueMember = "ID";
            exchangeComboBox.DataSource = zf.ListExchanges();
        }
예제 #4
0
        public PlaceOrderWindow(ZenFire.Connection z)
        {
            InitializeComponent();
            zf = z;

            Bind.List(accountComboBox, zf.ListAccounts());
            Bind.List(actionComboBox, Bind.FromEnum(ZenFire.Order.Action.Buy));
            Bind.List(durationComboBox, Bind.FromEnum(ZenFire.Order.Duration.Day));
            Bind.List(typeComboBox, Bind.FromEnum(ZenFire.Order.Type.Market));

            exchangeComboBox.DisplayMember = "Text";
            exchangeComboBox.ValueMember   = "ID";
            exchangeComboBox.DataSource    = zf.ListExchanges();
        }