/// <summary>
        /// 新增
        /// </summary>
        private void DoCreateLocation()
        {
            FrmLocationEditType_C frmLocationEdit = new FrmLocationEditType_C();

            frmLocationEdit.DataSourceChanged += OnCreateChanage;
            frmLocationEdit.ShowDialog();
        }
        /// <summary>
        /// 编辑
        /// </summary>
        private void ShowEditLocation()
        {
            LocationEntity editEntity = SelectedLocationRow;

            if (editEntity == null)
            {
                MsgBox.Warn("没有要修改的数据。");
                return;
            }

            FrmLocationEditType_C frmLocationEdit = new FrmLocationEditType_C(editEntity);

            frmLocationEdit.DataSourceChanged += OnEditChanage;
            frmLocationEdit.ShowDialog();
        }