private void ShowNewForm(object sender, EventArgs e)
        {
            VirtualCardForm childForm = new VirtualCardForm(this);

            childForm.Text = "Window " + childFormNumber++;
            childForm.Show();
        }
Exemple #2
0
 private void OpenFile(object sender, EventArgs e)
 {
     OpenFileDialog openFileDialog = new OpenFileDialog();
     //openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
     openFileDialog.Filter = "Binary Card|*.bsc";
     openFileDialog.DefaultExt = "bsc";
     if (openFileDialog.ShowDialog(this) == DialogResult.OK)
     {
         string FileName = openFileDialog.FileName;
         VirtualCardForm childForm = new VirtualCardForm(this,FileName);
         childForm.Show();
         mru.AddFile(FileName);
     }
 }
        private void OpenFile(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            //openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            openFileDialog.Filter     = "Binary Card|*.bsc";
            openFileDialog.DefaultExt = "bsc";
            if (openFileDialog.ShowDialog(this) == DialogResult.OK)
            {
                string          FileName  = openFileDialog.FileName;
                VirtualCardForm childForm = new VirtualCardForm(this, FileName);
                childForm.Show();
                mru.AddFile(FileName);
            }
        }
Exemple #4
0
 private void ShowNewForm(object sender, EventArgs e)
 {
     VirtualCardForm childForm = new VirtualCardForm(this);
     childForm.Text = "Window " + childFormNumber++;
     childForm.Show();
 }
Exemple #5
0
 void mruClick(int num, string fileName)
 {
     VirtualCardForm childForm = new VirtualCardForm(this, fileName);
     childForm.Show();
 }
        void mruClick(int num, string fileName)
        {
            VirtualCardForm childForm = new VirtualCardForm(this, fileName);

            childForm.Show();
        }