public static void Run(this Table table, string roleTailoredClient, string serverName, int?serverPort, string serverInstance, string companyName) { var commands = new StringBuilder(); commands.AppendFormat("runtable?table={0}", table.ID); RoleTailoredClient.Run(roleTailoredClient, BuildHyperlink(serverName, serverPort, serverInstance, companyName, commands.ToString())); }
public static void Run(this Page page, string roleTailoredClient, string serverName, int?serverPort, string serverInstance, string companyName, PageMode?mode, bool hideNavigationPage = false, bool fullScreen = false) { var commands = new StringBuilder(); commands.AppendFormat("runpage?page={0}", page.ID); commands.AppendFormatIf(mode.HasValue, "&mode={0}", mode.Value); RoleTailoredClient.Run(roleTailoredClient, BuildHyperlink(serverName, serverPort, serverInstance, companyName, commands.ToString()), hideNavigationPage, fullScreen); }