private void Start() { bm = BibleManager._bm; fm = FindManager._fm; am = AudioManager._am; ChangeMenuUI(); }
private void AddBible() { var verses = BibleManager.Ingest(Settings.SelectedDomain.Id, "kjvdat"); foreach (var verse in verses) { AddContent(verse); } }
private void Start() { lm = LevelManager._lm; bm = BibleManager._bm; am = AudioManager._am; gm = GameManager._gm; ChooseBible(); }
private void Awake() { if (_bm == null) { _bm = this; } //SetVerseToCht(new BibleCard(43, 2, 1, 1, 300L, 2)); //ChangeChapterAndVerseUI(new BibleCard(43, 2, 1, 1, 300L, 2)); }
private void Start() { dm = DataManager._dm; lm = LevelManager._lm; bm = BibleManager._bm; boxm = BoxManager._boxm; _getHeartText = Resources.Load("Prefabs/G_getHeart") as GameObject; _heartText = GameObject.FindGameObjectWithTag("HeartPoint").GetComponent <Text>(); _bibleEnergyText = GameObject.FindGameObjectWithTag("BibleEnergy").GetComponent <Text>(); LoadData(); Debug.Log("s"); RefreshRealHeart(); RefreshRealBibleEnergy(); StartCoroutine(GetAutoHeart()); }
private void Start() { bm = BibleManager._bm; }
void Start() { bm = BibleManager._bm; InitUpgradeBtnUI(); RefreshAbilityLvUI(); }
private static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; DateTime startTime = DateTime.Now; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Update settings from previous version if (Settings.Default.UpgradeRequired) { Settings.Default.Upgrade(); Settings.Default.UpgradeRequired = false; Settings.Default.Save(); } Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture(Settings.Default.SelectedCulture); log.Debug("Set culture to " + Thread.CurrentThread.CurrentUICulture); // code to ensure that only one copy of the software is running. Mutex mutex; string strLoc = Assembly.GetExecutingAssembly().Location; FileSystemInfo fileInfo = new FileInfo(strLoc); string sExeName = fileInfo.Name; string mutexName = "Global\\" + sExeName; try { mutex = Mutex.OpenExisting(mutexName); //since it hasn’t thrown an exception, then we already have one copy of the app open. object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false); String appTitle = ((AssemblyProductAttribute)attributes[0]).Product; MessageBox.Show(StringResources.ProgramInstanceAlreadyRunning, appTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); Environment.Exit(0); } catch { //since we didn’t find a mutex with that name, create one mutex = new Mutex(true, mutexName); } // Check Data directory if (SettingsUtil.SetDefaultDataDirIfEmpty(Settings.Default)) { Settings.Default.Save(); } SongManager songManager = new SongManager(SettingsUtil.GetSongDirPath(Settings.Default)); ImageManager imgManager = new ImageManager(SettingsUtil.GetImageDirPath(Settings.Default), SettingsUtil.GetThumbDirPath(Settings.Default)) { DefaultThumbSize = Settings.Default.ThumbSize, DefaultEmptyColor = Settings.Default.ProjectionBackColor }; BibleManager bibleManager = new BibleManager(SettingsUtil.GetBibleDirPath(Settings.Default)); if (Settings.Default.ShowLoadingScreen) { LoadingScreen ldg = new LoadingScreen(songManager, imgManager); ldg.SetLabel("PraiseBase Presenter wird gestartet..."); ldg.Show(); ldg.SetLabel("Prüfe Miniaturbilder..."); imgManager.CheckThumbs(false); ldg.SetLabel("Lade Liederdatenbank..."); songManager.Reload(); GC.Collect(); ldg.Close(); ldg.Dispose(); } else { imgManager.CheckThumbs(false); songManager.Reload(); GC.Collect(); } log.Debug(@"Loading took " + (DateTime.Now - startTime).TotalSeconds + @" seconds!"); string setlistFile = null; string songFile = null; // Detect if program is called with a setlist file as argument if (args.Length == 1) { if (File.Exists((args[0]))) { string ext = Path.GetExtension(args[0]); if (ext == "." + SetlistWriter.FileExtension) { setlistFile = args[0]; } else { songFile = args[0]; } } } Form mw; if (songFile != null) { mw = new SongEditor(Settings.Default, imgManager, songFile); } else { mw = new MainWindow(songManager, imgManager, bibleManager, setlistFile); } Application.Run(mw); GC.KeepAlive(mutex); }