public static AddItemsForm GetInstanceOfAddItemsForm() { if (s_Instance == null) { s_Instance = new AddItemsForm(); } return(s_Instance); }
private void addNewButton_Click(object sender, EventArgs e) { if (m_AddItemsForm == null) { m_AddItemsForm = AddItemsForm.GetInstanceOfAddItemsForm(); m_AddItemsForm.AddCurse += AddWithEvent; } m_AddItemsForm.ShowDialog(); m_AddItemsForm.Hide(); }