Esempio n. 1
0
        /// <summary>
        /// Called when the user wants to remove LESs from their League of Legends installation.
        /// </summary>
        private void RemoveButton_Click(object sender, RoutedEventArgs e)
        {
            string CurrentLocation = Path.Combine(LocationTextbox.Text, "LESsBackup");

            string[] targetVersions = Directory.GetDirectories(CurrentLocation);
            for (int i = 0; i < targetVersions.Length; i++)
            {
                targetVersions[i] = targetVersions[i].Remove(0, CurrentLocation.Length).Replace("\\", "").Replace("/", "");
            }

            RemovePopup popup = new RemovePopup(type, targetVersions, LocationTextbox.Text);

            popup.Show();
        }
 /// <summary>
 /// Called when the user wants to remove LESs from their League of Legends installation.
 /// </summary>
 private void RemoveButton_Click(object sender, RoutedEventArgs e)
 {
     RemovePopup popup = new RemovePopup(type, LocationTextbox.Text);
     popup.Show();
 }