Esempio n. 1
0
 public AddPaymentForm(int id, string n, decimal m)
 {
     InitializeComponent();
     id_user              = id;
     name                 = n;
     old_money            = m;
     UserLogin.Text      += name;
     DateCheckBox.Checked = true;
     HourBox.Hide();
     MinuteBox.Hide();
     TimeLabel.Hide();
     IDLabel.Hide();
     IDComboBox.Hide();
     hLabel.Hide();
     mLabel.Hide();
 }
Esempio n. 2
0
 public AddECostForm(int id, string n, string formname)
 {
     InitializeComponent();
     id_user   = id;
     login     = n;
     this.Text = formname;
     if (formname == "Dodawanie kosztu dodatkowego")
     {
         NoRButton.Checked = true;
         paid = false;
         IDComboBox.Hide();
         IDLabel.Hide();
         PayInfo(id);
         DateCheckBox.Checked = true;
         choice = 1;
     }
     else if (formname == "Wyświetlanie kosztów dodatkowych")
     {
         UpdateData(id);
         DescriptionBox.Enabled = false;
         MoneyBox.Enabled       = false;
         DateBox.Enabled        = false;
         YesRButton.Enabled     = false;
         NoRButton.Enabled      = false;
         ApplyButton.Hide();
         OKButton.Hide();
         CancelButton.Text = "OK";
         DateCheckBox.Hide();
         DateBox.Format       = DateTimePickerFormat.Custom;
         DateBox.CustomFormat = "dd.MM.yyyy HH:mm";
         choice = 2;
     }
     else if (formname == "Edycja kosztów dodatkowych")
     {
         UpdateData(id);
         ApplyButton.Text = "Zastosuj zmiany";
         now = false;
         DateCheckBox.Checked = false;
         choice = 3;
     }
 }