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()); }
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()); }
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()); }