Exemple #1
0
        public AppForm()
        {
            InitializeComponent();
            shadow = new ShadowDemo.Dropshadow(this)
            {
                ShadowBlur   = 15,
                ShadowSpread = -7,
                ShadowColor  = Color.FromArgb(143, 0, 0, 0)
            };
            shadow.MouseMove += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseMove);
            shadow.MouseDown += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseDown);
            shadow.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseUp);
            shadow.RefreshShadow();
            shadow.UpdateLocation();
            controlPanel1.changeCaption("Биатлон");
            controlPanel1.wndStateChanged += new EventHandler(updateContainer);
            sortTypeComboBox.Font          = new Font("Microsoft Sans Serif", 10);
            sortTypeComboBox.Anchor        = AnchorStyles.Bottom;
            sortTypeComboBox.Location      = new Point(-1, -1);
            sortTypeComboBox.Size          = new Size(256, 24);
            sortTypeComboBox.Items.Add("В порядке занятых мест");
            sortTypeComboBox.Items.Add("В порядке убывания скорости");
            sortTypeComboBox.Items.Add("В порядке убывания меткости");
            sortTypeComboBox.SelectedIndex         = 0;
            sortTypeComboBox.Enter                += new EventHandler(sortTypeComboBox_DropDownClosed);
            sortTypeComboBox.SelectedIndexChanged += new EventHandler(sortTypeComboBox_DropDownClosed);
            sortTypePan.Controls.Add(sortTypeComboBox);
            sortTypeComboBox_DropDownClosed(this, null);

            foreach (Button but in this.Controls.OfType <Button>())
            {
                but.FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
            }
        }
Exemple #2
0
 public InfoForm()
 {
     InitializeComponent();
     shadow = new ShadowDemo.Dropshadow(this)
     {
         ShadowBlur   = 15,
         ShadowSpread = -7,
         ShadowColor  = Color.FromArgb(127, 0, 0, 0)
     };
     shadow.MouseMove += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseMove);
     shadow.MouseDown += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseDown);
     shadow.RefreshShadow();
     shadow.UpdateLocation();
     controlPanel1.changeCaption("Информация");
 }
        public MenuForm()
        {
            InitializeComponent();
            shadow = new ShadowDemo.Dropshadow(this)
            {
                ShadowBlur   = 15,
                ShadowSpread = -7,
                ShadowColor  = Color.FromArgb(127, 0, 0, 0)
            };
            shadow.MouseMove += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseMove);
            shadow.MouseDown += new System.Windows.Forms.MouseEventHandler(this.shadow_MouseDown);
            shadow.RefreshShadow();
            shadow.UpdateLocation();
            controlPanel1.changeCaption("Главное меню");

            foreach (Button but in this.Controls.OfType <Button>())
            {
                but.FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
            }
        }