Example #1
0
        private void onBtn_PickSpine(object sender, RoutedEventArgs e)
        {
            DataRowView dataRowView = dgWarrior.SelectedItem as DataRowView;

            if (dataRowView != null)
            {
                AvatarPickWindow spinePickWindow = new AvatarPickWindow();
                if (spinePickWindow.ShowDialog() == true)
                {
                    (dgWarrior.SelectedItem as DataRowView)["AvatarType"] = spinePickWindow.PickedAvatarID;
                    previewAvatar(spinePickWindow.PickedAvatarID.ToString());
                }
            }
        }
        private void onBtn_PickSpine(object sender, RoutedEventArgs e)
        {
            DataRowView dataRowView = dgWarrior.SelectedItem as DataRowView;

            if (dataRowView != null)
            {
                AvatarPickWindow spinePickWindow = new AvatarPickWindow();
                if(spinePickWindow.ShowDialog() == true)
                {
                    (dgWarrior.SelectedItem as DataRowView)["AvatarType"] = spinePickWindow.PickedAvatarID;
                    previewAvatar(spinePickWindow.PickedAvatarID.ToString());
                }
            }
        }