Ejemplo n.º 1
0
        private void simpleSampleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var simple = new SimpleSample();

            simple.MdiParent = this;
            simple.Show();
        }
Ejemplo n.º 2
0
 private void LoadFiles(ICollection <string> files)
 {
     foreach (var fileName in files)
     {
         try
         {
             var simple = new SimpleSample(Format.Auto, fileName, File.ReadAllText(fileName));
             simple.MdiParent = this;
             simple.Show();
         }
         catch (Exception err)
         {
             MessageBox.Show(this, "Failed to load '" + fileName + "':" + Environment.NewLine + err.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }
 private void LoadFiles(ICollection<string> files)
 {
     foreach (var fileName in files)
     {
         try
         {
             var simple = new SimpleSample(serverAddress, getFormat(fileName), fileName, File.ReadAllText(fileName));
             simple.MdiParent = this;
             simple.Show();
         }
         catch (Exception err)
         {
             MessageBox.Show(this, "Failed to load '" + fileName + "':" + Environment.NewLine + err.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }
 private void simpleSampleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var simple = new SimpleSample(serverAddress);
     simple.MdiParent = this;
     simple.Show();
 }