Ejemplo n.º 1
0
 /// <summary>
 /// Show About dialog.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AboutMnu_Click(object sender, EventArgs e)
 {
     try
     {
         GXAboutForm lic = new GXAboutForm();
         lic.Title = GXDLMSDirector.Properties.Resources.AboutGXDLMSDirectorTxt;
         lic.Application = GXDLMSDirector.Properties.Resources.GXDLMSDirectorTxt;
         lic.AboutText = GXDLMSDirector.Properties.Resources.ForMoreInfoTxt;
         lic.CopyrightText = GXDLMSDirector.Properties.Resources.CopyrightTxt;
         //Get version info
         System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
         System.Diagnostics.FileVersionInfo info = System.Diagnostics.FileVersionInfo.GetVersionInfo(asm.Location);
         lic.ShowAbout(this, info.FileVersion);
     }
     catch (Exception Ex)
     {
         GXDLMS.Common.Error.ShowError(this, Ex);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// About dialog.
 /// </summary>
 private void AboutMenu_Click(object sender, EventArgs e)
 {
     try
     {
         Gurux.Common.GXAboutForm lic = new Gurux.Common.GXAboutForm();
         lic.Title = Gurux.DeviceSuite.Properties.Resources.AboutGuruxDeviceSuiteTxt;
         lic.Application = Gurux.DeviceSuite.Properties.Resources.GuruxDeviceSuiteTxt;
         lic.AboutText = Gurux.DeviceSuite.Properties.Resources.ForMoreInfoTxt;
         lic.CopyrightText = Gurux.DeviceSuite.Properties.Resources.CopyrightTxt;
         //Get version info
         System.Reflection.Assembly ass = System.Reflection.Assembly.GetExecutingAssembly();
         System.Diagnostics.FileVersionInfo info = System.Diagnostics.FileVersionInfo.GetVersionInfo(ass.Location);
         lic.ShowAbout(this, info.FileVersion);
     }
     catch (Exception Ex)
     {
         GXCommon.ShowError(Ex);
     }
 }