static void Main(string[] args) { charDB = new CharDatabase(); // SortProductCategories("CATA", 2, 2, 57); // Console.WriteLine("step 1 complete"); // //SortProductCategories("Legrand", 2, 2, 160); //Console.WriteLine("step 2 complete"); // ExecuteLegrandOperations("C:/Tigoo/LegrandNew.xlsx", 2, 160); // Console.WriteLine("step 1 complete"); // ExecuteScameOperations("C:/Tigoo/Scame.xlsx", 3, 313); Console.WriteLine("step 2 complete"); // // ExecuteKnipexOperations("C:/Tigoo/Knipex.xlsx", 3, 125); // Console.WriteLine("step 3 complete"); // ExecuteBsOperations("C:/Tigoo/Bs.xlsx", 2, 208); // Console.WriteLine("step 4 complete"); var ordered = charDB.charList.GroupBy(x => x.CharName).Select(grp => grp.ToList()).ToList().Distinct(); Environment.Exit(0); }
public TCManager() { var set = Settings.Default; AuthDatabase = new AuthDatabase(set.DBHost, set.DBPort, set.DBUsername, set.DBPassword.DecryptString(Encoding.Unicode.GetBytes(Settings.Default.Entropy)).ToInsecureString(), set.DBAuthName); CharDatabase = new CharDatabase(set.DBHost, set.DBPort, set.DBUsername, set.DBPassword.DecryptString(Encoding.Unicode.GetBytes(Settings.Default.Entropy)).ToInsecureString(), set.DBCharName); WorldDatabase = new WorldDatabase(set.DBHost, set.DBPort, set.DBUsername, set.DBPassword.DecryptString(Encoding.Unicode.GetBytes(Settings.Default.Entropy)).ToInsecureString(), set.DBWorldName); }
void Start() { _moveRight = GameObject.Find("MoveRight").GetComponent <Button>(); _moveLeft = GameObject.Find("MoveLeft").GetComponent <Button>(); _moveLeft.interactable = false; _characterList = GameObject.Find("CharacterList"); _database = gameObject.GetComponent <CharDatabase>(); _weaponDb = GameObject.Find("_manager").GetComponent <WeaponDatabase>(); _armourDb = GameObject.Find("_manager").GetComponent <ArmourDatabase>(); _name = GameObject.Find("Name").GetComponent <Text>(); _str = GameObject.Find("StrText").GetComponent <Text>(); _dex = GameObject.Find("DexText").GetComponent <Text>(); _vit = GameObject.Find("VitText").GetComponent <Text>(); SetStats(0); }