private void calendar_Click(TextBox textBox, DateTime MinDate) { kalendarz _kalendarz = new kalendarz(MinDate); _kalendarz.ShowDialog(); if (_kalendarz.DialogResult == System.Windows.Forms.DialogResult.OK) { textBox.Text = _kalendarz.data; String dataDO = _kalendarz.data; } }
private void calendar_Click(TextBox textBox, DateTime MinDate) { kalendarz _kalendarz = new kalendarz(MinDate); _kalendarz.ShowDialog(); if (_kalendarz.DialogResult == System.Windows.Forms.DialogResult.OK) { textBox.Text = _kalendarz.data; tbxArrival.Enabled = true; tbxArrival.BackColor = Color.White; } }
private void calendar_Click(TextBox textBox) { kalendarz _kalendarz = new kalendarz(); _kalendarz.ShowDialog(); if (_kalendarz.DialogResult == System.Windows.Forms.DialogResult.OK) { String dataOD = _kalendarz.data; textBoxDO.Enabled = true; textBox.Text = _kalendarz.data; } else { textBoxDO.Enabled = false; } }