コード例 #1
0
ファイル: Cancel.cs プロジェクト: dkv01/withSIX.Desktop
        public async Task Handle(CancelAll request)
        {
            //await new ActionNotification(Guid.Empty, "Aborting", "", request.ClientId, request.RequestId).Raise() .ConfigureAwait(false);
            await _contentInstallation.Abort().ConfigureAwait(false);

            //            await new ActionNotification(Guid.Empty, "Aborted", "", request.ClientId, request.RequestId).Raise().ConfigureAwait(false);
        }
コード例 #2
0
        private void details_Sortee_Load(object sender, EventArgs e)
        {
            id.Text                      = item.Id.ToString();
            barcode.Text                 = item.Barcode1;
            prix.Text                    = item.Prix.ToString();
            desination.Text              = item.Nom;
            description_inter.Text       = item.Description_inter;
            descroption_fabrication.Text = item.Descroption_fabrication;
            codeean.Text                 = item.Code_fabrication;
            date.Text                    = item.Date_entre.ToShortDateString();
            pictureBox1.Image            = byteToImage(item.Img);

            if (NumberOfDialogs == 1)
            {
                CancelAll.Hide();
            }
        }
コード例 #3
0
 public bool Stop(HostControl hostControl)
 {
     try
     {
         Task.Run(() =>
         {
             if (File.Exists("C:\\RikCodeCampDb.db"))
             {
                 File.Delete("C:\\RikCodeCampDb.db");
             }
         });
         _worker.Stop();
         _bootstrapper?.Dispose();
         CancelAll.Cancel();
         return(true);
     }
     catch (Exception exception)
     {
         _logger.Fatal(exception, "Stop failed!!! ");
     }
     return(false);
 }