Ejemplo n.º 1
0
 public static void ChildFormClosed(object sender, FormClosedEventArgs e)
 {
     if (sender is ColourMap)
         _colourMapForm = null;
     else if (sender is MappingListForm)
         _mapListForm = null;
     else if (sender is HelpForm)
         _helpForm = null;
     else if (sender is ColourEditor)
     {
         ColourEditor ce = (ColourEditor)sender ;
         if (editorForms.ContainsKey(ce.Effect))
             editorForms.Remove(ce.Effect);
     }
     _mainForm.RegenerateMenuExternal();
 }
Ejemplo n.º 2
0
        public static void ShowHelpForm()
        {
            if (_helpForm == null)
            {
                _helpForm = new HelpForm();
                Properties.Settings userSettings = new Properties.Settings();
                Point formlocation = userSettings.HelpFormLocation;

                if (formlocation.IsEmpty)
                    PositionHelpForm(false);
                else
                    _helpForm.Location = formlocation;

                _helpForm.Show(_mainForm);
            }
        }