/// <summary>
 /// Show SaveFileDialog and save template
 /// </summary>
 public TemplateDrawingModel SaveTemplateAs()
 {
     try
     {
         SaveFileDialog d = new SaveFileDialog();
         if (d.ShowDialog() == true)
         {
             var _newPath = d.FileName;
             TemplateDrawingModel _newModel = new TemplateDrawingModel(_newPath, Drawing.Clone() as Drawing);
             _newModel.SaveTemplate(true);
             return(_newModel);
         }
         return(null);
     }
     catch (Exception ex)
     {
         if (ex is FileNotFoundException || ex is IOException)
         {
             return(null);
         }
         throw;
     }
 }
 /// <summary>
 /// Show SaveFileDialog and save template
 /// </summary>
 public TemplateDrawingModel SaveTemplateAs()
 {
     try
     {
         SaveFileDialog d = new SaveFileDialog();
         if (d.ShowDialog() == true)
         {
             var _newPath = d.FileName;
             TemplateDrawingModel _newModel = new TemplateDrawingModel(_newPath, Drawing.Clone() as Drawing);
             _newModel.SaveTemplate(true);
             return _newModel;
         }
         return null;
     }
     catch (Exception ex)
     {
         if (ex is FileNotFoundException || ex is IOException)
             return null;
         throw;
     }
     
 }