private void MethodButton(MethodInfo methodInfo, object[] args)
        {
            var win = new ConsoleToolWindow(CommandHost, methodInfo.Name);

            var button = CreateButton(methodInfo, args);
            win.StackPanel.Children.Add(button);
            win.Show(Console);
        }
        private void Slider(SliderParams sliderParams)
        {
            var intialValue = GetInitialValue(sliderParams);
            var range = GetRange(intialValue, sliderParams.Minimum, sliderParams.Maximum);

            var toolWindow = new ConsoleToolWindow(CommandHost, sliderParams.PropertyToControl.Name);

            var textBlock = CreateTextBoxShowingCurrentValue(intialValue);
            var slider = CreateSlider(sliderParams.PropertyToControl, sliderParams.AutoCall, intialValue, range, SetTextBoxValue(textBlock));

            toolWindow.StackPanel.Children.Add(slider);
            toolWindow.StackPanel.Children.Add(textBlock);

            toolWindow.Show(Console);
        }