Beispiel #1
0
        private void SetLinks()
        {
            var lastindex = DataListReportAreas.IndexOf(CurrentDataListReportArea);

            if (lastindex != -1)
            {
                List <I_DataListReportArea> listRemove = new List <I_DataListReportArea>();
                var index = 0;
                foreach (var item in DataListReportAreas)
                {
                    if (index > lastindex)
                    {
                        listRemove.Add(item);
                    }
                    index++;
                }
                foreach (var item in listRemove)
                {
                    DataListReportAreas.Remove(item);
                }
            }
            List <DataReportLink> links = new List <DataReportLink>();

            foreach (var item in DataListReportAreas)
            {
                DataReportLink link = new DataReportLink();
                link.Title = item.AreaInitializer.Title.ToString();
                //link.Tooltip item.AreaInitializer
                link.DataReportLinkClicked += (sender, e) => Link_DataListReportLinkClicked(sender, e, item);
                links.Add(link);
            }
            View.ShowLinks(links);
        }
Beispiel #2
0
 private void Button_MouseLeftButtonUp(object sender, MouseButtonEventArgs e, DataReportLink link)
 {
     link.OnClicked();
 }