상속: System.Windows.Forms.Form
예제 #1
0
        public void NewFileDownload(string url, bool modal)
        {
            if (modal)
            {
                using (NewDownloadForm newDownload = new NewDownloadForm())
                {
                    if (!String.IsNullOrEmpty(url))
                    {
                        newDownload.DownloadLocation = ResourceLocation.FromURL(url);
                    }

                    newDownload.ShowDialog();
                }
            }
            else
            {
                NewDownloadForm newDownload = new NewDownloadForm();

                if (!String.IsNullOrEmpty(url))
                {
                    newDownload.DownloadLocation = ResourceLocation.FromURL(url);
                }

                newDownload.ShowInTaskbar = true;
                newDownload.MinimizeBox   = true;
                newDownload.Show();
                newDownload.Focus();
                newDownload.TopMost = true;
            }
        }
예제 #2
0
        public void NewFileDownload(string url, bool modal)
        {
            if (modal)
            {
                using (NewDownloadForm newDownload = new NewDownloadForm())
                {
                    if (!String.IsNullOrEmpty(url))
                    {
                        newDownload.DownloadLocation = ResourceLocation.FromURL(url);
                    }

                    newDownload.ShowDialog();
                }
            }
            else
            {
                NewDownloadForm newDownload = new NewDownloadForm();

                if (!String.IsNullOrEmpty(url))
                {
                    newDownload.DownloadLocation = ResourceLocation.FromURL(url);
                }

                newDownload.ShowInTaskbar = true;
                newDownload.MinimizeBox = true;
                newDownload.Show();
                newDownload.Focus();
                newDownload.TopMost = true;
            }
        }