public LocalNameSciNameEditForm(string selectedName, string selectedNameGuid, Identification idType, CatchLocalNamesForm parentForm) { InitializeComponent(); _selectedName = selectedName; _selectedNameGuid = selectedNameGuid; _idType = idType; _parentForm = parentForm; }
public static CatchLocalNamesForm GetInstance(Identification identification, string name) { if (_instance == null) { _instance = new CatchLocalNamesForm(identification, name); } return(_instance); }
public static CatchLocalNamesForm GetInstance(string speciesGuid, Form parentForm) { if (_instance == null) { _instance = new CatchLocalNamesForm(speciesGuid, parentForm); } return(_instance); }
public static CatchLocalNamesForm GetInstance(string nameGuid, Identification idType, Form parentForm) { if (_instance == null) { _instance = new CatchLocalNamesForm(nameGuid, idType, parentForm); } return(_instance); }
public CatchLocalNameSelectedForm(Identification idType, string language, string name, CatchLocalNamesForm parent) { InitializeComponent(); _idType = idType; _language = language; _name = name; _parentForm = parent; _loadFormSettings = true; }
private void OnFormClose(object sender, FormClosedEventArgs e) { _instance = null; if (!_hiddenTree) { global.SaveFormSettings(this); } else { switch (_parentForm.GetType().Name) { case "AllSpeciesForm": ((AllSpeciesForm)_parentForm).CatchhLocalNamesFormClosed(); break; case "MainForm": ((MainForm)_parentForm).CatchhLocalNamesFormClosed(); break; } } }
public static CatchLocalNameSelectedForm GetInstance(Identification idType, string language, string name, CatchLocalNamesForm parent) { if (_instance == null) { _instance = new CatchLocalNameSelectedForm(idType, language, name, parent); } return(_instance); }
public static LocalNameSciNameEditForm GetInstance(string selectedName, string selectedNameGuid, Identification idType, CatchLocalNamesForm parentForm) { if (_instance == null) { _instance = new LocalNameSciNameEditForm(selectedName, selectedNameGuid, idType, parentForm); } return(_instance); }