Ejemplo n.º 1
0
 void loadresponseview(ResponseModelView myrmv)
 {
     // response view
     if (rmv != null)
     {
         try
         {
             rmv.Dispose();
             rmv = null;
         }
         catch { }
     }
     rmv        = myrmv;
     rmv.KeyUp += new KeyEventHandler(skub.KeyUp);
     rmv.ResponseLoadRequestEvent += new ResponseLoadDel(rmv_ResponseLoadRequestEvent);
     rmv.Parent = split.Panel1;
     if (rmv.isValid)
     {
         rmv.SendBasketEvent  += new BasketDelegate(subscribe);
         rmv.SendCancelEvent  += new LongDelegate(av_SendCancelEvent);
         rmv.SendMessageEvent += new MessageDelegate(rmv_SendMessageEvent);
         rmsg    = (GotMessageIndicator)rmv;
         rtick   = (GotTickIndicator)rmv;
         rfill   = (GotFillIndicator)rmv;
         rpos    = (GotPositionIndicator)rmv;
         rcancel = (GotCancelIndicator)rmv;
         rorder  = (GotOrderIndicator)rmv;
         status(rname + " loaded.  Right click on " + rmv.ViewName + " and turn on.");
     }
 }
Ejemplo n.º 2
0
        void initgvs()
        {
            // setting up all the model views supported by this quotopia instance

            // quotes
            QuoteView qv = new QuoteView();

            // custom bindings
            qv.SubscribeEvent            += new BasketDelegate(subscribe);
            qv.GetPositionsEvent         += new PositionArrayDelegate(qv_GetPositionsEvent);
            qv.GetAllParentSymbols       += new StringDelegate(qv_GetAllParentSymbols);
            qv.SendReconnectRequestEvent += new VoidDelegate(qv_SendReconnectRequestEvent);
            qv.Parent = split.Panel1;
            qv.KeyUp += new KeyEventHandler(skub.KeyUp);
            gti       = (GotTickIndicator)qv;
            bindaddview(qv);


            // account activity
            AccountActivityView av = new AccountActivityView();

            av.SendCancelEvent += new LongDelegate(av_SendCancelEvent);
            av.Parent           = split.Panel1;
            actpos              = (GotPositionIndicator)av;
            actord              = (GotOrderIndicator)av;
            actfill             = (GotFillIndicator)av;
            actcancel           = (GotCancelIndicator)av;
            bindaddview(av);

            loadresponseview(rdll, rname);
            if (rmv != null)
            {
                bindaddview(rmv);
            }

            updaterightclick();
        }
Ejemplo n.º 3
0
        void initgvs()
        {
            
            // setting up all the model views supported by this quotopia instance

            // quotes
            QuoteView qv = new QuoteView();
            // custom bindings
            qv.SubscribeEvent+=new BasketDelegate(subscribe);
            qv.GetPositionsEvent += new PositionArrayDelegate(qv_GetPositionsEvent);
            qv.GetAllParentSymbols += new StringDelegate(qv_GetAllParentSymbols);
            qv.SendReconnectRequestEvent += new VoidDelegate(qv_SendReconnectRequestEvent);
            qv.Parent = split.Panel1;
            qv.KeyUp+=new KeyEventHandler(skub.KeyUp);
            gti = (GotTickIndicator)qv;
            bindaddview(qv);
            

            // account activity
            AccountActivityView av = new AccountActivityView();

            av.SendCancelEvent += new LongDelegate(av_SendCancelEvent);
            av.Parent = split.Panel1;
            actpos = (GotPositionIndicator)av;
            actord = (GotOrderIndicator)av;
            actfill = (GotFillIndicator)av;
            actcancel = (GotCancelIndicator)av;
            bindaddview(av);

            loadresponseview(rdll, rname);
            if (rmv!=null)
                bindaddview(rmv);

            updaterightclick();


        }
Ejemplo n.º 4
0
        void loadresponseview(ResponseModelView myrmv)
        {
            // response view
            if (rmv != null)
            {
                try
                {
                    rmv.Dispose();
                    rmv = null;
                }
                catch { }
            }
            rmv = myrmv;
            rmv.KeyUp+=new KeyEventHandler(skub.KeyUp);
            rmv.ResponseLoadRequestEvent += new ResponseLoadDel(rmv_ResponseLoadRequestEvent);
            rmv.Parent = split.Panel1;
            if (rmv.isValid)
            {
                rmv.SendBasketEvent += new BasketDelegate(subscribe);
                rmv.SendCancelEvent += new LongDelegate(av_SendCancelEvent);
                rmv.SendMessageEvent += new MessageDelegate(rmv_SendMessageEvent);
                rmsg = (GotMessageIndicator)rmv;
                rtick = (GotTickIndicator)rmv;
                rfill = (GotFillIndicator)rmv;
                rpos = (GotPositionIndicator)rmv;
                rcancel = (GotCancelIndicator)rmv;
                rorder = (GotOrderIndicator)rmv;
                status(rname + " loaded.  Right click on " + rmv.ViewName + " and turn on.");
            }
            


            
        }