예제 #1
0
        private void Upload_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Multiselect      = true;
            ofd.DefaultExt       = "png";
            ofd.Filter           = "Image Files|*.BMP;*.JPG;*.JPEG;*.PNG;*.GIF";
            ofd.InitialDirectory = Properties.Settings.Default.SavePath;
            ofd.RestoreDirectory = true;
            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                StandaloneUploaderForm suf = new StandaloneUploaderForm(ofd.FileNames);
                suf.ShowDialog();
                GC.Collect();
            }
        }
예제 #2
0
 private void Upload_Click(object sender, EventArgs e)
 {
     OpenFileDialog ofd = new OpenFileDialog();
     ofd.Multiselect = true;
     ofd.DefaultExt = "png";
     ofd.Filter = "Image Files|*.BMP;*.JPG;*.JPEG;*.PNG;*.GIF";
     ofd.InitialDirectory = Properties.Settings.Default.SavePath;
     ofd.RestoreDirectory = true;
     if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
         StandaloneUploaderForm suf = new StandaloneUploaderForm(ofd.FileNames);
         suf.ShowDialog();
         GC.Collect();
     }
 }