示例#1
0
 /// <summary>
 /// 设置布局
 /// </summary>
 /// <param name="LayoutName"></param>
 public virtual void SetLayout(string LayoutName)
 {
     if (this.layouts.Count > 0)
     {
         if (LayoutName != this.currentLayoutName)
         {
             //先取消布局
             this.CancelLayout();
             ILayout culayout = this.GetLayout(LayoutName);
             if (culayout != null)
             {
                 culayout.CreateLayout(Lemon.GetMainForm());
                 this.currentLayoutName = LayoutName;
             }
             else
             {
                 Lemon.SendMsgWarning("没有找到名称为:" + LayoutName + " 的布局");
             }
         }
     }
 }