コード例 #1
0
 private static void OnMenuChanged(object sender, EventArgsClickableMenuChanged args)
 {
     if (IsSaveGameMenu(args.NewMenu))
     {
         BeforeSaving?.Invoke();
     }
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 protected virtual void OnBeforeSaving(InvoiceBeforeSavingEventArgs e)
 {
     BeforeSaving?.Invoke(this, e);
 }