/// <summary> /// Abre el formulario para personalizar los templates /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void customizeTemplateToolStripMenuItem_Click(object sender, EventArgs e) { FrmTemplateSetting _FrmTemplateSetting = new FrmTemplateSetting(); _FrmTemplateSetting.PropertyChange += new PropertyChangeHandler(_FrmTemplateSetting_PropertyChange); if (!String.IsNullOrEmpty(_LastAccessStorage.LastAccess.LastTemplateSettingFileName)) _FrmTemplateSetting.FullFileName = _LastAccessStorage.LastAccess.LastTemplateSettingFileName; _TemplateSettingObject = _FrmTemplateSetting.TemplateSettingObject.Clone(); _FrmTemplateSetting.Show(dockPanel1, Fwk.Controls.Win32.DockState.Document); }
/// <summary> /// Carga TemplateSettingObject sin mostrar el formulario FrmTemplateSetting /// Esto se hace al iniciar la aplicacion para cargar el ultimo setteing del usuario. /// </summary> void InitTemplateSettingObject() { FrmTemplateSetting _FrmTemplateSetting = new FrmTemplateSetting(); if (!String.IsNullOrEmpty(_LastAccessStorage.LastAccess.LastTemplateSettingFileName)) { _FrmTemplateSetting.FullFileName = _LastAccessStorage.LastAccess.LastTemplateSettingFileName; _FrmTemplateSetting.Refresh(); } _TemplateSettingObject = _FrmTemplateSetting.TemplateSettingObject.Clone(); _FrmTemplateSetting.Close(); _FrmTemplateSetting.Dispose(); }
/// <summary> /// Abre el formulario para personalizar los templates /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void customizeTemplateToolStripMenuItem_Click(object sender, EventArgs e) { FrmTemplateSetting _FrmTemplateSetting = new FrmTemplateSetting(); _FrmTemplateSetting.PropertyChange += new PropertyChangeHandler(_FrmTemplateSetting_PropertyChange); if (!String.IsNullOrEmpty(_LastAccessStorage.LastAccess.LastTemplateSettingFileName)) { _FrmTemplateSetting.FullFileName = _LastAccessStorage.LastAccess.LastTemplateSettingFileName; } _TemplateSettingObject = _FrmTemplateSetting.TemplateSettingObject.Clone(); _FrmTemplateSetting.Show(dockPanel1, Fwk.Controls.Win32.DockState.Document); }