Exemple #1
0
        public static AddItemsForm GetInstanceOfAddItemsForm()
        {
            if (s_Instance == null)
            {
                s_Instance = new AddItemsForm();
            }

            return(s_Instance);
        }
Exemple #2
0
        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();
        }