/// <summary> /// 显示活动编辑器 /// </summary> /// <param name="UCEditor"></param> public void ShowEditAction(UserControls.ucBaseEditor UCEditor) { Pane.ActiveContent = this; foreach (Control c in this.Controls) { hiddenPanel.Controls.Add(c); } UCEditor.Dock = DockStyle.Fill; Controls.Add(UCEditor); }
/// <summary> /// 确定或取消活动编辑器 /// </summary> /// <param name="UCEditor"></param> /// <param name="result"></param> public void CloseEditAction(UserControls.ucBaseEditor UCEditor, DialogResult result) { Controls.Remove(UCEditor); foreach (Control c in hiddenPanel.Controls) { Controls.Add(c); } if (ActionEditOK != null) { ActionEditOK(this, new ActionEditEventArgs() { EditAction = UCEditor.Action, Result = result }); } }
public void CloseEditAction(UserControls.ucBaseEditor UCEditor, System.Windows.Forms.DialogResult result) { this.Close(); }
public void ShowEditAction(UserControls.ucBaseEditor UCEditor) { this.Size = UCEditor.Size; this.Controls.Add(UCEditor); }