Ejemplo n.º 1
0
        public PrivateCenter3(UISharedRTClient sharedClient, Main.OnDiscFrmClosing closing)
        {
            InitializeComponent();

            _closing = closing;
            _sharedClient = sharedClient;

            theBadge.Hide();

            PrivateCenterCtx.DropContext();
            TimingCtx.Drop();

            SetListeners(true);

            Title2 = string.Format("{0} on {1} - private dashboard",
                                  SessionInfo.Get().person.Name,
                                  SessionInfo.Get().discussion.Subject);

            lstTopics.ItemsSource = TopicsOfDiscussion;
            lstPoints.ItemsSource = OwnArgPoints;
            lstOtherUsers.ItemsSource = OtherUsers;
            lstBadgesOfOtherUser.ItemsSource = ArgPointsOfOtherUser;

            lblWelcome.Content = SessionInfo.Get().person.Name;

            _commentDismissalRecognizer = new CommentDismissalRecognizer(bigBadgeScroller, OnDismiss);
            theBadge.CommentDismissalRecognizer = _commentDismissalRecognizer;

            initializing = true;
            DiscussionSelectionChanged();
            initializing = false;
        }
Ejemplo n.º 2
0
        public PrivateCenter3(UISharedRTClient sharedClient, Main.OnDiscFrmClosing closing)
        {
            InitializeComponent();

            _closing      = closing;
            _sharedClient = sharedClient;

            theBadge.Hide();

            PrivateCenterCtx.DropContext();
            TimingCtx.Drop();

            SetListeners(true);

            Title2 = string.Format("{0} on {1} - private dashboard",
                                   SessionInfo.Get().person.Name,
                                   SessionInfo.Get().discussion.Subject);

            lstTopics.ItemsSource            = TopicsOfDiscussion;
            lstPoints.ItemsSource            = OwnArgPoints;
            lstOtherUsers.ItemsSource        = OtherUsers;
            lstBadgesOfOtherUser.ItemsSource = ArgPointsOfOtherUser;

            lblWelcome.Content = SessionInfo.Get().person.Name;

            _commentDismissalRecognizer         = new CommentDismissalRecognizer(bigBadgeScroller, OnDismiss);
            theBadge.CommentDismissalRecognizer = _commentDismissalRecognizer;

            initializing = true;
            DiscussionSelectionChanged();
            initializing = false;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public PersonManagerWnd(UISharedRTClient sharedClient, Main.OnDiscFrmClosing closing)
        {
            InitializeComponent();

            _sharedClient = sharedClient;

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();

            _closing = closing;
            persons  = new ObservableCollection <Person>(PublicBoardCtx.Get().Person);

            DataContext = this;

            this.WindowState = WindowState.Normal;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public PersonManagerWnd(UISharedRTClient sharedClient, Main.OnDiscFrmClosing closing)
        {
            InitializeComponent();

            _sharedClient = sharedClient;

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();

            _closing = closing;
            persons = new ObservableCollection<Person>(PublicBoardCtx.Get().Person);

            DataContext = this;

            this.WindowState = WindowState.Normal;
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public Dashboard(UISharedRTClient sharedClient, Main.OnDiscFrmClosing closing)
        {
            InitializeComponent();

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();

            _closing = closing;

            _sharedClient = sharedClient;

            // background.onInitNewDiscussion += onInitNewDiscussion;

            discussionSelector.Set(PublicBoardCtx.Get().Discussion, "Subject");

            discussionSelector.onSelected += ExistingDiscussionSelected;
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public Dashboard(UISharedRTClient sharedClient, Main.OnDiscFrmClosing closing)
        {
            InitializeComponent();

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();

            _closing = closing;

            _sharedClient = sharedClient;

            // background.onInitNewDiscussion += onInitNewDiscussion;

            discussionSelector.Set(PublicBoardCtx.Get().Discussion, "Subject");

            discussionSelector.onSelected += ExistingDiscussionSelected;
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public ResultViewer(Discussion discussion, Main.OnDiscFrmClosing closing)
        {
            InitializeComponent();

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();

            _closing         = closing;
            this.discussion  = discussion;
            this.DataContext = discussion;

            List <ArgPoint> agreed    = new List <ArgPoint>();
            List <ArgPoint> disagreed = new List <ArgPoint>();
            List <ArgPoint> unsolved  = new List <ArgPoint>();

            lstBxAgreement.ItemsSource    = agreed;
            lstBxDisagreement.ItemsSource = disagreed;
            lstBxUnsolved.ItemsSource     = unsolved;
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public ResultViewer(Discussion discussion, Main.OnDiscFrmClosing closing)
        {
            InitializeComponent();

            // Add handlers for window availability events
            AddWindowAvailabilityHandlers();

            _closing = closing;
            this.discussion = discussion;
            this.DataContext = discussion;

            List<ArgPoint> agreed = new List<ArgPoint>();
            List<ArgPoint> disagreed = new List<ArgPoint>();
            List<ArgPoint> unsolved = new List<ArgPoint>();

            lstBxAgreement.ItemsSource = agreed;
            lstBxDisagreement.ItemsSource = disagreed;
            lstBxUnsolved.ItemsSource = unsolved;
        }
Ejemplo n.º 9
0
        public PublicCenter(UISharedRTClient sharedClient,
                            Main.OnDiscFrmClosing closing,
                            int screenshotTopicId,
                            int screenshotDiscussionId)
        {
            this._discussion = SessionInfo.Get().discussion;
            _sharedClient    = sharedClient;
            _closing         = closing;
            _topicId         = screenshotTopicId;
            _discussionId    = screenshotDiscussionId;

            InitializeComponent();

            if (CurrentTopic != null)
            {
                ExplanationModeMediator.Inst.CurrentTopicId = CurrentTopic.Id;
            }
            else
            {
                ExplanationModeMediator.Inst.CurrentTopicId = null;
            }

            topicNavPanel.topicChanged += topicSelectionChanged;
            topicNavPanel.discussion    = SessionInfo.Get().discussion;
            topicNavPanel.topicAnimate += TopicAnimate;

            btnExplanationMode.DataContext = ExplanationModeMediator.Inst;
            btnLaserPointer.DataContext    = ExplanationModeMediator.Inst;


            localAccount.DataContext = SessionInfo.Get().person;

            _botsViewModel = new BotsViewModel(this);
            //btnEnlargeOpenCommentClose.DataContext = _botsViewModel;
            //btnEnlargeOpenAttachmentClose.DataContext = _botsViewModel;
            //btnSuperBotEnabled.DataContext = _botsViewModel;
            //btnEnlargeOpenSourceClose.DataContext = _botsViewModel;
            btnDEditorBotEnabled.DataContext = _botsViewModel;

            avaBar.Init(_sharedClient);
            avaBar.paletteOwnerChanged += PaletteOwnerChanged;

            SetListeners(_sharedClient, true);

            _zoomSeries = new ZoomSeriesAnalyser(OnSeriesEnd);

            TouchVisualizer.SetShowsVisualizations(laserScene, false);

            if (SessionInfo.Get().person.Name.StartsWith(DaoUtils.MODER_SUBNAME))
            {
                startStopWatch();
            }

            //  scene.Height = 0.6 * System.Windows.SystemParameters.PrimaryScreenHeight;
            //  inkCanv.Height = scene.Height;

            //var scaleTr = Matrix.Identity;
            //scaleTr.Translate(0, -scene.Height / 2);
            //scaleTr.ScaleAt(2,2,
            //                0.5,
            //                0.5);
            //SetWorkingAreaTransform(scaleTr, false, false, false, false);
        }
Ejemplo n.º 10
0
        public PublicCenter(UISharedRTClient sharedClient,
                            Main.OnDiscFrmClosing closing,
                            int screenshotTopicId, 
                            int screenshotDiscussionId)
        {
            this._discussion = SessionInfo.Get().discussion;
            _sharedClient = sharedClient;
            _closing = closing;
            _topicId = screenshotTopicId;
            _discussionId = screenshotDiscussionId;

            InitializeComponent();

            if (CurrentTopic != null)
                ExplanationModeMediator.Inst.CurrentTopicId = CurrentTopic.Id;
            else
                ExplanationModeMediator.Inst.CurrentTopicId = null;

            topicNavPanel.topicChanged += topicSelectionChanged;
            topicNavPanel.discussion = SessionInfo.Get().discussion;
            topicNavPanel.topicAnimate += TopicAnimate;

            btnExplanationMode.DataContext = ExplanationModeMediator.Inst;
            btnLaserPointer.DataContext = ExplanationModeMediator.Inst;
         

            localAccount.DataContext = SessionInfo.Get().person;

            _botsViewModel = new BotsViewModel(this);
            //btnEnlargeOpenCommentClose.DataContext = _botsViewModel;
            //btnEnlargeOpenAttachmentClose.DataContext = _botsViewModel;
            //btnSuperBotEnabled.DataContext = _botsViewModel;
            //btnEnlargeOpenSourceClose.DataContext = _botsViewModel;
            btnDEditorBotEnabled.DataContext = _botsViewModel;

            avaBar.Init(_sharedClient);
            avaBar.paletteOwnerChanged += PaletteOwnerChanged;

            SetListeners(_sharedClient, true);

            _zoomSeries = new ZoomSeriesAnalyser(OnSeriesEnd);

            TouchVisualizer.SetShowsVisualizations(laserScene, false);

            if (SessionInfo.Get().person.Name.StartsWith(DaoUtils.MODER_SUBNAME))
            {
                startStopWatch();
            }

            //  scene.Height = 0.6 * System.Windows.SystemParameters.PrimaryScreenHeight;
            //  inkCanv.Height = scene.Height;

            //var scaleTr = Matrix.Identity;
            //scaleTr.Translate(0, -scene.Height / 2);
            //scaleTr.ScaleAt(2,2, 
            //                0.5, 
            //                0.5);
            //SetWorkingAreaTransform(scaleTr, false, false, false, false);  
        }