protected void Page_Load(object sender, EventArgs e) { ts = new TiketService(); ss = new SkupinaService(); if (!Page.IsPostBack) { List<String> skupiny = ss.getSkupiny(); foreach (var v in skupiny) { skupinaCombo.Items.Add(v); } skupinaCombo.SelectedIndex = 0; } }
protected void Page_Load(object sender, EventArgs e) { ts = new TiketService(); if (!Page.IsPostBack) { idTxt.Text = ts.getNewTiketID().ToString(); vytvorenoTxt.Text = ts.getDateTimeNow().ToString(); vytvorenoTxt.Enabled = false; lhutaTxt.Enabled = false; kategorieCombo.SelectedIndex = 0; prioritaCombo.SelectedIndex = 1; lhutaTxt.Text = ts.calculateDeadline(DateTime.Parse(vytvorenoTxt.Text), prioritaCombo.SelectedIndex + 1).ToString(); } }
protected void Page_Load(object sender, EventArgs e) { ts = new TiketService(); ns = new NotifikaceService(); }
public LhutaForm() { InitializeComponent(); ts = new TiketService(); ns = new NotifikaceService(); }