예제 #1
0
    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;
        }
    }
예제 #2
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();
        }
    }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ts = new TiketService();
     ns = new NotifikaceService();
 }
예제 #4
0
 public LhutaForm()
 {
     InitializeComponent();
     ts = new TiketService();
     ns = new NotifikaceService();
 }