private static void OnMenuChanged(object sender, EventArgsClickableMenuChanged args) { if (IsSaveGameMenu(args.NewMenu)) { BeforeSaving?.Invoke(); } }
public void SaveData(object[,] data, int offSetRow) { if (data.Length == 0) { return; } var sheetRows = data.GetLength(0); var sheetCols = data.GetLength(1); var startCell = (Range)workSheet.Cells[1 + offSetRow, 1]; var endCell = (Range)workSheet.Cells[sheetRows + offSetRow, sheetCols]; var excelcells = workSheet.Range[startCell, endCell]; BeforeSaving?.Invoke(excelcells); excelcells.Value = data; }
protected virtual void OnBeforeSaving(InvoiceBeforeSavingEventArgs e) { BeforeSaving?.Invoke(this, e); }