private async Task CancelAsync(object arg) { await Task.FromResult(0); OnCancel?.Invoke(); OnCloseWindow?.Invoke(); }
async void Command_Accept_Click(string source) { try { // TODO: implement upload image //await UploadPhotoToAzureStorage(ImageStream); } catch //(Exception ex) { //Logger.I.LogError(ex, "An error occured in ImageCrop_OnImageAccepted"); } OnCloseWindow?.Invoke(this, null); this.IsAcceptVisible = false; ImageSource = Xamarin.Forms.ImageSource.FromFile("userprofile.png"); }
private async Task AcceptAsync(object arg) { await OnAcceptAsync?.Invoke(Book); OnCloseWindow?.Invoke(); }
private void RaiseOnCloseWindow() { OnCloseWindow?.Invoke(this, new EventArgs()); }
/// <summary> /// 关闭窗口 /// </summary> public void CloseWindow() { OnCloseWindow?.Invoke(this); }
void Command_HideChoosePictureMenu_Click() { OnCloseWindow?.Invoke(this, null); }