Exemple #1
0
 private void specialOperationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!CheckDataInOpenFiscalYear()) return;
     var savingEvent = new SavingsOperationForm(_saving, OSavingsOperation.SpecialOperation);
     savingEvent.ShowDialog();
     _saving = SavingServices.GetSaving(_saving.Id);
     DisplaySavingEvent(_saving);
     DisplaySavings(_client.Savings);
     ((LotrasmicMainWindowForm)MdiParent).ReloadAlertsSync();
 }
Exemple #2
0
 private void savingTransferToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!CheckDataInOpenFiscalYear()) return;
     var savingEvent = new SavingsOperationForm(_saving, OSavingsOperation.Transfer);
     savingEvent.ShowDialog();
     _saving = SavingServices.GetSaving(_saving.Id);
     DisplaySavingEvent(_saving);
     DisplaySavings(_client.Savings);
     ((MainView)_mdiParent).ReloadAlertsSync();
 }
Exemple #3
0
 private void buttonSavingWithDraw_Click(object sender, EventArgs e)
 {
     if (!CheckDataInOpenFiscalYear()) return;
     var savingsOperationForm = new SavingsOperationForm(_saving, OSavingsOperation.Debit);
     savingsOperationForm.ShowDialog();
     _saving = SavingServices.GetSaving(_saving.Id);
     DisplaySavingEvent(_saving);
     DisplaySavings(_client.Savings);
     ((LotrasmicMainWindowForm)_mdiParent).ReloadAlertsSync();
 }
Exemple #4
0
 private void buttonSavingDeposit_Click(object sender, EventArgs e)
 {
     if (!CheckDataInOpenFiscalYear()) return;
     var savingEvent = new SavingsOperationForm(_saving, OSavingsOperation.Credit);
     savingEvent.ShowDialog();
     _saving = SavingServices.GetSaving(_saving.Id);
     DisplaySavingEvent(_saving);
     DisplaySavings(_client.Savings);
     ((MainView)_mdiParent).ReloadAlertsSync();
 }