void AboutBox_SourceInitialized(object sender, EventArgs e) { //base.OnSourceInitialized(e); //HwndSource hwndSource = PresentationSource.FromVisual(this) as HwndSource; //if (hwndSource != null) //{ // hwndSource.AddHook(new HwndSourceHook(this.WndProc)); //} AeroGlass.ExtendGlassFrame(this, new Thickness(-1)); }
private void WindowMain_Loaded(object sender, RoutedEventArgs e) { //IFormatter formatter = new BinaryFormatter(); //Stream stream = new FileStream("D:\\MyFile.bin",FileMode.Create, FileAccess.Read); //listprogs = (List<Progs>)formatter.Deserialize(stream); //stream.Close(); //for (int i = 0; i < listprogs.Count; i++) //{ // listView1.Items.Add(listprogs[i]); //} AeroGlass.ExtendGlassFrame(this, new Thickness(-1)); Timer TimerForLable = new Timer(1000); TimerForLable.Elapsed += new ElapsedEventHandler(TimerForLable_Elapsed); labelTime.Content = DateTime.Now.ToLongTimeString(); TimerForLable.Start(); }