Exemplo n.º 1
0
        public async Task UploadFile()
        {
            if (DbcFile == null)
            {
                return;
            }
            if (CanUpload)
            {
                CanUpload = false;
                await CANDatabaseService.AddFile(DbcFile);

                CanUpload = true;

                DbcFile      = null;
                Label        = null;
                DoubleBuffer = !DoubleBuffer; // Fixes an issue when last uploaded file won't upload again
            }
        }
Exemplo n.º 2
0
        public async Task RefreshCANDatabases()
        {
            CANDatabases = await CANDatabaseService.GetAll();

            StateHasChanged();
        }