Example #1
0
        private void DoCreatePassageway()
        {
            FrmChannelEdit frmEdit = new FrmChannelEdit();

            frmEdit.DataSourceChanged += OnCreateChanage;
            frmEdit.ShowDialog();
        }
Example #2
0
        /// <summary>
        /// 修改
        /// </summary>
        private void ShowEditPassageway()
        {
            ChannelEntity editEntity = SelectedChannelRow;

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

            FrmChannelEdit frmChannelEdit = new FrmChannelEdit(editEntity);

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