本文整理汇总了C#中EnumCollection类的典型用法代码示例。如果您正苦于以下问题:C# EnumCollection类的具体用法?C# EnumCollection怎么用?C# EnumCollection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EnumCollection类属于命名空间,在下文中一共展示了EnumCollection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SBOBet
public SBOBet(string text1, ISynchronizeInvoke invoke1, string text2, string text3, string text4, bool flag1, bool flag2, bool flag3, bool flag4, bool flag5, bool flag6, bool flag7, bool flag8, EnumCollection.eSpiderMethod method1, int num2, int num3, int num4, int num1)
{
this._strLoginName = "";
this._strSynidNextRunning = "-1";
this._strSynidNextToday = "-1";
this._strSynidNextEarly = "-1";
this._strSynidNextRunningTmp = "-1";
this._strSynidNextTodayTmp = "-1";
this._strSynidNextEarlyTmp = "-1";
this._objMatchOutRightList = new List<MatchOutRight>();
this._objMatchOddEvenList = new List<MatchOddEven>();
this._objMatchTotalGoalList = new List<MatchTotalGoal>();
this._isToSaveBetList = false;
try
{
this.DoNew(text1, "SBOBet", num1, invoke1, text2, text3, text4);
this.Init(flag1, flag2, flag3, flag4, flag5, flag6, flag7, flag8, method1, num2, num3, num4);
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
base._objErrorLogger.write(base._strName + ": EXCEPTION IN New: " + exception.Message);
this.WriteProgramLogger(base._strName + ": EXCEPTION IN New: " + exception.Message);
ProjectData.ClearProjectError();
}
}
示例2: Bet
public void Bet(string text2, string text3, string text1, MatchBetNew new2, MatchNew new1, EnumCollection.eBetTarget target1)
{
try
{
string requestUriString = "";
requestUriString = base._strRootURL + text1;
this.WriteProgramLogger(requestUriString);
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(requestUriString);
request.Timeout = 0x4e20;
request.Method = "POST";
request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.16) Gecko/2009120208 Firefox/3.0.16";
request.Headers.Add("Accept-Language", "en-us");
request.Headers.Add("Accept-Encoding", "gzip, deflate");
request.Headers.Add("Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7");
request.ContentType = "application/x-www-form-urlencoded";
request.KeepAlive = true;
request.Referer = text2;
request.ContentLength = text3.Length;
request.AllowAutoRedirect = true;
request.Headers["Cookie"] = base._objCookieList.ToString();
WebRequestStateEx2 state = new WebRequestStateEx2("Bet", request, text3, EnumCollection.eBetType.HDP, target1, new1, null, null, new2);
ThreadPool.RegisterWaitForSingleObject(request.BeginGetRequestStream(new AsyncCallback(this.ReadCallBackBet), state).AsyncWaitHandle, new WaitOrTimerCallback(this.TimeoutCallBackEx2), state, 0x4e20, true);
base.allDone.WaitOne();
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
base._isBetting = false;
base._objErrorLogger.write(base._strName + ": EXCEPTION IN Bet: " + exception.Message);
this.WriteProgramLogger(base._strName + ": EXCEPTION IN Bet: " + exception.Message);
this.RaiseEventBetComplete(base._strName, false, new1, new2);
ProjectData.ClearProjectError();
}
}
示例3: BetAmountStyleManagerUI
public BetAmountStyleManagerUI(EnumCollection.eBetAmountStyle style1, bool flag1, int num1, string text1)
{
this._objBetAmountStyle = style1;
this._isPercentOptionDisabled = flag1;
this._intExtendedValue = num1;
this._strSportBook = text1;
}
示例4: PerMatchLimitManagerUI
public PerMatchLimitManagerUI(int num1, EnumCollection.ePerMatchLimitType type1, decimal decimal1, decimal decimal2)
{
this._intPermatchLimitMethod = num1;
this._objPerMatchLimitType = type1;
this._dclAmountLimit = decimal1;
this._intCountLimit = Convert.ToInt32(decimal2);
}
示例5: AgentToClientBet
public AgentToClientBet(MatchBetNew new1, MatchNew new2, EnumCollection.eBetAmountStyle style1, int num1, int num2, string text1, FollowOddsOption option1)
{
this._intMaxBettingAttempt = 5;
this._objBetAmountStyle = EnumCollection.eBetAmountStyle.Fixed;
this._intBetAmountValue = 0;
this._objMatchBet = new MatchBetNew();
this._objMatchClient = new MatchNew();
this._intBettingAttempt = 0;
this._intBetSuccessCount = 0;
this._intTargetAmount = 0;
this._intBettedAmount = 0;
this._intLastBetSuccessAmount = 0;
this._isRemoved = false;
this._strMeaningfulStatus = "";
this._strActionStatus = "";
this._isWaitingReset = false;
this._objFollowOddsOption = new FollowOddsOption();
this._objMatchBet = new1;
this._objMatchClient = new2;
this._objBetAmountStyle = style1;
this._intBetAmountValue = num1;
this._intMaxBettingAttempt = num2;
this._strActionStatus = text1;
this._objFollowOddsOption = option1;
this.UpdateTargetAmount();
}
示例6: Bet
public void Bet(string text1, MatchBetNew new2, MatchNew new1, EnumCollection.eBetTarget target1)
{
try
{
string requestUriString = "";
base._isBetting = true;
base._datBetStart = DateTime.Now;
requestUriString = base._strRootURL + text1;
CommonFunction.Log(requestUriString);
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(requestUriString);
request.Timeout = 0x4e20;
request.Method = "GET";
request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.16) Gecko/2009120208 Firefox/3.0.16";
request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
request.Headers.Add("Accept-Language", "en-gb,en;q=0.5");
request.Headers.Add("Accept-Encoding", "gzip, deflate");
request.Headers.Add("Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7");
request.Headers["Cookie"] = base._objCookieList.ToString();
request.Referer = base._strRootURL + "/english/index.php?p=betting_entry";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = 0L;
WebRequestStateEx2 state = new WebRequestStateEx2("Bet", request, "", EnumCollection.eBetType.HDP, target1, new1, null, null, new2);
ThreadPool.RegisterWaitForSingleObject(request.BeginGetResponse(new AsyncCallback(this.RequestCompleteBet), state).AsyncWaitHandle, new WaitOrTimerCallback(this.TimeoutCallBackEx2), state, 0x2710, true);
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
base._isBetting = false;
base._objErrorLogger.write(base._strName + ": EXCEPTION IN Bet: " + exception.Message);
this.WriteProgramLogger(base._strName + ": EXCEPTION IN Bet: " + exception.Message);
this.RaiseEventBetComplete(base._strName, false, new1, new2);
ProjectData.ClearProjectError();
}
}
示例7: WriteBindings
void WriteBindings(DelegateCollection delegates, FunctionCollection wrappers, EnumCollection enums)
{
Console.WriteLine("Writing bindings to {0}", Settings.OutputPath);
if (!Directory.Exists(Settings.OutputPath))
Directory.CreateDirectory(Settings.OutputPath);
// Hack: Fix 3dfx extension category so it doesn't start with a digit
if (wrappers.ContainsKey("3dfx"))
{
var three_dee_fx = wrappers["3dfx"];
wrappers.Remove("3dfx");
wrappers.Add(DigitPrefix + "3dfx", three_dee_fx);
}
using (var sw = sw_h)
{
WriteLicense(sw);
sw.WriteLine("package {0}.{1};", Settings.OutputNamespace, Settings.GLClass);
sw.WriteLine();
sw.WriteLine("import java.nio.*;");
sw.WriteLine();
WriteDefinitions(sw, enums, wrappers, Type.CSTypes);
sw.Flush();
sw.Close();
}
string output_header = Path.Combine(Settings.OutputPath, OutputFileHeader);
Move(sw_h.File, output_header);
}
示例8: Process
public EnumCollection Process(EnumCollection enums)
{
var nav = new XPathDocument(Overrides).CreateNavigator();
enums = ProcessNames(enums, nav);
enums = ProcessConstants(enums, nav);
return enums;
}
示例9: FollowOddsOption
public FollowOddsOption(EnumCollection.eFollowOddsOption option1, double num1)
{
this._objFollowOddsOption = EnumCollection.eFollowOddsOption.None;
this._dblOddsValue = 0.0;
this._objFollowOddsOption = option1;
this._dblOddsValue = num1;
}
示例10: Process
public FunctionCollection Process(DelegateCollection delegates, EnumCollection enums)
{
Console.WriteLine("Processing delegates.");
var nav = new XPathDocument(Overrides).CreateNavigator();
foreach (var d in delegates.Values)
{
var function_override = GetFuncOverride(nav, d);
if (function_override != null) {
string obsolete = function_override.GetAttribute ("obsolete", "");
if (!string.IsNullOrEmpty (obsolete))
d.Obsolete = obsolete;
}
TranslateReturnType(nav, d, enums);
TranslateParameters(nav, d, enums);
}
Console.WriteLine("Generating wrappers.");
var wrappers = CreateWrappers(delegates, enums);
Console.WriteLine("Creating CLS compliant overloads.");
wrappers = CreateCLSCompliantWrappers(wrappers, enums);
Console.WriteLine("Removing non-CLS compliant duplicates.");
return MarkCLSCompliance(wrappers);
}
示例11: Generator
public Generator(Settings settings, string dirName)
{
if (settings == null)
throw new ArgumentNullException("settings");
if (dirName == null)
dirName = "GL2";
Settings = settings.Clone();
glTypemap = "GL2/gl.tm";
csTypemap = Settings.LanguageTypeMapFile;
enumSpec = Path.Combine(dirName, "signatures.xml");
enumSpecExt = String.Empty;
glSpec = Path.Combine(dirName, "signatures.xml");
glSpecExt = String.Empty;
Settings.OverridesFile = Path.Combine(dirName, "overrides.xml");
Settings.ImportsClass = "Core";
Settings.DelegatesClass = "Delegates";
Settings.OutputClass = "GL";
Delegates = new DelegateCollection();
Enums = new EnumCollection();
Wrappers = new FunctionCollection();
SpecReader = new XmlSpecReader(Settings);
}
示例12: FrmUI_OKClicked
private void FrmUI_OKClicked(string text1, string text2, EnumCollection.eMemberPosition position1)
{
OKClickedEventHandler oKClickedEvent = this.OKClickedEvent;
if (oKClickedEvent != null)
{
oKClickedEvent(text1, text2, position1);
}
}
示例13: OKClicked_Done
private void OKClicked_Done(EnumCollection.eBetAmountStyle style1, int num1)
{
OKClickedEventHandler oKClickedEvent = this.OKClickedEvent;
if (oKClickedEvent != null)
{
oKClickedEvent(style1, num1);
}
}
示例14: FrmUI_OKClicked
private void FrmUI_OKClicked(decimal decimal1, EnumCollection.eProgramAction action1)
{
OKClickedEventHandler oKClickedEvent = this.OKClickedEvent;
if (oKClickedEvent != null)
{
oKClickedEvent(decimal1, action1);
}
}
示例15: FrmUI_OKClicked
private void FrmUI_OKClicked(AccountInformationList list1, EnumCollection.eOddsType type1)
{
OKClickedEventHandler oKClickedEvent = this.OKClickedEvent;
if (oKClickedEvent != null)
{
oKClickedEvent(list1, type1);
}
}