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


C# EnumCollection类代码示例

本文整理汇总了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();
     }
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:27,代码来源:SBOBet.cs

示例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();
     }
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:35,代码来源:SingBet.cs

示例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;
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:7,代码来源:BetAmountStyleManagerUI.cs

示例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);
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:7,代码来源:PerMatchLimitManagerUI.cs

示例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();
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:26,代码来源:AgentToClientBet.cs

示例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();
     }
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:35,代码来源:BW3388.cs

示例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);
        }
开发者ID:hultqvist,项目名称:opentk,代码行数:32,代码来源:JavaSpecWriter.cs

示例8: Process

 public EnumCollection Process(EnumCollection enums)
 {
     var nav = new XPathDocument(Overrides).CreateNavigator();
     enums = ProcessNames(enums, nav);
     enums = ProcessConstants(enums, nav);
     return enums;
 }
开发者ID:challal,项目名称:scallion,代码行数:7,代码来源:EnumProcessor.cs

示例9: FollowOddsOption

 public FollowOddsOption(EnumCollection.eFollowOddsOption option1, double num1)
 {
     this._objFollowOddsOption = EnumCollection.eFollowOddsOption.None;
     this._dblOddsValue = 0.0;
     this._objFollowOddsOption = option1;
     this._dblOddsValue = num1;
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:7,代码来源:FollowOddsOption.cs

示例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);
        }
开发者ID:renanyoy,项目名称:mono-opentk,代码行数:25,代码来源:FuncProcessor.cs

示例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);
        }
开发者ID:RegApp4Me,项目名称:opentk,代码行数:28,代码来源:Generator.cs

示例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);
     }
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:8,代码来源:AccountLoginManagerUI.cs

示例13: OKClicked_Done

 private void OKClicked_Done(EnumCollection.eBetAmountStyle style1, int num1)
 {
     OKClickedEventHandler oKClickedEvent = this.OKClickedEvent;
     if (oKClickedEvent != null)
     {
         oKClickedEvent(style1, num1);
     }
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:8,代码来源:BetAmountStyleManagerUI.cs

示例14: FrmUI_OKClicked

 private void FrmUI_OKClicked(decimal decimal1, EnumCollection.eProgramAction action1)
 {
     OKClickedEventHandler oKClickedEvent = this.OKClickedEvent;
     if (oKClickedEvent != null)
     {
         oKClickedEvent(decimal1, action1);
     }
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:8,代码来源:MinumumCreditLimitManagerUI.cs

示例15: FrmUI_OKClicked

 private void FrmUI_OKClicked(AccountInformationList list1, EnumCollection.eOddsType type1)
 {
     OKClickedEventHandler oKClickedEvent = this.OKClickedEvent;
     if (oKClickedEvent != null)
     {
         oKClickedEvent(list1, type1);
     }
 }
开发者ID:yjtang,项目名称:AutoBws,代码行数:8,代码来源:AccountListLoginManagerUI.cs


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