You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
833 B

using Model;
using VeiwModel;
namespace League_of_legendes2.Pages;
public partial class ChampForm : ContentPage
{
ManagerVM managerVM;
public ChapionVM championVM { get; set; }
ChapionVM OldChapionVM;
public ChampForm(ChapionVM chapionVM)
{
this.championVM = chapionVM;
OldChapionVM = chapionVM;
InitializeComponent();
BindingContext = this;
}
void Button_Clicked(System.Object sender, System.EventArgs e)
{
// I want to rn a command that have to exist in ChampManager to update it
// ill need to pass old and new champ and creat a mapper from chamVM to Champ so i can use data manager functions
}
void Editor_TextChanged(System.Object sender, Microsoft.Maui.Controls.TextChangedEventArgs e) => championVM.Bio = e.NewTextValue;
}