private void SetInfo()
        {
            IniData.CenterDbIP   = tbDBIP.Text;
            IniData.CenterDbPort = tbDBPort.Text;
            IniData.CenterDbID   = tbDBID.Text;
            IniData.CenterDbPW   = tbDBPW.Text;

            IniData.MapPath = tbMapPath.Text;

            IniData.Write();
        }
        private void Main_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                e.Cancel = true;
                if (DevExpress.XtraEditors.XtraMessageBox.Show(this, "종료 하시겠습니까?", "프로그램 종료", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.Yes)
                {
                    Application.Exit();
                }
            }
            else
            {
                IniData.Write();

                if (m_pTimer != null)
                {
                    m_pTimer.Dispose();
                }

                if (MV.LoadData != null)
                {
                    MV.LoadData.Close();
                }

                if (MV.DbManager != null)
                {
                    MV.DbManager.Dispose();
                    MV.DbManager = null;
                }

                if (MV.LogCtrl != null)
                {
                    MV.LogCtrl.Close();
                    MV.LogCtrl = null;
                }

                MV.MapIconInfo.Clear();
                MV.IconInfo.Clear();
            }
        }