Exemple #1
0
        /// <summary>
        /// 新增
        /// </summary>
        private void DoCreatePartition()
        {
            FrmZoneEdit frmPartitionEdit = new FrmZoneEdit();

            frmPartitionEdit.DataSourceChanged += OnCreateChanage;
            frmPartitionEdit.ShowDialog();
        }
Exemple #2
0
        /// <summary>
        /// 编辑
        /// </summary>
        private void ShowEditZone()
        {
            ZoneEntity editEntity = SelectedZoneRow;

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

            FrmZoneEdit frmPartitionEdit = new FrmZoneEdit(editEntity);

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