Beispiel #1
0
        /// <summary>
        /// 新增
        /// </summary>
        private void DoCreateUnit()
        {
            FrmRouteEdit frmunitEdit = new FrmRouteEdit();

            frmunitEdit.DataSourceChanged += OnCreateChanage;
            frmunitEdit.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// 编辑
        /// </summary>
        private void ShowEditUnit()
        {
            RouteEntity editEntity = SelectedUnitRow;

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

            FrmRouteEdit frmunitEdit = new FrmRouteEdit(editEntity);

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