private void OnGetDate(object sender, RoutedEventArgs e) { var dateService = new DateService(); text1.Text = dateService.GetLongDateInfoString(); text2.Text = dateService.GetShortDateInfoString(); }
protected void Button1_Click(object sender, EventArgs e) { DateService dateService = new DateService(); TextBox1.Text = dateService.GetLongDateInfoString(); TextBox2.Text = dateService.GetShortDateInfoString(); }
private void GetDatesBtn_Click(object sender, EventArgs e) { DateService dateService = new DateService(); textBox1.Text = dateService.GetLongDateInfoString(); textBox2.Text = dateService.GetShortDateInfoString(); }
private void button1_Click(object sender, RoutedEventArgs e) { DateService dataService = new DateService(); textBox1.Text = dataService.GetLongDateInfoString(); }