Exemplo n.º 1
0
        private void Tile_Click(object sender, EventArgs e)
        {
            string a = ((TileButton)sender).Tag.ToString();

            if (a == "WifiTile")
            {
                TrackingHelper.SendProfileClickedEvent("wifi", "app");
                Navigation.GoToPage("Profiles/Wifi", null, null);
                return;
            }
            if (a == "AnonDown")
            {
                TrackingHelper.SendProfileClickedEvent("anonymousDownloading", "app");
                Navigation.GoToPage("Profiles/AnonymousDownloading", null, null);
                return;
            }
            if (a == "AnonBrows")
            {
                TrackingHelper.SendProfileClickedEvent("anonymousBrowsing", "app");
                Navigation.GoToPage("Profiles/AnonymousBrowsing", null, null);
                return;
            }
            if (a == "NetworkTile")
            {
                TrackingHelper.SendProfileClickedEvent("network", "app");
                Navigation.GoToPage("Profiles/Network", null, null);
                return;
            }
            if (a == "Unblock")
            {
                TrackingHelper.SendProfileClickedEvent("unblock", "app");
                Navigation.GoToPage("Profiles/Unblock", null, null);
                return;
            }
            if (!(a == "Anti"))
            {
                TrackingHelper.SendProfileClickedEvent("custom", "app");
                Navigation.GoToPage("Profiles/Custom", null, null);
                return;
            }
            TrackingHelper.SendProfileClickedEvent("antiCensor", "app");
            Navigation.GoToPage("Profiles/Uncensoring", null, null);
        }