using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ScottPlot.Demo.WinForms
{
    public partial class DemoListControl : UserControl
    {
        public DemoListControl()
        {
            InitializeComponent();
        }

        private void PlotViewerButton_Click(object sender, EventArgs e) => new WinFormsDemos.PlotViewerDemo().ShowDialog();
        private void MouseTrackerButton_Click(object sender, EventArgs e) => new WinFormsDemos.MouseTracker().ShowDialog();
        private void ToggleVisibilityButton_Click(object sender, EventArgs e) => new WinFormsDemos.ToggleVisibility().ShowDialog();
        private void ConfigButton_Click(object sender, EventArgs e) => new WinFormsDemos.FormsPlotConfig().ShowDialog();
        private void LinkedAxesButton_Click(object sender, EventArgs e) => new WinFormsDemos.LinkedPlots().ShowDialog();
        private void LiveData_Click(object sender, EventArgs e) => new WinFormsDemos.LiveDataUpdate().ShowDialog();
        private void GrowingData_Click(object sender, EventArgs e) => new WinFormsDemos.LiveDataIncoming().ShowDialog();
        private void btnShowOnHover_Click(object sender, EventArgs e) => new WinFormsDemos.ShowValueOnHover2().ShowDialog();
        private void TransparentBackgroundButton_Click(object sender, EventArgs e) => new WinFormsDemos.TransparentBackground().ShowDialog();
        private void RightClickMenuButton_Click(object sender, EventArgs e) => new WinFormsDemos.RightClickMenu().ShowDialog();
        private void ScrollViewerButton_Click(object sender, EventArgs e) => new WinFormsDemos.PlotsInScrollViewer().ShowDialog();
        private void AxisLimitsButton_Click(object sender, EventArgs e) => new WinFormsDemos.AxisLimits().ShowDialog();
        private void btnColormapViewer_Click(object sender, EventArgs e) => new WinFormsDemos.ColormapViewer().ShowDialog();
        private void MultiAxisLockButton_Click(object sender, EventArgs e) => new WinFormsDemos.MultiAxisLock().ShowDialog();
        private void StyleBrowserButton_Click(object sender, EventArgs e) => new WinFormsDemos.Styles().ShowDialog();
        private void SplineInterpolationButton_Click(object sender, EventArgs e) => new WinFormsDemos.SplineInterpolation().ShowDialog();
        private void FinanceDemoButton_Click(object sender, EventArgs e) => new WinFormsDemos.FinanceDemo().ShowDialog();
        private void HittableButton_Click(object sender, EventArgs e) => new WinFormsDemos.HittableDemo().ShowDialog();
        private void DataLoggerButton_Click(object sender, EventArgs e) => new WinFormsDemos.DataLogger().ShowDialog();
        private void DataStreamerButton_Click(object sender, EventArgs e) => new WinFormsDemos.DataStreamer().ShowDialog();
        private void HistogramButton_Click(object sender, EventArgs e) => new WinFormsDemos.HistogramDemo().ShowDialog();
    }
}
