Esempio n. 1
0
        private async void PlusButton_Clicked(object sender, object e)
        {
            var guid  = (Guid)((ItemPages.PlusButton)sender).Tag;
            var jChar = Items.Where(x => x.ID == guid).FirstOrDefault();

            if (jChar != null)
            {
                var result = await DeleteCharakterDialog.ShowDialog(jChar);

                if (result)
                {
                    Items.Remove(jChar);
                    var pFolder = Path.Combine(Game.CharakterSaveFolder, jChar.ID.ToString() + ".save");
                    FileManagment.DeleteTextFile(pFolder);
                }
            }
        }