private void initUVToolBox() { currentLevel = Level.UVToolBox; SmerControl sc = (SmerControl)form.toolboxPanel.Controls[0]; if (!sc.IsColapsed) { nextStep(); return; } createControl("Pritisnite na smer kako bi vam se prikazali predmeti tog smera i kako biste nastavili tutorijal.", 20); MouseEventHandler e = new MouseEventHandler(delegate(Object o, MouseEventArgs a) { if (a.Button == MouseButtons.Left && a.Clicks == 1) { tc.Text = "Uspešno ste otvorili prikaz predmeta smera. \n Za nastavak pritisnite na ovaj prozor."; sc.IsTutorial = false; levelZavrsen = true; } }); sc.IsTutorial = true; sc.MouseDown += e; tc.Click += new EventHandler(delegate(Object o, EventArgs a) { if (levelZavrsen) { levelZavrsen = false; sc.MouseDown -= e; nextStep(); } }); }
private void initUVPredmet() { currentLevel = Level.UVPredmet; SmerControl sc = (SmerControl)form.toolboxPanel.Controls[0]; PredmetControl p = (PredmetControl)sc.predmetPanel.Controls[0]; p.IsTutorial = true; createControl("Prevucite obeleženi predmet na raspored kako biste napravili novi termin.", 20); DataControllercs.allowedTypes.Add(typeof(Termin)); DataControllercs.allowedTypes.Add(typeof(CreateAction)); tc.Click += new EventHandler(delegate(Object o, EventArgs a) { if (levelZavrsen) { levelZavrsen = false; nextStep(); } }); tc.TextChanged += new EventHandler(delegate(Object o, EventArgs a) { p.IsTutorial = false; }); DataControllercs.onAction += ActionExcuted; }