Exemplo n.º 1
0
 void New()
 {
     var form = new DocumentForm()
     {
         MdiParent = this,
     };
     form.Show();
 }
Exemplo n.º 2
0
        void New()
        {
            var form = new DocumentForm()
            {
                MdiParent = this,
            };

            form.Show();
        }
Exemplo n.º 3
0
 internal MainForm(string[] fileNames) : this()
 {
     foreach (var fileName in fileNames)
     {
         var form = new DocumentForm(fileName)
         {
             MdiParent = this,
         };
         form.Show();
     }
 }
Exemplo n.º 4
0
 internal MainForm(string[] fileNames)
     : this()
 {
     foreach (var fileName in fileNames)
     {
         var form = new DocumentForm(fileName)
         {
             MdiParent = this,
         };
         form.Show();
     }
 }
Exemplo n.º 5
0
        void Open()
        {
            var dialog = new OpenFileDialog
            {
                Multiselect = true,
            };

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

            foreach (var fileName in dialog.FileNames)
            {
                var form = new DocumentForm(fileName)
                {
                    MdiParent = this,
                };
                form.Show();
            }
        }
Exemplo n.º 6
0
        void Open()
        {
            var dialog = new OpenFileDialog
            {
                Multiselect = true,
            };

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

            foreach (var fileName in dialog.FileNames)
            {
                var form = new DocumentForm(fileName)
                {
                    MdiParent = this,
                };
                form.Show();
            }
        }