当前位置: 首页>>代码示例>>C#>>正文


C# Response.Reset方法代码示例

本文整理汇总了C#中Response.Reset方法的典型用法代码示例。如果您正苦于以下问题:C# Response.Reset方法的具体用法?C# Response.Reset怎么用?C# Response.Reset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Response的用法示例。


在下文中一共展示了Response.Reset方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetSettableList

        public static List<string> GetSettableList(Response rtmp)
        {
            List<string> valnames = new List<string>();
            if (rtmp == null)
                return valnames;
            if (!rtmp.isValid)
                return valnames;
            settablelist = string.Empty;
            bindtmp(rtmp);
            try
            {
                rtmp.Reset();
            }
            catch { }
            rtmp.SendMessageEvent -= new MessageDelegate(settable_SendMessageEvent);
            if (string.IsNullOrWhiteSpace(settablelist))
                return valnames;
            valnames = new List<string>(settablelist.Split(','));
            return valnames;

        }
开发者ID:antonywu,项目名称:tradelink,代码行数:21,代码来源:ResponseLoader.cs

示例2: loadboxname

        void loadboxname(string name)
        {
            if ((resname!=string.Empty) && (name!=resname))
                reset(false);
            try
            {
                myres = ResponseLoader.FromDLL(name, responsedll);
            }
            catch (Exception ex) 
            { 
                debug(ex.Message+ex.StackTrace); 
                status("Error loading response");
                myres = null;
                return; 
            }
            if ((myres != null) && (myres.FullName == name))
            {
                resname = name;
                status(resname + " is current response.");
                bindresponseevents();
                updatetitle();
                
                myres.ID = 0;
                try
                {
                    myres.Reset();
                    igridinit();
                }
                catch (Exception ex)
                {
                    debug("An error occured inside your response Reset method: ");
                    debug(ex.Message + ex.StackTrace);
                }
            }
            else status("Response did not load.");
            hasprereq();

        }
开发者ID:antonywu,项目名称:tradelink,代码行数:38,代码来源:KadinaMain.cs

示例3: loadboxname

 void loadboxname(string name)
 {
     try
     {
         myres = ResponseLoader.FromDLL(name, responsedll);
     }
     catch (Exception ex)
     {
         debug(ex.Message+ex.StackTrace);
         status("Error loading response");
         myres = null;
         return;
     }
     if ((myres != null) && (myres.FullName == name))
     {
         resname = name;
         myres.SendTicketEvent += new TicketDelegate(myres_SendTicketEvent);
         myres.SendDebugEvent += new DebugFullDelegate(myres_GotDebug);
         myres.SendCancelEvent += new LongSourceDelegate(myres_CancelOrderSource);
         myres.SendOrderEvent += new OrderSourceDelegate(myres_SendOrder);
         myres.SendIndicatorsEvent += new ResponseStringDel(myres_SendIndicators);
         myres.SendMessageEvent += new MessageDelegate(myres_SendMessage);
         myres.SendBasketEvent += new BasketDelegate(myres_SendBasket);
         myres.SendChartLabelEvent += new ChartLabelDelegate(myres_SendChartLabel);
         status(resname + " is current response.");
         updatetitle();
         igridinit();
         myres.ID = 0;
         try
         {
             myres.Reset();
         }
         catch (Exception ex)
         {
             debug("An error occured inside your response Reset method: ");
             debug(ex.Message + ex.StackTrace);
         }
     }
     else status("Response did not load.");
     hasprereq();
 }
开发者ID:sopnic,项目名称:larytet-master,代码行数:41,代码来源:KadinaMain.cs


注:本文中的Response.Reset方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。