void btnAdd_Click(object sender, EventArgs e) { var createForm = new FormAddData(); createForm.ShowDialog(); this.FormBestSleep_Load(); }
private void cadastroToolStripMenuItem_Click(object sender, EventArgs e) { FormAddData formAddJira = new FormAddData(); if (formAddJira.ShowDialog() == DialogResult.OK) { CarregarComboJiras(); } }
private void ButtonAddNiver_Click(object sender, EventArgs e) { FormAddData formAddData = new FormAddData(); formAddData.ShowDialog(this); formAddData.Dispose(); if (formAddData.DialogResult == DialogResult.Yes) { DateTime data = Convert.ToDateTime(formAddData.textoData); textBoxNiver.Text = data.ToString("ddd, dd 'de' MMMM 'de' yyyy").ToUpper(); maskedTextBoxCep.Select(); } }