protected void OnSelectedSheetChanged(string value) { _selectedSheet = value; ExcelService.SetCurrentSheet(_selectedSheet); SelectedSheetChanged.InvokeAsync(value).Wait(); PromoDataListChanged.InvokeAsync(PromoDataList).Wait(); jsRuntime.InvokeVoidAsync("fixChartLabels"); }
protected void OnSelectedSheetChanged(SheetHandler sheetHandler) { if (_suppressChanged) { return; } Debug.WriteLineIf(sheetHandler != null, $"{sheetHandler?.TargetSheet.Name} is Selected"); //var location = Assembly.GetExecutingAssembly().Location; //Debug.WriteLine(location); sheetHandler?.TargetSheet.Activate(); SelectedSheetChanged?.Invoke(this, Helper.CreateEventArgs(sheetHandler)); //var sheet = sheetHandler?.TargetSheet; //if (sheet == null) return; //Range r = sheet.Cells[1, 1]; //r.Value = location; }