Example #1
0
 private void ActionDeleteGripCommand(Grip obj)
 {
     try
     {
         Grips.Remove(obj);
         OnPropertyChanged();
     }
     catch (Exception ex)
     {
         Debug.WriteLine($"Error deleting the grip - {ex.Message}");
     }
 }
Example #2
0
        public void Init()
        {
            // Vs2019.GetSetting("", TestContext);
            BSOtherObjects obj = new BSOtherObjects();

            _errOut         = @"";
            _databasePath   = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Vs2019.GetSetting("DatabasePath", TestContext));
            _gunId          = Vs2019.IGetSetting("MyGunCollectionID", TestContext);
            _shopOldName    = obj.FC(Vs2019.GetSetting("MyGunCollection_ShopOldName", TestContext));
            _shopNewName    = obj.FC(Vs2019.GetSetting("MyGunCollection_ShopNewName", TestContext));
            _fullName       = "Glock Super Carry";
            _serialNumber   = "RIA2323423";
            _manufacturesId = Manufacturers.GetId(_databasePath, "Glock", out _errOut);
            _modelId        = Models.GetId(_databasePath, "G26", _manufacturesId, out _errOut);
            _nationalityId  = Nationality.GetId(_databasePath, "USA", out _errOut);
            _gripId         = Grips.GetId(_databasePath, "Plastic", out _errOut);
            _soldGunId      = Vs2019.IGetSetting("SoldFirearmId", TestContext);
        }