Esempio n. 1
0
 void relaeaseButtonToolClick(object sender, ToolClickEventArgs e)
 {
     if (((StateButtonTool)e.Tool).Checked)
     {
         var form = new ReleaseNoteUI();
         form.ShowDialog();
         form.Dispose();
     }
 }
Esempio n. 2
0
        private void mdiSferaLoad(object sender, EventArgs e)
        {
            backgroundWorkerLoadDati.RunWorkerAsync();

            // Load Layout
            getFormLayoutService().LoadControlLayout(ultraDockManager1, null, this, null);

            // ==============================================================================
            // Release Notes
            // ==============================================================================
            if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
            {
                if (System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun)
                {
                    try
                    {
                        var form = new ReleaseNoteUI();
                        if (!form.IsDisposed)
                            form.Show();
                    }
                    catch (ObjectDisposedException ex)
                    {
                        _log.ErrorFormat("Errore inaspettato nella visualizzazione delle ultime release - {0} - azienda:{1}", ex, Utility.GetMethodDescription(), Login.Instance.CurrentLogin().Azienda);
                    }
                    catch (Exception ex)
                    {
                        _log.ErrorFormat("Errore inaspettato nella visualizzazione delle ultime release - {0} - azienda:{1}", ex, Utility.GetMethodDescription(), Login.Instance.CurrentLogin().Azienda);                        
                        throw;
                    }
                }
            }
        }