private bool OnSave(DocumentHandler docHandler, string fileName, SaveState_e state) { if (state == SaveState_e.PreSave) { if (docHandler.Model == m_App.IActiveDoc2) { InvokeTrigger(Triggers_e.DocumentSave); } } return(true); }
private bool OnSave(DocumentHandler docHandler, string fileName, SaveState_e type) { return(App.SendMsgToUser2($"'{docHandler.Model.GetTitle()}' saving ({type}). Cancel?", (int)swMessageBoxIcon_e.swMbQuestion, (int)swMessageBoxBtn_e.swMbYesNo) == (int)swMessageBoxResult_e.swMbHitNo); }