Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 private void SaveInstructionGuide()
 {
     try
     {
         InstructionGuideFile.SerializeToXmlFile(currentGuide, currentGuideFilePath);
         UpdateTitle();
         isCurrentGuideDirty = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Instruction Set");
     }
 }