Exemplo n.º 1
0
 //internal Image imgIcon;
 //internal TextBlock tbkHeader;
 //internal TextBlock tbkCompany;
 ////private bool _contentLoaded;
 public CollaborationTreeViewItem(CooperationProject cooperationProject)
 {
     this.InitializeComponent();
     this.cooperationProject        = cooperationProject;
     this.cooperationProjectWrapper = new CooperationProjectWrapper(cooperationProject);
     if (this.cooperationProjectWrapper.IsSender)
     {
         this.imgIcon.Source = this.SetIcon("/IDKin.IM.Windows;component/Resources/Icon/senderIcon.png");
         this.imgIcon.Width  = 16.0;
         this.imgIcon.Height = 16.0;
     }
     else
     {
         this.imgIcon.Source = this.SetIcon("/IDKin.IM.Windows;component/Resources/Icon/receiveIcon.png");
         this.imgIcon.Width  = 16.0;
         this.imgIcon.Height = 16.0;
     }
     base.DataContext = this.cooperationProjectWrapper;
 }
 //internal Image imgIcon;
 //internal TextBlock tbkHeader;
 //internal TextBlock tbkCompany;
 ////private bool _contentLoaded;
 public CollaborationTreeViewItem(CooperationProject cooperationProject)
 {
     this.InitializeComponent();
     this.cooperationProject = cooperationProject;
     this.cooperationProjectWrapper = new CooperationProjectWrapper(cooperationProject);
     if (this.cooperationProjectWrapper.IsSender)
     {
         this.imgIcon.Source = this.SetIcon("/IDKin.IM.Windows;component/Resources/Icon/senderIcon.png");
         this.imgIcon.Width = 16.0;
         this.imgIcon.Height = 16.0;
     }
     else
     {
         this.imgIcon.Source = this.SetIcon("/IDKin.IM.Windows;component/Resources/Icon/receiveIcon.png");
         this.imgIcon.Width = 16.0;
         this.imgIcon.Height = 16.0;
     }
     base.DataContext = this.cooperationProjectWrapper;
 }