private void LoadBots()
        {
            Bots = new ObservableCollection <ContentViewModel>();
            DirectoryInfo directory = new DirectoryInfo("Bots");

            DirectoryInfo[] directories = directory.GetDirectories();
            foreach (var item in directories)
            {
                var bot = new ContentViewModel(item.Name);
                bot.Content.ViewModel.PropertyChanged += ViewModel_PropertyChanged;
                Bots.Add(bot);
            }
        }
 private async void AddNewBotAsync()
 {
     await RunCommandAsync(() => isBusy, async() =>
     {
         Directory.CreateDirectory(@"Bots\New" + (Bots.Count + 1));
         foreach (var file in Directory.GetFiles(@"openkore\control"))
         {
             File.Copy(file, Path.Combine(@"Bots\New" + (Bots.Count + 1), Path.GetFileName(file)));
         }
         var newbot = new ContentViewModel("New" + (Bots.Count + 1));
         newbot.Content.ViewModel.PropertyChanged += ViewModel_PropertyChanged;
         Bots.Add(newbot);
         SelectedIndex = Bots.Count - 1;
     });
 }