public void GotoHome() { if (Project.IsDirty) { DialogUtil.Dialog_Yes_No_Cancel( LanguageData.UI_GoHomeDirtyConfirmMsg, DialogUtil.MarkType.Warning, () => { Project.SaveProject(); GoHomeLogic(); }, GoHomeLogic ); } else { DialogUtil.Dialog_OK_Cancel( LanguageData.UI_GoHomeConfirmMsg, DialogUtil.MarkType.Info, GoHomeLogic ); } }
public void ResetSettings() => DialogUtil.Dialog_OK_Cancel(RESET_CONFIRM_KEY, DialogUtil.MarkType.Warning, () => { ResetAllSettings(); RefreshLogic(true); });