Skip to content

Instantly share code, notes, and snippets.

@Sa1Gur
Created August 20, 2019 00:00
Show Gist options
  • Save Sa1Gur/cc4c64ff6ec4b60ab0f80f5d693287dc to your computer and use it in GitHub Desktop.
Save Sa1Gur/cc4c64ff6ec4b60ab0f80f5d693287dc to your computer and use it in GitHub Desktop.
...
namespace In2TeamsSplitter.Models
{
[Table("teammates")]
public class TeamMateItem : INotifyPropertyChanged
{
...
public Command RemoveCommand => new Command(Remove);
private void Remove()
{
TeamMatesViewModel.Instance.Value.conn.Delete(this);
TeamMatesViewModel.Instance.Value.TeamMateSquad.Remove(this);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment