Host.VM.AutoClickViewModel.OnInitialize C# (CSharp) Method

OnInitialize() protected method

protected OnInitialize ( ) : void
return void
        protected override void OnInitialize()
        {
            base.OnInitialize();

            var g = this.AddActivableSection( R.AutoClickSectionName.ToLower(), R.AutoClickConfig );

            ConfigItemMillisecondProperty p2 = new ConfigItemMillisecondProperty( ConfigManager, this, CK.Reflection.ReflectionHelper.GetPropertyInfo( this, h => h.TimeBeforeCountDownStarts ) );
            p2.DisplayName = R.AutoClickTimeBeforeCountDownStarts;
            g.Items.Add( p2 );

            ConfigItemMillisecondProperty p = new ConfigItemMillisecondProperty( ConfigManager, this, CK.Reflection.ReflectionHelper.GetPropertyInfo( this, h => h.CountDownDuration ) );
            p.DisplayName = R.AutoClickCountDownDuration;
            g.Items.Add( p );

            g.AddProperty( R.AutoClickShowMousePanelOption, this, h => ShowMouseIndicatorOption );
        }