private void OpenInstructionGuide() { try { if (string.IsNullOrEmpty(currentGuideFilePath)) { currentGuide = new InstructionGuide(); } else { currentGuide = InstructionGuideFile.DeserializeFromXmlFile(currentGuideFilePath); } currentGuide.DefaultFont = Font; UpdateMenuAndPanelVisibility(); UpdateTitle(); UpdateListOfTextBlocksPanel(); UpdateUIView(); isCurrentGuideDirty = false; } catch (Exception ex) { MessageBox.Show(ex.Message, "Instruction Set"); currentGuide = new InstructionGuide(); } }
private void SaveInstructionGuide() { try { InstructionGuideFile.SerializeToXmlFile(currentGuide, currentGuideFilePath); UpdateTitle(); isCurrentGuideDirty = false; } catch (Exception ex) { MessageBox.Show(ex.Message, "Instruction Set"); } }