示例#1
0
    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;
        }
    }
示例#2
0
    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;
        }
    }
示例#3
0
    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;
        }
    }