Beispiel #1
0
        public void GoLinkAction(string controller, string action, object[] parameter)
        {
            var link = this.TabLinks.FirstOrDefault(l => l.Controller == controller && l.Action == action);

            if (link != null)
            {
                link.Parameter = parameter;
            }

            //  Do :如果指向的Link相同则使用刷新
            if (CurrentLink == link)
            {
                CurrentLink = null;
            }

            CurrentLink = link;
        }
Beispiel #2
0
 public void GoLinkAction(string controller, string action)
 {
     CurrentLink = this.TabLinks.FirstOrDefault(l => l.Controller == controller && l.Action == action);
 }