Beispiel #1
0
 public MetroMessageBoxControl()
 {
     this.InitializeComponent();
     this._properties = new MetroMessageBoxProperties(this);
     this.StylizeButton(this.metroButton1);
     this.StylizeButton(this.metroButton2);
     this.StylizeButton(this.metroButton3);
     this.metroButton1.Click += new EventHandler(this.button_Click);
     this.metroButton2.Click += new EventHandler(this.button_Click);
     this.metroButton3.Click += new EventHandler(this.button_Click);
     this.metroLocalize       = new MetroLocalize(this);
 }
        public MetroMessageBoxControl()
        {
            InitializeComponent();

            _properties = new MetroMessageBoxProperties(this);

            StylizeButton(metroButton1);
            StylizeButton(metroButton2);
            StylizeButton(metroButton3);

            metroButton1.Click += new EventHandler(button_Click);
            metroButton2.Click += new EventHandler(button_Click);
            metroButton3.Click += new EventHandler(button_Click);
        }
        public MetroMessageBoxControl()
        {
            InitializeComponent();

            _properties = new MetroMessageBoxProperties(this);

            StylizeButton(metroButton1);
            StylizeButton(metroButton2);
            StylizeButton(metroButton3);

            metroButton1.Click += new EventHandler(button_Click);
            metroButton2.Click += new EventHandler(button_Click);
            metroButton3.Click += new EventHandler(button_Click);
        }
Beispiel #4
0
        public MetroMessageBoxControl(MetroFramework.MetroColorStyle mStyle)
        {
            InitializeComponent();
            _style      = MetroPaint.GetStyleColor(mStyle);
            _properties = new MetroMessageBoxProperties(this);

            StylizeButton(metroButton1);
            StylizeButton(metroButton2);
            StylizeButton(metroButton3);

            metroButton1.Click += new EventHandler(button_Click);
            metroButton2.Click += new EventHandler(button_Click);
            metroButton3.Click += new EventHandler(button_Click);
        }
        public MetroMessageBoxControl()
        {
            InitializeComponent();

            _properties = new MetroMessageBoxProperties(this);

            StylizeButton(metroButton1);
            StylizeButton(metroButton2);
            StylizeButton(metroButton3);

            metroButton1.Click += new EventHandler(button_Click);
            metroButton2.Click += new EventHandler(button_Click);
            metroButton3.Click += new EventHandler(button_Click);

            Microsoft.Win32.SystemEvents.DisplaySettingsChanged += SystemEvents_DisplaySettingsChanged;

            InitializeSize();
        }
        public MetroMessageBoxControl()
        {
            InitializeComponent();

            _properties = new MetroMessageBoxProperties(this);

            StylizeButton(metroButton1);
            StylizeButton(metroButton2);
            StylizeButton(metroButton3);

            metroButton1.Click += new EventHandler(button_Click);
            metroButton2.Click += new EventHandler(button_Click);
            metroButton3.Click += new EventHandler(button_Click);

            Microsoft.Win32.SystemEvents.DisplaySettingsChanged += (x, y) =>
            {
                this.WindowState = FormWindowState.Normal;
                InitializeSize();
            };

            InitializeSize();
        }