Exemplo n.º 1
0
        public void Dispose()
        {
            Loaded = 0;
            Utils.Reclaim(mLoader);

            ResList.Clear();
            mDepsSigned?.Clear();

            CompleteEvent?.RemoveAllListeners();
            RemoteAssetUpdated?.RemoveAllListeners();

            CompleteEvent      = default;
            RemoteAssetUpdated = default;
            mLoader            = default;
            mDepsSigned        = default;
        }
Exemplo n.º 2
0
        private void FindCommandExecute(string textForFind)
        {
            var hex_val = textForFind;

            ResList.Clear();

            List <ModelCode> forFind = getModelCodes();

            var allSelected = getSelectedProp();

            foreach (var modCode in forFind)
            {
                var myProps         = modelResourcesDesc.GetAllPropertyIds(ModelCodeHelper.GetTypeFromModelCode(modCode));
                var mySelected      = myProps.Where(x => allSelected.Contains(x));
                var retExtentValues = testGda.GetExtentValues(modCode, mySelected.ToList());
                foreach (var res in retExtentValues)
                {
                    ResList.Add(res);
                }
            }

            //if (hex_val.Trim() != string.Empty)
            //{
            //    try
            //    {
            //        long gid = Convert.ToInt64(hex_val, 16);
            //        ResourceDescription rd = testGda.GetValues(gid);
            //        if (!ResList.ToList().Exists((x) => x.Id == rd.Id))
            //        {
            //            ResList.Add(rd);
            //        }
            //    }
            //    catch (Exception ex)
            //    {
            //        Console.WriteLine(ex.Message);
            //    }
            //}
        }