本文整理汇总了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;
}
示例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();
}
示例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();
}