Пример #1
0
        public static bool fshow(string msg)
        {
            if (msg_box == null)
            {
                msg_box = new josi_msg_box();
            }
            msg_box.rich_msg.Text = msg;
            msg_box.ShowDialog();

            return last_relust;
            //msg_box.Text = caption;
        }
Пример #2
0
        public static bool fshow(string msg, string caption)
        {
            if (msg_box == null)
            {
                msg_box = new josi_msg_box();
            }
            msg_box.rich_msg.Text = msg;
            msg_box.Text = caption;

            msg_box.rich_msg.Height = msg_box.rich_msg.GetPositionFromCharIndex(msg_box.rich_msg.TextLength - 1).Y;

            msg_box.ShowDialog();

            return last_relust;
        }
Пример #3
0
        public static bool fshow(string msg, string btn_ok_text, string btn_cancel_text)
        {
            if (msg_box == null)
            {
                msg_box = new josi_msg_box();
            }
            msg_box.rich_msg.Text = msg;
            //msg_box.Text = caption;

            msg_box.btn_ok.Text = btn_ok_text;
            msg_box.btn_cancel.Text = btn_cancel_text;

            msg_box.rich_msg.Height = msg_box.rich_msg.GetPositionFromCharIndex(msg_box.rich_msg.TextLength).Y+100;

            msg_box.Height = msg_box.rich_msg.GetPositionFromCharIndex(msg_box.rich_msg.TextLength - 1).Y;

            msg_box.Refresh();

            msg_box.ShowDialog();

            return last_relust;
        }