Beispiel #1
0
 private void FormSettingsCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
 {
     if (e.Element == optionLevel3)
     {
         e.Cancel = true;
     }
 }
Beispiel #2
0
		} // CollectedSettingsForm

		// ----------------------------------------------------------------------
		private void FormSettingsCollectingSetting( object sender, SettingCollectorCancelEventArgs e )
		{
			if ( e.Element == optionLevel3 )
			{
				e.Cancel = true;
			}
		} // FormSettingsCollectingSetting
        // ----------------------------------------------------------------------
        protected virtual bool OnCollectingSetting(object element)
        {
            if (CollectingSetting != null)
            {
                SettingCollectorCancelEventArgs e = new SettingCollectorCancelEventArgs(element);
                CollectingSetting(this, e);
                return(e.Cancel == false);
            }

            return(true);
        } // OnCollectingSetting
Beispiel #4
0
        // ----------------------------------------------------------------------
        protected virtual bool OnCollectingSetting(object element)
        {
            if (CollectingSetting != null)
            {
                SettingCollectorCancelEventArgs e = new SettingCollectorCancelEventArgs(element);
                CollectingSetting(this, e);
                return e.Cancel == false;
            }

            return true;
        } // OnCollectingSetting
Beispiel #5
0
        }         // DerivedSettingsWindow

        // ----------------------------------------------------------------------
        protected override void OnCollectingSetting(SettingCollectorCancelEventArgs e)
        {
            FrameworkElement frameworkElement = e.Element as FrameworkElement;

            if (frameworkElement == null)
            {
                return;
            }

            // exclusion rules
            if (Option3.Name.Equals(frameworkElement.Name) || Edit3.Name.Equals(frameworkElement.Name))
            {
                e.Cancel = true;
            }
        } // OnCollectingSetting
Beispiel #6
0
        }         // OnCollectingSetting

        // ----------------------------------------------------------------------
        private void WindowCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
        {
            OnCollectingSetting(e);
        }         // WindowCollectingSetting
Beispiel #7
0
        }         // WindowSettings

        // ----------------------------------------------------------------------
        protected virtual void OnCollectingSetting(SettingCollectorCancelEventArgs e)
        {
        }         // OnCollectingSetting
		} // UserSettingLoading

		// ----------------------------------------------------------------------
		private void SettingCollectorsCollectingSetting( object sender, SettingCollectorCancelEventArgs e )
		{
			OnCollectingSetting( e );
		} // SettingCollectorsCollectingSetting
		} // SaveSettings

		// ----------------------------------------------------------------------
		protected virtual void OnCollectingSetting( SettingCollectorCancelEventArgs e )
		{
			if ( CollectingSetting != null )
			{
				CollectingSetting( this, e );
			}
		} // OnCollectingSetting
		} // Collect

		// ----------------------------------------------------------------------
		private void SettingCollectingSetting( object sender, SettingCollectorCancelEventArgs e )
		{
			if ( CollectingSetting != null )
			{
				CollectingSetting( this, e );
			}
		} // SettingCollectingSetting