void View_FeatureSelected(object sender, DataTypes.DataEventArgs <FeatureNames> e)
        {
            ServerSettingsDialog dlg = sender as ServerSettingsDialog;

            if (dlg != null)
            {
                if (!Shell.ServerAddins.IsFeatureValid(e.Data))
                {
                    dlg.DisableFeature(e.Data);
                }
            }
        }
        public void RunView(ServerSettingsDialog view)
        {
            View = view;

            EventBroker.Instance.Subscribe <DisplayFeatureEventArgs> (OnDisplayFeature);

            ServerState.Instance.ServerServiceChanged += new EventHandler(Instance_ServerServiceChanged);
            ServerState.Instance.LoggingStateChanged  += new EventHandler(Instance_LoggingStateChanged);

            CreateViews( );

            View.CanApply  = false;
            View.CanCancel = true;

            View.ConfirmChanges += new EventHandler(View_ConfirmChanges);
            View.CancelChanges  += new EventHandler(View_CancelChanges);
            View.ApplyChanges   += new EventHandler(View_ConfirmChanges);
#if (LEADTOOLS_V19_OR_LATER_MEDICAL_VERIFY_ADDINS) || (LEADTOOLS_V19_OR_LATER)
            View.FeatureSelected += new EventHandler <DataTypes.DataEventArgs <FeatureNames> >(View_FeatureSelected);
#endif
        }