@@ -8,7 +8,6 @@ public class ContactsViewModel
88 public ObservableCollection < ContactFormModel > ContactsInfo { get ; set ; }
99 public Command CreateContactsCommand { get ; set ; }
1010 public Command < object > EditContactsCommand { get ; set ; }
11- public Command SaveItemCommand { get ; set ; }
1211 public Command DeleteItemCommand { get ; set ; }
1312 public Command AddItemCommand { get ; set ; }
1413 public Command CancelEditCommand { get ; set ; }
@@ -18,7 +17,6 @@ public ContactsViewModel()
1817 GenerateContacts ( ) ;
1918 CreateContactsCommand = new Command ( OnCreateContacts ) ;
2019 EditContactsCommand = new Command < object > ( OnEditContacts ) ;
21- SaveItemCommand = new Command ( OnSaveItem ) ;
2220 DeleteItemCommand = new Command ( OnDeleteItem ) ;
2321 AddItemCommand = new Command ( OnAddNewItem ) ;
2422 CancelEditCommand = new Command ( OnCancelEdit ) ;
@@ -38,8 +36,8 @@ private void PopulateDB()
3836 if ( item == null )
3937 App . Database . AddContactAsync ( contact ) ;
4038 }
41-
4239 }
40+
4341 private async void OnCancelEdit ( )
4442 {
4543 await App . Current . MainPage . Navigation . PopAsync ( ) ;
@@ -58,11 +56,6 @@ private async void OnDeleteItem()
5856 ContactsInfo . Remove ( SelectedItem ) ;
5957 await App . Current . MainPage . Navigation . PopAsync ( ) ;
6058 }
61-
62- private async void OnSaveItem ( )
63- {
64- }
65-
6659 private void OnEditContacts ( object obj )
6760 {
6861 SelectedItem = ( obj as Syncfusion . Maui . ListView . ItemTappedEventArgs ) . DataItem as ContactFormModel ;
0 commit comments