public static GearVarNameUsageInventoryForm GetInstance(GearInventoryForm parentForm) { if (_instance == null) { _instance = new GearVarNameUsageInventoryForm(parentForm); } return(_instance); }
private void OnFormClosed(object sender, FormClosedEventArgs e) { _instance = null; global.SaveFormSettings(this); }