Example #1
0
        public async void OnOk()
        {
            // Add package name to excluded file
            Debug.Log("Hiding: " + this.appEntryToHide.appName + " (package id: " + this.appEntryToHide.packageId + ")");
            AppProcessor.AddAppToExcludedFile(this.appEntryToHide.packageId);

            // Reload the scene - this will force all the tabs to update
            await SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().name);
        }
        public void OnSelectedPressedBorY(Transform t)
        {
            var appEntry = t.gameObject.GetComponent("AppEntry") as AppEntry;

            if (null != appEntry)
            {
                // Add package name to excluded file
                Debug.Log("Hiding: " + appEntry.appName + " (package id: " + appEntry.packageId + ")");
                AppProcessor.AddAppToExcludedFile(appEntry.packageId);

                // Remove ourselves from the gridview
                Destroy(t.gameObject);
            }
        }