Esempio n. 1
0
        void Menu_View(object sender, EventArgs args)
        {
            IViewParams node = sender as IViewParams;

            if (node == null)
            {
                return;
            }

            var view = new BoardView(UI, Board, node.GetUser(), node.GetProject());

            UI.ShowView(view, node.IsExternal());
        }
Esempio n. 2
0
        void Menu_View(object sender, EventArgs args)
        {
            IViewParams node = sender as IViewParams;

            if (node == null)
            {
                return;
            }

            if (node.GetUser() != Core.UserID)
            {
                return;
            }

            var view = new MailView(this);

            UI.ShowView(view, node.IsExternal());
        }
Esempio n. 3
0
        void Menu_View(object sender, EventArgs args)
        {
            IViewParams node = sender as IViewParams;

            if (node == null)
            {
                return;
            }

            if (node.GetUser() != Core.UserID)
            {
                return;
            }

            // gui creates viewshell, component just passes view object
            var view = new ChatView(UI, Chat, node.GetProject());

            UI.ShowView(view, node.IsExternal());
        }
Esempio n. 4
0
        public void Menu_View(object sender, EventArgs args)
        {
            IViewParams node = sender as IViewParams;

            if (node == null)
            {
                return;
            }

            ulong key = node.GetUser();

            if (Profile.Network.Responsive)
            {
                Profile.Research(key);
            }

            // gui creates viewshell, component just passes view object
            var view = new ProfileView(Profile, key, node.GetProject());

            UI.ShowView(view, node.IsExternal());
        }