Example #1
0
        /// <summary>
        /// IComparable Implementations
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public int CompareTo(object obj)
        {
            PlantGroup a = this;
            PlantGroup b = (PlantGroup)obj;

            return(a.Name.CompareTo(b.Name));
        }
Example #2
0
        private void TvPlantGroups_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs <object> e)
        {
            PlantGroup selectedPG = ((sender as TreeView).SelectedItem) as PlantGroup;

            //if(selectedPG.Children.Count > 0)
            //{
            //    //foreach (PlantGroup pg in selectedPG.Children)
            //    //    pg.IsExpanded = true;
            //}
            oMV.FindChildren(selectedPG.SPID);

            this.dgvPG.ItemsSource = oMV.Children;
            this.dgvPG.Items.Refresh();
        }
Example #3
0
 /// <summary>
 ///  Constructor based on Parent Group
 /// </summary>
 /// <param name="oParent"></param>
 public PlantGroup(PlantGroup oParent)
 {
     this.Parent = oParent;
 }