Beispiel #1
0
        public static DialogResult DialogResponse(string Toast)
        {
            FormToastResponse ShowToast = new FormToastResponse(Toast);

            ShowToast.StartPosition = FormStartPosition.CenterParent;
            ShowToast.Focus();
            ShowToast.ShowDialog();
            return(ShowToast.DialogResult);
        }
Beispiel #2
0
        private void DeleteGame(string GameName)
        {
            FormToastResponse VerifyDecision = new FormToastResponse("Are you sure you want to delete this game and all its saves?");
            DialogResult      DR             = VerifyDecision.ShowDialog();

            if (DR == DialogResult.OK)
            {
                if (ComboBoxSelectGame.Items.Count == 2)
                {
                    ActionCenter.Toast("Denied. You must have at least one game.", StartPoint(), 2);
                }
                else
                {
                    Directory.Delete(Configuration.AppDataRoamingPath + "//" + GameName, true);
                    CurrentConfig.RemoveGame(GameName);
                    CurrentConfig.Save();
                    LoadGameList();
                }
            }
        }