Ejemplo n.º 1
0
 private void stringEditorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (stringEditor != null)
     {
         stringEditor.Close();
     }
     else
     {
         stringEditor = new Form {
             Width = 800, Height = 500
         };
         var c = new Common.WindowsForms.StringLocalizationStorageEditor
         {
             StringLocalizationStorage = CurrentMap.StringLocalizationStorage,
             Dock = DockStyle.Fill
         };
         stringEditor.Controls.Add(c);
         stringEditor.FormClosed += new FormClosedEventHandler((o, e2) => { c.SaveStorage(); stringEditor = null; });
         stringEditor.Show();
     }
 }
Ejemplo n.º 2
0
 private void stringEditorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (stringEditor != null)
     {
         stringEditor.Close();
     }
     else
     {
         stringEditor = new Form { Width = 800, Height = 500 };
         var c = new Common.WindowsForms.StringLocalizationStorageEditor
         {
             StringLocalizationStorage = CurrentMap.StringLocalizationStorage,
             Dock = DockStyle.Fill
         };
         stringEditor.Controls.Add(c);
         stringEditor.FormClosed += new FormClosedEventHandler((o, e2) => { c.SaveStorage(); stringEditor = null; });
         stringEditor.Show();
     }
 }