Example #1
0
 private void DataBinding()
 {
     for (int i = 0; i < 5; i++)
     {
         PipeRelationItem item = CreateEmptyPipeRelationItem(i);
         PipeRelationItems.Add(item);
     }
     SettingListView.ItemsSource = PipeRelationItems;
 }
Example #2
0
        PipeRelationItem CreateEmptyPipeRelationItem(int index)
        {
            PipeRelationItem pipeItem = new PipeRelationItem();

            pipeItem.ID        = index.ToString();
            pipeItem.Code      = "Null";
            pipeItem.SubSystem = string.Empty;
            pipeItem.Direction = string.Empty;
            return(pipeItem);
        }