Esempio n. 1
0
        private Button addButton(string name)
        {
            CSDesButton b = new CSDesButton();

            b.DisplayText    = System.IO.Path.GetFileNameWithoutExtension(name);
            b.Text           = System.IO.Path.GetFileNameWithoutExtension(name);
            b.DisplayDesc    = ScreenController.pathSize(name, 45);
            b.TextLocation_Y = 5;
            b.Height         = 45;
            b.Dock           = DockStyle.Top;
            b.Click         += (s, e) => { ClickButton(name); };
            return(b);
        }
Esempio n. 2
0
        private Button addButton(string name)
        {
            Console.WriteLine(name);
            CSDesButton b = new CSDesButton();

            b.DisplayText      = System.IO.Path.GetFileNameWithoutExtension(name);
            b.Text             = System.IO.Path.GetFileNameWithoutExtension(name);
            b.DisplayDesc      = ScreenController.pathSize(name, 36);
            b.Height           = 35;
            b.BZBackColor      = Color.FromArgb(ThemeColor.Default.Top.A, Math.Abs(ThemeColor.Default.Top.R), Math.Abs(ThemeColor.Default.Top.G), Math.Abs(ThemeColor.Default.Top.B));
            b.MouseClickColor1 = Color.FromArgb(ThemeColor.Default.Top.A, Math.Abs(ThemeColor.Default.Top.R - 15), Math.Abs(ThemeColor.Default.Top.G - 15), Math.Abs(ThemeColor.Default.Top.B - 15));
            b.MouseHoverColor  = Color.FromArgb(ThemeColor.Default.Top.A, Math.Abs(ThemeColor.Default.Top.R + 15), Math.Abs(ThemeColor.Default.Top.G + 15), Math.Abs(ThemeColor.Default.Top.B + 15));
            b.Dock             = DockStyle.Top;

            b.Click += (s, e) => { ClickReOpenButton(name); };
            return(b);
        }