void Awake() { DontDestroyOnLoad(gameObject); context = new LotteryContext(this); //Application.logMessageReceived+=HandleLog; config = ConfigManager.Instance.GetEmailConfigLoader(); Application.targetFrameRate = 30; //设置IOS键盘输入 TouchScreenKeyboard.hideInput = true; }
protected override void OnStartup(StartupEventArgs e) { var context = new LotteryContext(); context.CreateOrUpdateDatabase(); var lotteryGameRepository = new LotteryGameRepository(context); var drawRepository = new DrawRepository(context); var drawService = new DrawService(drawRepository); var lotteryWindow = new LotteryWindow(lotteryGameRepository, drawRepository, drawService); lotteryWindow.Show(); }
public LotteryEventApiController(LotteryEventRepo repo, LotteryContext ctx) { _repo = repo; _ctx = ctx; }
public OrderController(LotteryContext context) { _context = context; }
public Lotto649CollectionController(LotteryContext lotteryContext, ILogger <Lotto649CollectionController> logger) { _lotteryContext = lotteryContext ?? throw new ArgumentNullException(nameof(lotteryContext)); _logger = logger; }
/// <summary> /// Gets franchise info from key. Returns null if franchise is not found. /// </summary> /// <param name="key"></param> /// <returns></returns> //private Franchise FranchiseFromKey(Guid key) //{ // var db = LotteryDB // return FranchiseFromKey(db, key); //} /// <summary> /// Gets franchise info from key using an existing database connection. Returns null if franchise is not found. /// </summary> /// <param name="db"></param> /// <param name="key"></param> /// <returns></returns> private Franchise FranchiseFromKey(LotteryContext db, Guid key) { return(db.Franchises.SingleOrDefault(f => f.ReplicationID == key)); }
public CharityEntitiesController(LotteryContext context) { _context = context; }
// Use this for initialization void Start() { DontDestroyOnLoad(gameObject); root = GameObject.Find("ContextView").GetComponent <LotteryRoot>(); context = (LotteryContext)root.context; //这种方法不太好,以后再改进 }