コード例 #1
0
        public bool EditColor(Settings.CI ex)
        {
            ColorDialog MyDialog = new ColorDialog();

            MyDialog.AllowFullOpen = true;
            MyDialog.FullOpen      = true;
            MyDialog.Color         = currentsettings.colors[ex];

            if (MyDialog.ShowDialog() == DialogResult.OK)
            {
                currentsettings.colors[ex] = MyDialog.Color;
                SetCustom();
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
 public void UpdatePatch(Panel pn)
 {
     Settings.CI ci = (Settings.CI)(pn.Tag);
     pn.BackColor = currentsettings.colors[ci];
 }