private void MainForm_Shown(object sender, EventArgs e)
        {
            var settings = Settings.LoadSettings();
            var args     = Environment.GetCommandLineArgs();

            if (args.Length == 2)
            {
                var file       = args[1]; // Second argument because .NET puts program filename to the first
                var uploadForm = new UploadForm(this, settings, false, file);
                uploadForm.Show();
                this.Hide();
            }
        }
        private void MainForm_DragDrop(object sender, DragEventArgs e)
        {
            var settings = Settings.LoadSettings();

            var files = (string[])e.Data.GetData(DataFormats.FileDrop);

            foreach (var file in files)
            {
                var uploadForm = new UploadForm(this, settings, true, file);
                uploadForm.Show();
                this.Hide();
            }
        }