public void equipVisualEffectBtn_Click(object sender, EventArgs e)
        {
            if (m_equipVisualEffectSearch == null)
            {
                m_equipVisualEffectSearch = new DlgSearch();
                m_equipVisualEffectSearch.configure(Net7.Tables.effects);
            }
            m_equipVisualEffectSearch.ShowDialog();
            String selectedId = m_equipVisualEffectSearch.getSelectedId();

            if (selectedId.Length != 0)
            {
                m_equipVisualEffect.Text = selectedId;
            }
        }
        public static String search(DataType dataType)
        {
            DataConfiguration dataConfiguration;

            if (m_DataConfigurations.TryGetValue(dataType, out dataConfiguration))
            {
                m_dlgSearch.configure(dataConfiguration.m_table);
                m_dlgSearch.ShowDialog();
                return(m_dlgSearch.getSelectedId());
            }
            else
            {
                throw (new Exception("Unable to convert '" + dataType.ToString() + "' into a DataConfiguration.DataType"));
            }
        }
        public FrmMission()
        {
            InitializeComponent();
            this.Text = this.Text + " " + CommonTools.Gui.LoginData.ApplicationVersion;

            Database.DataConfiguration.init();
            m_mission    = new Mission();
            m_dlgEditXml = null;
            m_dlgReport  = null;
            m_dlgSearch  = new CommonTools.Gui.DlgSearch();
            m_dlgSearch.configure(Net7.Tables.missions);
            m_fieldChangesMuted = false;

            configureTabs();
            setState(State.View);
        }