/// <summary>
 /// 保存
 /// </summary>
 private void Save()
 {
     if (OnSaveEvent != null)
     {
         OnSaveEvent.Invoke();
     }
 }
Exemplo n.º 2
0
 private void OnSaveNewTask(object sender, RoutedEventArgs e)
 {
     if (OnSaveEvent != null)
     {
         OnSaveEvent.Invoke(this, e);
     }
 }
Exemplo n.º 3
0
        public void Save(object sender, RoutedEventArgs e)
        {
            var isValid = ValidateForm();

            if (isValid == false)
            {
                return;
            }

            OnSaveEvent?.Invoke(sender, vm);
            Close();
        }
Exemplo n.º 4
0
 protected override void OnPause()
 {
     OnSaveEvent?.Invoke(this, new EventArgs());
     base.OnPause();
 }
Exemplo n.º 5
0
 public override void OnBackPressed()
 {
     OnSaveEvent?.Invoke(this, new EventArgs());
     base.OnBackPressed();
 }
Exemplo n.º 6
0
 /// <summary>
 /// Saves all changes in Player Data to PlayerPrefs.
 /// On level complete\fail use GameRestart() instead.
 /// </summary>
 public static void SaveGame()
 {
     OnSaveEvent?.Invoke();
 }