public AccountDetailForm(long id)
 {
     InitializeComponent();
     accountSV = new AccountClient();
     groupSV = new GroupClient();
     orderSV = new OrderClient();
     threadInit.RunWorkerAsync(id);
 }
 public AddAccount()
 {
     InitializeComponent();
     groupSV = new GroupClient();
     groups = groupSV.findAll();
     strGroupNames = new List<string>();
     foreach (Group g in groups)
         strGroupNames.Add(g.Name);
     cbNhom.DataSource = strGroupNames;
 }
示例#3
0
        private async static void test(GroupClient groupClient)
        {
            var res = await groupClient.Get();

            Console.WriteLine();
        }
示例#4
0
        //The Get Groups operation returns a JSON list of all the Groups that the signed in user is a member of.
        //GET https://api.powerbi.com/v1.0/myorg/groups
        //Get Groups operation: https://msdn.microsoft.com/en-US/library/mt243842.aspx
        static async Task <Groups> GetGroups()
        {
            var groupsClient = new GroupClient(pbi);

            return(await groupsClient.Get());
        }