Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.90 KB | None | 0 0
  1. sesti zadatak:
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11.  
  12. namespace WindowsFormsApplication33
  13. {
  14.     public partial class Form1 : Form
  15.     {
  16.         public Form1()
  17.         {
  18.             InitializeComponent();
  19.         }
  20.         public DateTime sutra(string datum)
  21.         {
  22.             DateTime vreme = Convert.ToDateTime(datum);
  23.             DateTime sutra = vreme.AddDays(1);
  24.             return sutra;
  25.            
  26.         }
  27.         private void Form1_Load(object sender, EventArgs e)
  28.         {
  29.            
  30.         }
  31.  
  32.         private void Form1_DoubleClick(object sender, EventArgs e)
  33.         {
  34.             string datum = textBox1.Text;
  35.             textBox2.Text = sutra(datum).ToString();
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement