Example #1
0
 /// <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);
 }
Example #2
0
 /// <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
         });
     }
 }
Example #3
0
 public void CloseEditAction(UserControls.ucBaseEditor UCEditor, System.Windows.Forms.DialogResult result)
 {
     this.Close();
 }
Example #4
0
 public void ShowEditAction(UserControls.ucBaseEditor UCEditor)
 {
     this.Size = UCEditor.Size;
     this.Controls.Add(UCEditor);
 }