Пример #1
0
        private void ShowUpdatesWindow(UpdatesInfo updatesInfo)
        {
            this.UpdateUI(() =>
            {
                if (updatesInfo.Release != null)
                {
                    using (var updatesWindow = new UpdatesAvailableWindow(updatesInfo.Release))
                    {
                        updatesWindow.ShowDialog();
                        return;
                    }
                }
                if (updatesInfo.Definitions != null && updatesInfo.Definitions.Any())
                {
                    using (var updatesWindow = new DefinitionUpdatesAvailableWindow(updatesInfo.Definitions))
                    {
                        if (updatesWindow.ShowDialog() == DialogResult.Cancel)
                        {
                            return;
                        }

                        m_definitions = m_firmwareDefinitionStorage.LoadAll().ToList();
                        m_updatesManager.SetupInitialData(Consts.ApplicationVersion, m_definitions);
                        InitializeOpenWithSpecifiedDefinitionMenu();
                    }
                }
            });
        }
Пример #2
0
 private void ShowUpdatesWindow(ReleaseInfo releaseInfo)
 {
     this.UpdateUI(() =>
     {
         using (var updatesWindow = new UpdatesAvailableWindow(releaseInfo))
         {
             updatesWindow.ShowDialog();
         }
     });
 }
Пример #3
0
 private void ShowUpdatesWindow(ReleaseInfo releaseInfo)
 {
     this.UpdateUI(() =>
     {
         using (var updatesWindow = new UpdatesAvailableWindow(releaseInfo))
         {
             updatesWindow.ShowDialog();
         }
     });
 }