private void RoundSection3()
        {
            roundedButtons4 = new RoundedButtons()
            {
                Btn_CornerRadius   = 8,
                Btn_ShadowWidth    = ShadowSize.Normal,
                MainShadowColor    = Color.Black,
                MainTextColor      = Color.White,
                Btn_ShadowLocation = ShadowPosition.Bottom
            };

            roundedButtons4.PaintButton(button14);
            roundedButtons4.PaintButton(button15);
            roundedButtons4.PaintButton(button16);
        }
Ejemplo n.º 2
0
        private void Form4_Load(object sender, EventArgs e)
        {
            MyRoundedButtons1 = new RoundedButtons()
            {
                Btn_ShadowLocation = ShadowPosition.BottomRight,
                MainLineColor      = Color.LightSteelBlue,
                MainShadowColor    = Color.DarkBlue,
                Btn_CornerRadius   = 7,
                Btn_ShadowWidth    = ShadowSize.Thin,
                HighlightLineColor = Color.DarkBlue
            };
            MyRoundedButtons1.PaintButton(button1);

            Text           = Program.MyTitle;
            Size           = Settings.WinSize;
            Location       = Settings.WinLoc;
            textBox4.Text  = Settings.Form4Fields[0];
            textBox5.Text  = Settings.Form4Fields[1];
            textBox6.Text  = Settings.Form4Fields[2];
            textBox7.Text  = Settings.Form4Fields[3];
            textBox8.Text  = Settings.Form4Fields[4];
            textBox9.Text  = Settings.Form4Fields[5];
            textBox10.Text = Settings.Form4Fields[6];
            textBox11.Text = Settings.Form4Fields[7];

            SetMenuItems();
            SetGUIandHotkeys();

            Actions.HandleFileOpen(Settings.SavedList.Replace("~`", Environment.NewLine));
        }
        private void RoundSection5()
        {
            roundedButtons5 = new RoundedButtons()
            {
                Btn_LineWidth      = 0,
                Btn_CornerRadius   = 10,
                Btn_ShadowWidth    = ShadowSize.Thin,
                MainShadowColor    = Color.Gray,
                Btn_ShadowLocation = ShadowPosition.BottomRight
            };

            foreach (dynamic parent in new List <dynamic>()
            {
                panel6
            })
            {
                foreach (object o in parent.Controls)
                {
                    if (o is Button b)
                    {
                        roundedButtons5.PaintButton(b);
                    }
                }
            }
        }
        private void RoundSection2()
        {
            roundedButtons2 = new RoundedButtons();
            foreach (object o in panel3.Controls)
            {
                if (o is Button b)
                {
                    roundedButtons2.PaintButton(b);
                }
            }

            roundedButtons3 = new RoundedButtons()
            {
                Btn_CornerRadius   = 10,
                Btn_ShadowWidth    = ShadowSize.Thin,
                Btn_ShadowLocation = ShadowPosition.TopLeft
            };

            foreach (object o in panel4.Controls)
            {
                if (o is Button b)
                {
                    roundedButtons3.PaintButton(b);
                }
            }
        }
Ejemplo n.º 5
0
        private void Form3_Load(object sender, EventArgs e)
        {
            MyRoundedButtons1 = new RoundedButtons()
            {
                Btn_ShadowLocation = ShadowPosition.BottomRight,
                MainLineColor      = Color.LightSteelBlue,
                MainShadowColor    = Color.DarkBlue,
                Btn_CornerRadius   = 7,
                Btn_ShadowWidth    = ShadowSize.Thin,
                HighlightLineColor = Color.DarkBlue
            };
            MyRoundedButtons1.PaintButton(button6);

            MyRoundedButtons2 = new RoundedButtons()
            {
                Btn_ShadowLocation = ShadowPosition.BottomRight,
                MainShadowColor    = Color.LightSteelBlue,
                Btn_CornerRadius   = 9,
                Btn_ShadowWidth    = ShadowSize.None,
                Btn_TextPadding    = new Padding(0, 0, 0, 5),
                Btn_LineWidth      = 0,
                MainTextColor      = Color.Black,
                HighlightBGColor   = Color.LightSteelBlue
            };
            MyRoundedButtons2.PaintButton(button1);
            MyRoundedButtons2.PaintButton(button2);
            MyRoundedButtons2.PaintButton(button3);
            MyRoundedButtons2.PaintButton(button4);
            MyRoundedButtons2.PaintButton(button5);

            Text          = Program.MyTitle;
            Size          = Settings.WinSize;
            Location      = Settings.WinLoc;
            textBox1.Text = Settings.Form3Fields[0];
            textBox2.Text = Settings.Form3Fields[1];
            textBox3.Text = Settings.Form3Fields[2];
            textBox4.Text = Settings.Form3Fields[3];
            textBox5.Text = Settings.Form3Fields[4];

            SetMenuItems();
            SetGUIandHotkeys();

            Actions.HandleFileOpen(Settings.SavedList.Replace("~`", Environment.NewLine));
        }
        private void RoundSection1()
        {
            roundedButtons1 = new RoundedButtons()
            {
                Btn_CornerRadius = 6,
                Btn_ShadowWidth  = ShadowSize.Thin
            };

            foreach (dynamic parent in new List <dynamic>()
            {
                panel1, panel2
            })
            {
                foreach (object o in parent.Controls)
                {
                    if (o is Button b)
                    {
                        roundedButtons1.PaintButton(b);
                    }
                }
            }
        }