You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							41 lines
						
					
					
						
							1.4 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							41 lines
						
					
					
						
							1.4 KiB
						
					
					
				| using CircleSDK.Model; | |
| using CommunityToolkit.Maui.Alerts; | |
| using CommunityToolkit.Maui.Core; | |
| 
 | |
| namespace CircleViewerMaui | |
| { | |
|     public partial class UserGroups : ContentPage | |
|     { | |
|         public List<CircleInfo> Circles; | |
|         public UserGroups() | |
|         { | |
|             InitializeComponent(); | |
|             Circles = new List<CircleInfo>(App.CDP.Circles); | |
| //            Circles = App.CDP.Circles; | |
| //            lvCircles.ItemsSource = App.CDP.Circles; | |
|             circlePicker.ItemsSource = App.CDP.Circles; | |
|             circlePicker.ItemDisplayBinding = new Binding("CircleName"); | |
|         } | |
| 
 | |
|         private async void BnRequestVerfication_OnClicked(object sender, EventArgs e) | |
|         { | |
|             var reply = await App.CDP.ProcessInvite(RequestCode.Text, VerificationCode.Text); | |
|             if (reply.Status.Result.GetValueOrDefault(false)) | |
|             { | |
|                 ShowToast("Failed to process request."); | |
|             } | |
|             else | |
|             { | |
|                 ShowToast("Request has be submitted."); | |
|             } | |
|         } | |
|         async void ShowToast(string text) | |
|         { | |
|             CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(); | |
|             ToastDuration duration = ToastDuration.Short; | |
|             double fontSize = 14; | |
|             var toast = Toast.Make(text, duration, fontSize); | |
|             await toast.Show(cancellationTokenSource.Token); | |
|         } | |
|     } | |
| }
 |