Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupWidgetPlugin"/> class.
 /// </summary>
 public GroupWidgetPlugin()
 {
     _viewModel          = new GroupStatusViewModel();
     _groupWidgetControl = new GroupWidgetControl {
         DataContext = _viewModel
     };
 }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="groupWidgetControl"></param>
        public GroupManager([NotNull] GroupWidgetControl groupWidgetControl)
        {
            Assert.ArgumentNotNull(groupWidgetControl, "groupWidgetControl");

            _groupWidget  = groupWidgetControl;
            _groupHolders = new Dictionary <string, GroupHolder>();
        }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GroupStatusUnit"/> class.
        /// </summary>
        /// <param name="messageConveyor">The message conveyor.</param>
        /// <param name="groupWidgetControl">The group widget control.</param>
        /// <param name="groupStatusViewModel">The group status view model.</param>
        public GroupStatusUnit([NotNull] MessageConveyor messageConveyor, [NotNull] GroupWidgetControl groupWidgetControl, [NotNull] GroupStatusViewModel groupStatusViewModel)
            : base(messageConveyor)
        {
            Assert.ArgumentNotNull(messageConveyor, "messageConveyor");
            Assert.ArgumentNotNull(groupWidgetControl, "groupWidgetControl");
            Assert.ArgumentNotNull(groupStatusViewModel, "groupStatusViewModel");

            _groupWidgetControl   = groupWidgetControl;
            _groupStatusViewModel = groupStatusViewModel;
        }