Пример #1
0
        private async Task CancelAsync(object arg)
        {
            await Task.FromResult(0);

            OnCancel?.Invoke();
            OnCloseWindow?.Invoke();
        }
Пример #2
0
 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");
 }
Пример #3
0
        private async Task AcceptAsync(object arg)
        {
            await OnAcceptAsync?.Invoke(Book);

            OnCloseWindow?.Invoke();
        }
 private void FrmTopTen_FormClosed(object sender, FormClosedEventArgs e)
 {
     CloseAction?.Invoke();
 }
Пример #5
0
 private void RaiseOnCloseWindow()
 {
     OnCloseWindow?.Invoke(this, new EventArgs());
 }
Пример #6
0
 /// <summary>
 /// 关闭窗口
 /// </summary>
 public void CloseWindow()
 {
     OnCloseWindow?.Invoke(this);
 }
Пример #7
0
 void Command_HideChoosePictureMenu_Click()
 {
     OnCloseWindow?.Invoke(this, null);
 }