/// <summary> /// 保存 /// </summary> private void Save() { if (OnSaveEvent != null) { OnSaveEvent.Invoke(); } }
private void OnSaveNewTask(object sender, RoutedEventArgs e) { if (OnSaveEvent != null) { OnSaveEvent.Invoke(this, e); } }
public void Save(object sender, RoutedEventArgs e) { var isValid = ValidateForm(); if (isValid == false) { return; } OnSaveEvent?.Invoke(sender, vm); Close(); }
protected override void OnPause() { OnSaveEvent?.Invoke(this, new EventArgs()); base.OnPause(); }
public override void OnBackPressed() { OnSaveEvent?.Invoke(this, new EventArgs()); base.OnBackPressed(); }
/// <summary> /// Saves all changes in Player Data to PlayerPrefs. /// On level complete\fail use GameRestart() instead. /// </summary> public static void SaveGame() { OnSaveEvent?.Invoke(); }