コード例 #1
0
        public static void Show(string title, string message, IWin32Window owner)
        {
            MetroTextBoxMessage msg = new MetroTextBoxMessage();

            msg.titleText.Text   = title;
            msg.messageText.Text = message;
            msg.ShowDialog(owner);
        }
コード例 #2
0
        public static void Show(string title, string message)
        {
            MetroTextBoxMessage msg = new MetroTextBoxMessage();

            msg.titleText.Text   = title;
            msg.messageText.Text = message;
            msg.ShowDialog();
        }
コード例 #3
0
        public static void Show(string title, string message, MetroMessageTheme theme, IWin32Window owner)
        {
            MetroTextBoxMessage msg = new MetroTextBoxMessage();

            msg.titleText.Text   = title;
            msg.messageText.Text = message;

            switch (theme)
            {
            case MetroMessageTheme.Dark:
                msg.SetThemeDark();
                break;

            case MetroMessageTheme.Light:
                msg.SetThemeLight();
                break;
            }

            msg.ShowDialog(owner);
        }