Exemple #1
0
		public Window1(){
			InitializeComponent();			
			ikonaUAC.ImageSource = Ikony.Ikona("user32.dll",-106,true);
			ikonaUloz.ImageSource = Ikony.Ikona("shell32.dll",258,true);
			ikonaNapoveda.ImageSource = Ikony.Ikona("shell32.dll",277,true);
			ikonaNastaveni.ImageSource = Ikony.Ikona("imageres.dll",109,true);	
			tbCesta.Text = vychozi_cesta;
			Directory.SetCurrentDirectory(vychozi_cesta);
            Funkce.CD(vychozi_cesta);
			richTextBox1.Document.Blocks.Add(
				new Paragraph(new Run(Environment.OSVersion.ToString() + "\r\n"
			)));
			
			if(Funkce.Admin()) 
				Title+= " - Admin práva";
			
			DispatcherTimer dt = new DispatcherTimer();
			dt.Tick += new EventHandler(Hodiny);
			dt.Interval = TimeSpan.FromSeconds(10);
			dt.Start();
            Predvolby.NactiNastaveni();
            Predvolby.NactiProgramy();
            Predvolby.NactiHistorii();
            Funkce.ZapisDatum();
            Funkce.CbZapsat(cbPrikaz);
        }