예제 #1
0
 public void BindToListView(ListView listView)
 {
     IDetailStringProvider detailStringProvider = new DetailStringProvider();
     foreach (IProjectMonitor monitor in monitors)
     {
         ListViewItem item = new ProjectStatusListViewItemAdaptor(detailStringProvider).Create(monitor);
         item.Tag = monitor;
         listView.Items.Add(item);
     }
 }
예제 #2
0
        public void BindToListView(ListView listView)
        {
            IDetailStringProvider detailStringProvider = new DetailStringProvider();

            foreach (IProjectMonitor monitor in monitors)
            {
                ListViewItem item = new ProjectStatusListViewItemAdaptor(detailStringProvider).Create(monitor);
                item.Tag = monitor;
                listView.Items.Add(item);
            }
        }
        public void BindToListView(ListView listView)
        {
            IDetailStringProvider detailStringProvider = new DetailStringProvider();

            foreach (IProjectMonitor monitor in projectMonitors)
            {
                ListViewItem item = new ProjectStatusListViewItemAdaptor(detailStringProvider, configuration).Create(monitor);
                item.Tag = monitor;
                listView.Items.Add(item);
            }
            if (listView.Items.Count > 0)
            {
                listView.Items[0].Selected = true;
            }
        }
		public void BindToListView(ListView listView)
		{
			IDetailStringProvider detailStringProvider = new DetailStringProvider();
			foreach (IProjectMonitor monitor in projectMonitors)
			{
				ListViewItem item = new ProjectStatusListViewItemAdaptor(detailStringProvider, configuration).Create(monitor);
				item.Tag = monitor;
				listView.Items.Add(item);
			}
			if (listView.Items.Count > 0) listView.Items[0].Selected = true;
		}
 protected void SetUp()
 {
     monitor = new StubProjectMonitor("name");
     provider = new DetailStringProvider();
 }