Example #1
0
 public FormPaymentDetails1()
 {
     InitializeComponent();
     PaymentDetails.ButtonsEditEnabled(ButtonsPayment(), LabelsPayment(), TextBoxesPayment(),
                                       RichTextBoxesPayment(), ComboBoxPayment(), buttonsEdit = false);;
     Payments.ComboBoxTitleElements(comBoxTitle);
 }
Example #2
0
 private void FormPaymentDetails1_FormClosed(object sender, FormClosedEventArgs e)
 {
     Payments.CleanListViewPayment(lista);
     Payments.ColumnsListViewPayment(lista);
     Payments.DisplayPaymentDB(lista);
     PaymentDetails.ButtonsEditEnabled(ButtonsPayment(), LabelsPayment(), TextBoxesPayment(),
                                       RichTextBoxesPayment(), ComboBoxPayment(), buttonsEdit = false);
     clickCount             = 0;
     specBtnEnableEdit.Text = "Włącz edycję";
 }
Example #3
0
 private void btnEnableEdit_Click(object sender, EventArgs e)
 {
     if (clickCount == 0)
     {
         PaymentDetails.ButtonsEditEnabled(ButtonsPayment(), LabelsPayment(), TextBoxesPayment(),
                                           RichTextBoxesPayment(), ComboBoxPayment(), buttonsEdit = true);
         clickCount             = 1;
         specBtnEnableEdit.Text = "Wyłącz edycję";
     }
     else
     {
         PaymentDetails.ButtonsEditEnabled(ButtonsPayment(), LabelsPayment(), TextBoxesPayment(),
                                           RichTextBoxesPayment(), ComboBoxPayment(), buttonsEdit = false);
         clickCount             = 0;
         specBtnEnableEdit.Text = "Włącz edycję";
     }
 }