private void UpdateNextButtonEnabled()
        {
            try
            {
                var isInstalled = _mediaFilters.IsLavFiltersInstalled();

                BtnNext.IsEnabled         = isInstalled;
                BtnInstall.Visibility     = isInstalled ? Visibility.Collapsed : Visibility.Visible;
                PanelInstalled.Visibility = isInstalled ? Visibility.Visible : Visibility.Collapsed;
            }
            catch
            {
                BtnNext.IsEnabled         = false;
                BtnInstall.Visibility     = Visibility.Visible;
                PanelInstalled.Visibility = Visibility.Collapsed;
            }

            if (BtnInstall.Visibility == Visibility.Visible)
            {
                BtnInstall.Focus();
            }
            else
            {
                BtnNext.Focus();
            }
        }
Beispiel #2
0
        public void IsInstalled_OnComplete(EngineRequest request, ICommandReply reply, object result)
        {
            DateTime stop     = DateTime.Now;
            TimeSpan duration = stop - _start;


            if (!(bool)result)
            {
                BtnInstall.Invoke(new MethodInvoker(delegate { BtnInstall.Enabled = true; }));
                WriteLine("Result - OpenDMS.Storage has not been successfully installed on the CouchDB server.  Determined in " + duration.TotalMilliseconds.ToString() + "ms.");
            }
            else
            {
                IsInstalled = true;
                BtnInstall.Invoke(new MethodInvoker(delegate { BtnInstall.Enabled = false; }));
                WriteLine("Result - OpenDMS.Storage is successfully installed on the CouchDB server.  Determined in " + duration.TotalMilliseconds.ToString() + "ms.");
            }
        }
Beispiel #3
0
        private void UpdateNextButtonEnabled()
        {
            try
            {
                var isLavSplitterInstalled = _mediaFilters.IsLavSplitterInstalled();
                var isLavAudioInstalled    = _mediaFilters.IsLavAudioInstalled();
                var isLavVideoInstalled    = _mediaFilters.IsLavVideoInstalled();

                BtnNext.IsEnabled = isLavSplitterInstalled && isLavAudioInstalled && isLavVideoInstalled;

                BtnInstall.Visibility = BtnNext.IsEnabled ? Visibility.Collapsed : Visibility.Visible;

                PanelSplitterInstalled.Visibility = isLavSplitterInstalled ? Visibility.Visible : Visibility.Collapsed;
                PanelAudioInstalled.Visibility    = isLavAudioInstalled ? Visibility.Visible : Visibility.Collapsed;
                PanelVideoInstalled.Visibility    = isLavVideoInstalled ? Visibility.Visible : Visibility.Collapsed;

                PanelSplitterNotInstalled.Visibility = isLavSplitterInstalled ? Visibility.Collapsed : Visibility.Visible;
                PanelAudioNotInstalled.Visibility    = isLavAudioInstalled ? Visibility.Collapsed : Visibility.Visible;
                PanelVideoNotInstalled.Visibility    = isLavVideoInstalled ? Visibility.Collapsed : Visibility.Visible;
            }
            catch
            {
                BtnNext.IsEnabled                 = false;
                BtnInstall.Visibility             = Visibility.Visible;
                PanelSplitterInstalled.Visibility = Visibility.Collapsed;
                PanelAudioInstalled.Visibility    = Visibility.Collapsed;
                PanelVideoInstalled.Visibility    = Visibility.Collapsed;

                PanelSplitterNotInstalled.Visibility = Visibility.Visible;
                PanelAudioNotInstalled.Visibility    = Visibility.Visible;
                PanelVideoNotInstalled.Visibility    = Visibility.Visible;
            }

            if (BtnInstall.Visibility == Visibility.Visible)
            {
                BtnInstall.Focus();
            }
            else
            {
                BtnNext.Focus();
            }
        }