Esempio n. 1
0
        private static void Args_Showing(object sender, XtraMessageShowingArgs e)
        {
            MessageButtonCollection buttons = e.Buttons as MessageButtonCollection;
            SimpleButton            btn     = null;

            foreach (var dialog in (DialogResult[])Enum.GetValues(typeof(DialogResult)))
            {
                btn = buttons[dialog] as SimpleButton;
                if (btn != null)
                {
                    btn.Size      = new Size(Convert.ToInt32(btn.Width * 1.2), Convert.ToInt32(btn.Height * 1.2));
                    btn.Font      = e.Form.Font;
                    btn.KeyPress += OperatorButton_Click;
                }
            }
        }
Esempio n. 2
0
        private void Args_Showing(object sender, XtraMessageShowingArgs e)
        {
            e.Form.Appearance.FontStyleDelta = FontStyle.Bold;
            e.Form.Appearance.Font           = new Font(new FontFamily("맑은 고딕"), 40);

            MessageButtonCollection buttons = e.Buttons as MessageButtonCollection;
            SimpleButton            btn     = buttons[System.Windows.Forms.DialogResult.OK] as SimpleButton;

            btn.Text = "확인";

            if (btn != null)
            {
                btn.Appearance.FontSizeDelta = 20;
                btn.Height -= 200;
                btn.Size    = new Size(200, 100);
            }
        }