コード例 #1
0
        private void btnStatus_Click(object sender, EventArgs e)
        {
            string s = " >> " + (ToolHelper.HostedApSupported() ? "Sharing supported" : "Sharing not supported") + " << \r\n\r\n";

            s += ToolHelper.Show().Trim();

            MsgBoxForm.Show("Info", s);
        }
コード例 #2
0
        public static DialogResult Show(
            string Title,
            string Message,
            int Buttons = 1)
        {
            var Frm = new MsgBoxForm();
            Frm.Text = Title;
            Frm.txtInfo.Text = Message;

            Frm.btnOk.Visible = ((Buttons & 1) != 0);
            Frm.btnCancel.Visible = ((Buttons & 2) != 0);
            
            return Frm.ShowDialog();
        }
コード例 #3
0
        public static DialogResult Show(
            string Title,
            string Message,
            int Buttons = 1)
        {
            var Frm = new MsgBoxForm();

            Frm.Text         = Title;
            Frm.txtInfo.Text = Message;

            Frm.btnOk.Visible     = ((Buttons & 1) != 0);
            Frm.btnCancel.Visible = ((Buttons & 2) != 0);

            return(Frm.ShowDialog());
        }
コード例 #4
0
 private void btnAbout_Click(object sender, EventArgs e)
 {
     MsgBoxForm.Show(
         "About",
         Consts.STR_TOOL_NAME + "\r\n" +
         "  by Elias Bachaalany <*****@*****.**>\r\n" +
         "  Twitter: @lallouslab\r\n" +
         "\r\n" +
         "Please visit:\r\n" +
         "  @ http://lallousx86.wordpress.com/\r\n" +
         "\r\n" +
         "Powered by: ICSManager Library\r\n" +
         "  @ https://github.com/utapyngo/icsmanager\r\n" +
         "\r\n" +
         "Hosted networks doc:\r\n" +
         "  @ http://msdn.microsoft.com/en-us/library/windows/desktop/dd815243(v=vs.85).aspx\r\n",
         1);
 }