예제 #1
0
        /*private void toolStripButton11_Click(object sender, EventArgs e)
         * {
         *  AddWord df = new AddWord();
         *  this.Hide();
         *  df.ShowDialog();
         *  this.Show();
         * }*/

        private void toolStripButton16_Click(object sender, EventArgs e)
        {
            DownloadGal df = new DownloadGal();

            this.Hide();
            df.ShowDialog();
            this.Show();
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)//загрузка галереи на форме makeScan-галерея
        {
            openFileDialog1.DefaultExt       = ".pic";
            openFileDialog1.InitialDirectory = @"..\..\Gallery\";
            openFileDialog1.AddExtension     = true;
            openFileDialog1.FileName         = "";
            openFileDialog1.Filter           = "Файл галереи (*.pic)|*.pic";

            if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                AddPicture.dictGal2.Clear();
                AddPicture.listGal2.Clear();
                DownloadGal.parseGal(openFileDialog1.FileName);
                AddPicture.listGal2.AddRange(AddPicture.dictGal2);
                textBox1.Text = openFileDialog1.FileName;
            }
        }