private void OnEditNickname(object sender, RoutedEventArgs e)
        {
            string newNickname = AddSaveNicknameWindow.ShowDialog(this, selectedGameSave.Nickname);

            if (newNickname != null)
            {
                selectedGameSave.Nickname = newNickname;
                FillListViewItem(selectedGameSave, gameSaves[selectedIndex]);
            }
        }
Exemplo n.º 2
0
        public static string ShowDialog(Window owner, string nickname)
        {
            AddSaveNicknameWindow window = new AddSaveNicknameWindow(nickname);

            window.Owner = owner;
            var result = window.ShowDialog();

            if (result != null && result.Value)
            {
                return(window.nickname);
            }
            return(null);
        }