void CloseConfirmCallback(ModalDialog.DialogResult result) { switch (result) { case ModalDialog.DialogResult.Yes: if (OwnerNote != null) { OwnerNote.LogNote.SaveLog(); } DoClose(); break; case ModalDialog.DialogResult.No: if (OwnerNote != null) { OwnerNote.LogNote.ReloadLog(); } DoClose(); break; case ModalDialog.DialogResult.Cancel: // do nothing break; } }
void CloseConfirmCallback(ModalDialog.DialogResult result) { switch (result) { case ModalDialog.DialogResult.Yes: SaveNote(); Tab.DoClose(); break; case ModalDialog.DialogResult.No: Tab.DoClose(); break; case ModalDialog.DialogResult.Cancel: // do nothing break; } }
void CloseConfirmCallback(ModalDialog.DialogResult result) { switch (result) { case ModalDialog.DialogResult.Yes: SaveAll(); UnityEngine.Application.Quit(); break; case ModalDialog.DialogResult.No: UnityEngine.Application.Quit(); break; case ModalDialog.DialogResult.Cancel: saveConfirmed_ = false; break; } }