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

namespace shiyan12_1_
{
    public partial class Appsetting : Form
    {
        public Appsetting()
        {
            InitializeComponent();
        }

        private void Appsetting_Load(object sender, EventArgs e)
        {

        }

        private void cmb_SelectedIndexChanged(object sender, EventArgs e)
        {
           string colorname= cmb.SelectedItem.ToString();
           pbo.BackColor = Color.FromName(colorname);
        }

        private void hsb_red_Scroll(object sender, ScrollEventArgs e)
        {
            pbo.BackColor = Color.FromArgb(hsb_red.Value, hsb_green.Value, hsb_blue.Value);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            tabc.SelectedTab.BackColor = pbo.BackColor;
            this.BackColor = pbo.BackColor;
        }

        private void cmx_SelectedIndexChanged(object sender, EventArgs e)
        {
            
            
        }

        private void lbx_SelectedIndexChanged(object sender, EventArgs e)
        {
         string  fontname = lbx.SelectedItem.ToString();
           if (large.Checked)
           {
               lbl.Font = new Font(fontname, 14);
           }
           if (small.Checked )
           {
               lbl.Font = new Font(fontname, 10);
           }
          
        }

        private void large_CheckedChanged(object sender, EventArgs e)
        {
            string fontname = lbx.SelectedItem.ToString();
            large.Checked = true;
            small.Checked = false;
            lbl.Font = new Font(fontname, 14);
           

        }

        private void small_CheckedChanged(object sender, EventArgs e)
        {
            string fontname = lbx.SelectedItem.ToString();
            large.Checked = false;
            small.Checked = true;
            lbl.Font = new Font(fontname,10);
        }
    }
}