public override void ViewDidLoad() { string SQLitePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "cryptedDb.db3"); base.ViewDidLoad(); SaveButton.TouchUpInside += (sender, e) => { currentTask.Name = TitleText.Text; currentTask.Notes = NotesText.Text; currentTask.Done = DoneSwitch.On; CryptDelegate.SaveTask(currentTask); UpdateData(SQLitePath); }; DeleteButton.TouchUpInside += (sender, e) => { CryptDelegate.DeleteTask(currentTask); DeleteData(SQLitePath); }; }