private SettingsUI() { this.helpf = Helpfunktions.Instance; this.mssgprsr = Messageparser.Instance; this.recto = Rectomat.Instance; this.prcs = Prices.Instance; this.crdvwr = Cardviewer.Instance; this.srchsvr = Searchsettings.Instance; this.sttngs = Settings.Instance; }
private SettingsUI() { this.helpf = Helpfunktions.Instance; this.mssgprsr = Messageparser.Instance; this.recto = Rectomat.Instance; this.prcs = Prices.Instance; this.crdvwr = Cardviewer.Instance; this.srchsvr = Searchsettings.Instance; this.sttngs = Settings.Instance; }
public AuctionMod() { pppmngr = PopupManager.Instance; vc = new VersionCheck(); DateTime itze = DateTime.Now; helpf = Helpfunktions.Instance; helpf.ownmodfolder = this.OwnFolder() + System.IO.Path.DirectorySeparatorChar; helpf.setOwnAucPath(this.OwnFolder() + System.IO.Path.DirectorySeparatorChar + "auc" + System.IO.Path.DirectorySeparatorChar); sttngs = Settings.Instance; srchsvr = Searchsettings.Instance; crdvwr = Cardviewer.Instance; prcs = Prices.Instance; recto = Rectomat.Instance; mssgprsr = Messageparser.Instance; ahui = AuctionHouseUI.Instance; generator = Generator.Instance; genui = GeneratorUI.Instance; setui = SettingsUI.Instance; twb = TradingWithBots.Instance; drawsubmenu = typeof(Store).GetMethod("drawSubMenu", BindingFlags.Instance | BindingFlags.NonPublic); chatLogStyleinfo = typeof(ChatUI).GetField("chatMsgStyle", BindingFlags.Instance | BindingFlags.NonPublic); if (Directory.GetFiles(helpf.ownmodfolder, "*.txt").Contains(helpf.ownmodfolder + "settingsauc.txt"))//File.Exists() was slower { sttngs.loadsettings(helpf.deleteTime); } Directory.CreateDirectory(helpf.ownaucpath); this.aucfiles = Directory.GetFiles(helpf.ownaucpath, "*auc.txt"); if (aucfiles.Contains(helpf.ownaucpath + "wtsauc.txt"))//File.Exists() was slower { helpf.canLoadWTSmsg = true; } if (aucfiles.Contains(helpf.ownaucpath + "wtbauc.txt"))//File.Exists() was slower { helpf.canLoadWTBmsg = true; } if (aucfiles.Contains(helpf.ownaucpath + "nicauc.txt"))//File.Exists() was slower { helpf.nicks = true; } try { App.Communicator.addListener(this); } catch { Console.WriteLine("cant add listener"); } Console.WriteLine("### not an Auction House loaded in " + (DateTime.Now.Subtract(itze)).TotalMilliseconds + " ms ###"); }
public GeneratorUI() { this.helpf = Helpfunktions.Instance; this.mssgprsr = Messageparser.Instance; this.recto = Rectomat.Instance; this.prcs = Prices.Instance; this.crdvwr = Cardviewer.Instance; this.srchsvr = Searchsettings.Instance; this.sttngs = Settings.Instance; this.generator = Generator.Instance; systemCopyBufferProperty = T.GetProperty("systemCopyBuffer", BindingFlags.Static | BindingFlags.NonPublic); }
public GeneratorUI() { this.helpf = Helpfunktions.Instance; this.mssgprsr = Messageparser.Instance; this.recto = Rectomat.Instance; this.prcs = Prices.Instance; this.crdvwr = Cardviewer.Instance; this.srchsvr = Searchsettings.Instance; this.sttngs = Settings.Instance; this.generator = Generator.Instance; systemCopyBufferProperty = T.GetProperty("systemCopyBuffer", BindingFlags.Static | BindingFlags.NonPublic); }
public AuctionMod() { pppmngr = PopupManager.Instance; DateTime itze= DateTime.Now; helpf = Helpfunktions.Instance; helpf.setOwnAucPath(this.OwnFolder() + System.IO.Path.DirectorySeparatorChar + "auc" + System.IO.Path.DirectorySeparatorChar); sttngs = Settings.Instance; srchsvr = Searchsettings.Instance; crdvwr = Cardviewer.Instance; prcs = Prices.Instance; recto = Rectomat.Instance; mssgprsr = Messageparser.Instance; ahui = AuctionHouseUI.Instance; generator = Generator.Instance; genui = GeneratorUI.Instance; setui = SettingsUI.Instance; drawsubmenu = typeof(Store).GetMethod("drawSubMenu", BindingFlags.Instance | BindingFlags.NonPublic); chatLogStyleinfo = typeof(ChatUI).GetField("chatMsgStyle", BindingFlags.Instance | BindingFlags.NonPublic); Directory.CreateDirectory(helpf.ownaucpath); this.aucfiles = Directory.GetFiles(helpf.ownaucpath, "*auc.txt"); if (aucfiles.Contains(helpf.ownaucpath + "wtsauc.txt"))//File.Exists() was slower { helpf.canLoadWTSmsg = true; } if (aucfiles.Contains(helpf.ownaucpath + "wtbauc.txt"))//File.Exists() was slower { helpf.canLoadWTBmsg = true; } if (aucfiles.Contains(helpf.ownaucpath + "nicauc.txt"))//File.Exists() was slower { helpf.nicks = true; } if (aucfiles.Contains(helpf.ownaucpath + "settingsauc.txt"))//File.Exists() was slower { sttngs.loadsettings(helpf.ownaucpath,helpf.deleteTime); } try { App.Communicator.addListener(this); } catch { Console.WriteLine("cant add listener"); } Console.WriteLine("### not an Auction House loaded in "+(DateTime.Now.Subtract(itze)).TotalMilliseconds + " ms ###"); }