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

		// ----------------------------------------------------------------------
		private void FormSettingsCollectingSetting( object sender, SettingCollectorCancelEventArgs e )
		{
			if ( e.Element == optionLevel3 )
			{
				e.Cancel = true;
			}
		} // FormSettingsCollectingSetting
示例#3
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
示例#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
示例#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
示例#6
0
        }         // OnCollectingSetting

        // ----------------------------------------------------------------------
        private void WindowCollectingSetting(object sender, SettingCollectorCancelEventArgs e)
        {
            OnCollectingSetting(e);
        }         // WindowCollectingSetting
示例#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