Beispiel #1
0
        public static void ShowSingle()
        {
            var p = VsUtils.GetCurrentProject();

            if (p == null) // either warning box no open project or show settings directly (prompting a warning perhaps)
            {
                SettingsForm.ShowSingle("Could not open the strings resource manager due to no project is currently open");
                return;
            }
            if (form == null)
            {
                form             = new ManageStringsForm();
                form.FormClosed += (s, e) => form = null;
                form.Show();
            }
            else
            {
                form.Activate();
            }
        }
 // executed when the menu command is clicked
 void MenuItemCallback(object sender, EventArgs e)
 {
     ManageStringsForm.ShowSingle();
 }