Beispiel #1
0
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var ofd = new OpenFileDialog {
                CheckFileExists = true, Filter = "*.*|*.*", FilterIndex = 0
            };

            if (ofd.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            var r = new RegSizePrompt {
                Filename = ofd.FileName
            };

            if (r.ShowDialog() == DialogResult.OK)
            {
                OpenFile(r.Filename, r.RegSize);
            }
        }
Beispiel #2
0
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var ofd = new OpenFileDialog {CheckFileExists = true, Filter = "*.*|*.*", FilterIndex = 0};

              if (ofd.ShowDialog() != DialogResult.OK) return;

              var r = new RegSizePrompt {Filename = ofd.FileName};
              if (r.ShowDialog() == DialogResult.OK)
              {
            OpenFile(r.Filename, r.RegSize);
              }
        }