├── README.md
├── BgInfo
├── Icons
│ └── bginfo.ico
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── packages.config
├── GlobalSuppressions.cs
├── Views
│ ├── SettingsView.xaml.cs
│ ├── BgView.xaml.cs
│ ├── MainView.xaml
│ ├── MainView.xaml.cs
│ ├── SettingsView.xaml
│ └── BgView.xaml
├── App.config
├── Models
│ └── Settings.cs
├── App.xaml.cs
├── ViewModels
│ ├── DriveInfoViewModel.cs
│ ├── TaskbarIconViewModel.cs
│ ├── SettingsViewModel.cs
│ └── BgViewModel.cs
├── App.xaml
├── WindowUtils.cs
├── app.manifest
├── app1.manifest
├── BgInfoManager.cs
├── NativeMethods.cs
└── BgInfo.csproj
├── BgInfo.sln
├── .gitattributes
└── .gitignore
/README.md:
--------------------------------------------------------------------------------
1 | # BgInfo
2 |
3 | BgInfo is a WPF variant on the Sysinternals BgInfo tool.
4 |
--------------------------------------------------------------------------------
/BgInfo/Icons/bginfo.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zodiacon/BgInfo/HEAD/BgInfo/Icons/bginfo.ico
--------------------------------------------------------------------------------
/BgInfo/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/BgInfo/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/BgInfo/GlobalSuppressions.cs:
--------------------------------------------------------------------------------
1 |
2 | // This file is used by Code Analysis to maintain SuppressMessage
3 | // attributes that are applied to this project.
4 | // Project-level suppressions either have no target or are given
5 | // a specific target and scoped to a namespace, type, member, etc.
6 |
7 | [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Readability", "RCS1018:Add default access modifier.", Justification = "", Scope = "type", Target = "~T:BgInfo.NativeMethods")]
8 |
9 |
--------------------------------------------------------------------------------
/BgInfo/Views/SettingsView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Shapes;
14 |
15 | namespace BgInfo.Views {
16 | ///
17 | /// Interaction logic for SettingsView.xaml
18 | ///
19 | public partial class SettingsView : Window {
20 | public SettingsView() {
21 | InitializeComponent();
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BgInfo/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/BgInfo/Views/BgView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Runtime.InteropServices;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 | using System.Windows.Controls;
9 | using System.Windows.Data;
10 | using System.Windows.Documents;
11 | using System.Windows.Input;
12 | using System.Windows.Interop;
13 | using System.Windows.Media;
14 | using System.Windows.Media.Imaging;
15 | using System.Windows.Shapes;
16 |
17 | namespace BgInfo.Views {
18 | ///
19 | /// Interaction logic for BgView.xaml
20 | ///
21 | public partial class BgView {
22 | public BgView() {
23 | InitializeComponent();
24 |
25 | }
26 |
27 | private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) {
28 | e.Cancel = true;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/BgInfo/Views/MainView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/BgInfo/Models/Settings.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows.Media;
7 | using Prism.Mvvm;
8 |
9 | namespace BgInfo.Models {
10 | public class Settings : BindableBase {
11 | private string _fontFamily = "Arial";
12 |
13 | public string FontFamily {
14 | get { return _fontFamily; }
15 | set { SetProperty(ref _fontFamily, value); }
16 | }
17 |
18 | private int _fontSize = 14;
19 |
20 | public int FontSize {
21 | get { return _fontSize; }
22 | set { SetProperty(ref _fontSize, value); }
23 | }
24 |
25 | private Brush _textColor = Brushes.White;
26 |
27 | public Brush TextColor {
28 | get { return _textColor; }
29 | set { SetProperty(ref _textColor, value); }
30 | }
31 |
32 | public int IntervalSeconds { get; set; } = 60;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/BgInfo/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel.Composition.Hosting;
4 | using System.Configuration;
5 | using System.Data;
6 | using System.Diagnostics;
7 | using System.Linq;
8 | using System.Reflection;
9 | using System.Threading;
10 | using System.Threading.Tasks;
11 | using System.Windows;
12 | using Zodiacon.WPF;
13 |
14 | namespace BgInfo
15 | {
16 | ///
17 | /// Interaction logic for App.xaml
18 | ///
19 | public partial class App : Application
20 | {
21 | Mutex _oneInstanceMutex;
22 |
23 | BgInfoManager _mgr;
24 |
25 | protected override void OnStartup(StartupEventArgs e)
26 | {
27 | base.OnStartup(e);
28 |
29 | bool createNew;
30 | _oneInstanceMutex = new Mutex(false, "BgInfo_OneInstanceMutex", out createNew);
31 | if(!createNew) {
32 | Shutdown();
33 | return;
34 | }
35 |
36 | _mgr = new BgInfoManager();
37 | _mgr.CreateWindows();
38 | _mgr.InitTray();
39 | }
40 |
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/BgInfo.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BgInfo", "BgInfo\BgInfo.csproj", "{CCB5FDB8-D8C6-42C6-8340-508137AFC8F8}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {CCB5FDB8-D8C6-42C6-8340-508137AFC8F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {CCB5FDB8-D8C6-42C6-8340-508137AFC8F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {CCB5FDB8-D8C6-42C6-8340-508137AFC8F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {CCB5FDB8-D8C6-42C6-8340-508137AFC8F8}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/BgInfo/ViewModels/DriveInfoViewModel.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using Prism.Mvvm;
3 |
4 | namespace BgInfo.ViewModels {
5 | class DriveInfoViewModel : BindableBase {
6 | public DriveInfo DriveInfo { get; }
7 | public DriveInfoViewModel(DriveInfo driveInfo) {
8 | DriveInfo = driveInfo;
9 | }
10 |
11 | public string Name => DriveInfo.Name;
12 | public string TotalSize
13 | {
14 | get
15 | {
16 | if (!DriveInfo.IsReady)
17 | return "Drive Not Ready";
18 | return GetSize(DriveInfo.TotalSize);
19 | }
20 | }
21 |
22 | public string FreeSpace
23 | {
24 | get
25 | {
26 | if (!DriveInfo.IsReady)
27 | return "Drive Not Ready";
28 | return GetSize(DriveInfo.TotalFreeSpace);
29 | }
30 | }
31 |
32 | private string GetSize(long size) {
33 | if(size > 1 << 30)
34 | return $"{size >> 30} GB";
35 | return $"{size >> 20} MB";
36 | }
37 | }
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/BgInfo/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BgInfo.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BgInfo/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/BgInfo/ViewModels/TaskbarIconViewModel.cs:
--------------------------------------------------------------------------------
1 | using Prism.Commands;
2 | using Prism.Mvvm;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Windows;
9 | using System.Windows.Input;
10 | using Zodiacon.WPF;
11 | using System.ComponentModel.Composition;
12 | using BgInfo.Views;
13 |
14 | namespace BgInfo.ViewModels {
15 | sealed class TaskbarIconViewModel : BindableBase {
16 | readonly BgInfoManager _mgr;
17 | readonly IUIServices UI;
18 |
19 | public TaskbarIconViewModel(BgInfoManager mgr, IUIServices ui) {
20 | _mgr = mgr;
21 | UI = ui;
22 | ExitCommand = new DelegateCommand(() => Application.Current.Shutdown());
23 |
24 | SettingsCommand = new DelegateCommand(() => {
25 | _mgr.EnableTray(false);
26 | var vm = UI.DialogService.CreateDialog(_mgr.Settings);
27 | if(vm.ShowDialog() == true) {
28 | // apply changes
29 | mgr.ApplySettings(vm);
30 | }
31 |
32 | _mgr.EnableTray(true);
33 | });
34 |
35 | RefreshCommand = new DelegateCommand(() => _mgr.Refresh());
36 |
37 | AboutCommand = new DelegateCommand(() => {
38 | _mgr.EnableTray(false);
39 | MessageBox.Show(Application.Current.MainWindow, "BgInfo (WPF Style) by Pavel Yosifovich (C)2016-2018", "About BgInfo");
40 | _mgr.EnableTray(true);
41 | });
42 | }
43 |
44 |
45 | public ICommand ExitCommand { get; }
46 | public ICommand SettingsCommand { get; }
47 | public ICommand RefreshCommand { get; }
48 | public ICommand AboutCommand { get; }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/BgInfo/WindowUtils.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using static BgInfo.NativeMethods;
3 |
4 | namespace BgInfo
5 | {
6 | public static class WindowUtils
7 | {
8 | public static void SetCommonStyles(IntPtr hwnd)
9 | {
10 | SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_NOACTIVATE);
11 | SetWindowPos(hwnd, new IntPtr(HWND_BOTTOM), 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
12 | }
13 |
14 | public static void ShowAlwaysOnDesktop(IntPtr hwnd)
15 | {
16 | var progmanHandle = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Progman", null);
17 | var workerWHandle = IntPtr.Zero;
18 | EnumWindows(new EnumWindowsProc((topHandle, topParamHandle) =>
19 | {
20 | IntPtr shellHandle = FindWindowEx(topHandle, IntPtr.Zero, "SHELLDLL_DefView", null);
21 | if (shellHandle != IntPtr.Zero)
22 | {
23 | workerWHandle = FindWindowEx(IntPtr.Zero, topHandle, "WorkerW", null);
24 | }
25 | return true;
26 | }), IntPtr.Zero);
27 | workerWHandle = workerWHandle == IntPtr.Zero ? progmanHandle : workerWHandle;
28 | SetParent(hwnd, workerWHandle);
29 | }
30 |
31 | ///
32 | /// Special hack from https://www.codeproject.com/Articles/856020/Draw-behind-Desktop-Icons-in-Windows
33 | /// Send 0x052C to Progman. This message directs Progman to spawn a
34 | /// WorkerW behind the desktop icons. If it is already there, nothing
35 | /// happens.
36 | ///
37 | public static void ShowBehindDesktopIcons(IntPtr hwnd)
38 | {
39 | var progmanHandle = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Progman", null);
40 | SendMessage(progmanHandle, 0x052C, 0x0000000D, 0);
41 | SendMessage(progmanHandle, 0x052C, 0x0000000D, 1);
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/BgInfo/ViewModels/SettingsViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Media;
8 | using BgInfo.Models;
9 | using Prism.Mvvm;
10 | using Zodiacon.WPF;
11 |
12 | namespace BgInfo.ViewModels {
13 | sealed class SettingsViewModel : DialogViewModelBase {
14 | readonly Settings _settings;
15 |
16 | public SettingsViewModel(Window dialog, Settings settings) : base(dialog) {
17 | _settings = settings;
18 |
19 | _selectedFont = new FontFamily(settings.FontFamily);
20 | _textColor = ((SolidColorBrush)settings.TextColor).Color;
21 | _selectedFontSize = settings.FontSize;
22 | _selectedInterval = TimeSpan.FromSeconds(settings.IntervalSeconds);
23 | }
24 |
25 | private FontFamily _selectedFont;
26 |
27 | public FontFamily SelectedFont {
28 | get { return _selectedFont; }
29 | set { SetProperty(ref _selectedFont, value); }
30 | }
31 |
32 | private Color _textColor;
33 |
34 | public Color TextColor {
35 | get { return _textColor; }
36 | set { SetProperty(ref _textColor, value); }
37 | }
38 |
39 | public IEnumerable SystemFonts => Fonts.SystemFontFamilies.OrderBy(font => font.Source);
40 |
41 | public IEnumerable FontSizes => new[] { 8, 10, 12, 14, 16, 18, 20, 24, 28, 32, 36, 40 };
42 |
43 | private int _selectedFontSize;
44 |
45 | public int SelectedFontSize {
46 | get { return _selectedFontSize; }
47 | set { SetProperty(ref _selectedFontSize, value); }
48 | }
49 |
50 | public IEnumerable RefreshIntervals => new[] { 10, 20, 30, 60, 120, 300, 600, 1800, 3600, 7200, 14400, 24 * 3600 }.Select(i => TimeSpan.FromSeconds(i));
51 |
52 | private TimeSpan _selectedInterval;
53 |
54 | public TimeSpan SelectedInterval {
55 | get { return _selectedInterval; }
56 | set { SetProperty(ref _selectedInterval, value); }
57 | }
58 |
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/BgInfo/Views/MainView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Runtime.InteropServices;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 | using System.Windows.Controls;
9 | using System.Windows.Data;
10 | using System.Windows.Documents;
11 | using System.Windows.Input;
12 | using System.Windows.Interop;
13 | using System.Windows.Media;
14 | using System.Windows.Media.Imaging;
15 | using System.Windows.Shapes;
16 | using static BgInfo.NativeMethods;
17 |
18 | namespace BgInfo.Views {
19 | ///
20 | /// Interaction logic for MainView.xaml
21 | ///
22 | public partial class MainView : Window {
23 | public MainView() {
24 | InitializeComponent();
25 |
26 | Loaded += delegate {
27 | var handle = new WindowInteropHelper(this).Handle;
28 | WindowUtils.SetCommonStyles(handle);
29 | WindowUtils.ShowAlwaysOnDesktop(handle);
30 |
31 | if (Environment.OSVersion.Version.Major >= 10)
32 | {
33 | WindowUtils.ShowBehindDesktopIcons(handle);
34 | }
35 |
36 | var wndSource = HwndSource.FromHwnd(handle);
37 | wndSource.AddHook(WindowProc);
38 | };
39 | }
40 | unsafe IntPtr WindowProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) {
41 | switch (msg) {
42 | case WM_WINDOWPOSCHANGING:
43 | var windowPos = Marshal.PtrToStructure(lParam);
44 | windowPos.hwndInsertAfter = new IntPtr(HWND_BOTTOM);
45 | windowPos.flags &= ~(uint)SWP_NOZORDER;
46 | handled = true;
47 | break;
48 |
49 | case WM_DPICHANGED:
50 | var handle = new WindowInteropHelper(this).Handle;
51 | var rc = (RECT*)lParam.ToPointer();
52 | SetWindowPos(handle, IntPtr.Zero, 0, 0, rc->Right, rc->Left, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER);
53 | break;
54 |
55 | }
56 | return IntPtr.Zero;
57 | }
58 |
59 | private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) {
60 | e.Cancel = true;
61 | }
62 |
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/BgInfo/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("BgInfo")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("BgInfo")]
15 | [assembly: AssemblyCopyright("Copyright © 2016")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Setting ComVisible to false makes the types in this assembly not visible
20 | // to COM components. If you need to access a type in this assembly from
21 | // COM, set the ComVisible attribute to true on that type.
22 | [assembly: ComVisible(false)]
23 |
24 | //In order to begin building localizable applications, set
25 | //CultureYouAreCodingWith in your .csproj file
26 | //inside a . For example, if you are using US english
27 | //in your source files, set the to en-US. Then uncomment
28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
29 | //the line below to match the UICulture setting in the project file.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 | //(used if a resource is not found in the page,
37 | // or application resource dictionaries)
38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 | //(used if a resource is not found in the page,
40 | // app, or any theme specific resource dictionaries)
41 | )]
42 |
43 |
44 | // Version information for an assembly consists of the following four values:
45 | //
46 | // Major Version
47 | // Minor Version
48 | // Build Number
49 | // Revision
50 | //
51 | // You can specify all the values or you can default the Build and Revision Numbers
52 | // by using the '*' as shown below:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/BgInfo/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BgInfo.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BgInfo.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/BgInfo/Views/SettingsView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/BgInfo/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
59 |
60 |
61 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/BgInfo/app1.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
59 |
60 |
61 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/BgInfo/BgInfoManager.cs:
--------------------------------------------------------------------------------
1 | using BgInfo.ViewModels;
2 | using BgInfo.Views;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Diagnostics;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows;
10 | using Hardcodet.Wpf.TaskbarNotification;
11 | using System.Windows.Media.Imaging;
12 | using System.Drawing;
13 | using System.Windows.Controls;
14 | using static BgInfo.NativeMethods;
15 | using System.Collections.ObjectModel;
16 | using System.ComponentModel.Composition;
17 | using System.Reflection;
18 | using Zodiacon.WPF;
19 | using System.ComponentModel.Composition.Hosting;
20 | using BgInfo.Models;
21 | using System.Windows.Threading;
22 | using System.Windows.Media;
23 |
24 | namespace BgInfo {
25 | class BgInfoManager {
26 | TaskbarIcon _tray;
27 | ObservableCollection _screens = new ObservableCollection();
28 | DispatcherTimer _timer;
29 |
30 | public Settings Settings { get; } = new Settings();
31 |
32 | public BgInfoManager() {
33 | _timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(60) };
34 | _timer.Tick += _timer_Tick;
35 | _timer.Start();
36 | }
37 |
38 | public void ApplySettings(SettingsViewModel settings) {
39 | Settings.FontFamily = settings.SelectedFont.Source;
40 | Settings.FontSize = settings.SelectedFontSize;
41 | Settings.TextColor = new SolidColorBrush(settings.TextColor);
42 | _timer.Interval = settings.SelectedInterval;
43 | Settings.IntervalSeconds = (int)settings.SelectedInterval.TotalSeconds;
44 | }
45 |
46 | private void _timer_Tick(object sender, EventArgs e) {
47 | Refresh();
48 | }
49 |
50 | public int CreateWindows() {
51 | var windows = 0;
52 |
53 | EnumDisplayMonitors(IntPtr.Zero, IntPtr.Zero, (IntPtr hMonitor, IntPtr hdcMonitor, ref RECT rect, IntPtr data) => {
54 | Debug.WriteLine($"monitor: {hMonitor}");
55 |
56 | var info = new MonitorInfo();
57 | info.Init();
58 | GetMonitorInfo(hMonitor, ref info);
59 |
60 | var vm = new BgViewModel(info, Settings);
61 | var win = new MainView {
62 | Left = info.rcWork.Left,
63 | Top = info.rcWork.Top,
64 | Width = info.rcWork.Width,
65 | Height = info.rcWork.Height,
66 | DataContext = vm
67 | };
68 | _screens.Add(vm);
69 |
70 | win.Show();
71 | windows++;
72 | return true;
73 | }, IntPtr.Zero);
74 |
75 | return windows;
76 | }
77 |
78 | public void EnableTray(bool enable) {
79 | _tray.Visibility = enable ? Visibility.Visible : Visibility.Collapsed;
80 | }
81 |
82 | public void InitTray() {
83 | var ui = new UIServicesDefaults();
84 | _tray = Application.Current.FindResource("TrayIcon") as TaskbarIcon;
85 | var vm = new TaskbarIconViewModel(this, ui);
86 |
87 | _tray.DataContext = vm;
88 |
89 | TaskbarIcon.SetParentTaskbarIcon(Application.Current.MainWindow, _tray);
90 | }
91 |
92 | public void Refresh() {
93 | foreach(var screen in _screens)
94 | screen.Refresh();
95 | }
96 | }
97 | }
98 |
--------------------------------------------------------------------------------
/BgInfo/ViewModels/BgViewModel.cs:
--------------------------------------------------------------------------------
1 | using Prism.Mvvm;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using static BgInfo.NativeMethods;
8 | using System.Windows;
9 | using System.Runtime.InteropServices;
10 | using System.IO;
11 | using System.Management;
12 | using BgInfo.Models;
13 | using System.Net.NetworkInformation;
14 |
15 | namespace BgInfo.ViewModels {
16 | class BgViewModel : BindableBase {
17 | MonitorInfo _monitor;
18 | PerformanceInformation _perf;
19 | public Settings Settings { get; }
20 |
21 | public BgViewModel(MonitorInfo monitor, Settings settings) {
22 | _monitor = monitor;
23 | Settings = settings;
24 |
25 | Refresh(false);
26 | }
27 |
28 | public IEnumerable Drives => DriveInfo.GetDrives().Select(drive => new DriveInfoViewModel(drive));
29 | public DateTime BootTime => DateTime.Now - TimeSpan.FromMilliseconds(Environment.TickCount);
30 | public string OSVersion => Environment.OSVersion.ToString();
31 | public string ComputerName => Environment.MachineName;
32 |
33 | public string DomainName => Environment.UserDomainName;
34 | public string Resolution => $"{_monitor.rcMonitor.Width} X {_monitor.rcMonitor.Height}";
35 |
36 | public string Memory => $"{_perf.PhysicalTotal.ToInt64() >> 8} MB";
37 | public string AvailableMemory => $"{_perf.PhysicalAvailable.ToInt64() >> 8} MB";
38 | public uint Processes => _perf.ProcessCount;
39 | public uint Threads => _perf.ThreadCount;
40 | public uint Handles => _perf.HandleCount;
41 |
42 | public string Commit => $"{_perf.CommitTotal.ToInt64() >> 8} MB / {_perf.CommitLimit.ToInt64() >> 8} MB";
43 |
44 | public int ProcessorCount => Environment.ProcessorCount;
45 |
46 | static string _processorName;
47 | public string Processor => _processorName ?? (_processorName = GetProcessorName());
48 |
49 | private string GetProcessorName() {
50 | var mgt = new ManagementClass("Win32_Processor");
51 | var processors = mgt.GetInstances();
52 | if(processors.Count == 0)
53 | return "Unknown";
54 | return processors.Cast().First().Properties["Name"].Value.ToString();
55 | }
56 |
57 | public DateTime UpdateTime => DateTime.Now;
58 |
59 | public void Refresh(bool raiseChanges = true) {
60 | _perf.cb = Marshal.SizeOf();
61 | var ok = GetPerformanceInfo(ref _perf, Marshal.SizeOf());
62 | if(raiseChanges) {
63 | RaisePropertyChanged(nameof(Resolution));
64 | RaisePropertyChanged(nameof(Processes));
65 | RaisePropertyChanged(nameof(AvailableMemory));
66 | RaisePropertyChanged(nameof(Threads));
67 | RaisePropertyChanged(nameof(Handles));
68 | RaisePropertyChanged(nameof(Drives));
69 | RaisePropertyChanged(nameof(UpdateTime));
70 | RaisePropertyChanged(nameof(Commit));
71 | }
72 | }
73 |
74 | public IEnumerable Network {
75 | get {
76 | var macs = new List(4);
77 | foreach(var nic in NetworkInterface.GetAllNetworkInterfaces()) {
78 | var address = nic.GetPhysicalAddress().ToString();
79 | if(!string.IsNullOrEmpty(address) && address.Length == 12)
80 | macs.Add($"{nic.Description}\n\t {ToMacAddress(address)} {nic.Speed / 1000000} Mb/s");
81 | }
82 | return macs.Distinct();
83 | }
84 | }
85 |
86 | private string ToMacAddress(string address) {
87 | var mac = new StringBuilder(32);
88 | for(int i = 0; i < address.Length; i += 2) {
89 | mac.Append(address.Substring(i, 2));
90 | if(i < address.Length - 2)
91 | mac.Append("-");
92 | }
93 | return mac.ToString();
94 | }
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/BgInfo/NativeMethods.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Runtime.InteropServices;
5 | using System.Security;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Windows;
9 |
10 | namespace BgInfo {
11 | [SuppressUnmanagedCodeSecurity]
12 | static class NativeMethods {
13 | public const int GWL_EXSTYLE = -20;
14 | public const int WS_EX_NOACTIVATE = 0x8000000;
15 | public const int HWND_BOTTOM = 1;
16 | public const int SWP_NOMOVE = 2;
17 | public const int SWP_NOSIZE = 1;
18 | public const int SWP_NOACTIVATE = 0x10;
19 | public const int SWP_NOZORDER = 4;
20 |
21 | public const int WM_WINDOWPOSCHANGING = 0x46;
22 | public const int WM_DPICHANGED = 0x02E0;
23 |
24 | [StructLayout(LayoutKind.Sequential)]
25 | public struct PerformanceInformation {
26 | public int cb;
27 | public IntPtr CommitTotal;
28 | public IntPtr CommitLimit;
29 | public IntPtr CommitPeak;
30 | public IntPtr PhysicalTotal;
31 | public IntPtr PhysicalAvailable;
32 | public IntPtr SystemCache;
33 | public IntPtr KernelTotal;
34 | public IntPtr KernelPaged;
35 | public IntPtr KernelNonpaged;
36 | public IntPtr PageSize;
37 | public uint HandleCount;
38 | public uint ProcessCount;
39 | public uint ThreadCount;
40 | }
41 |
42 | [StructLayout(LayoutKind.Sequential)]
43 | public struct OSVersionInfoEx {
44 | public int dwOSVersionInfoSize;
45 | public uint dwMajorVersion;
46 | public uint dwMinorVersion;
47 | public uint dwBuildNumber;
48 | public uint dwPlatformId;
49 | [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] public string szCSDVersion;
50 | public ushort wServicePackMajor;
51 | public ushort wServicePackMinor;
52 | public ushort wSuiteMask;
53 | public byte wProductType;
54 | public byte wReserved;
55 | }
56 |
57 | [StructLayout(LayoutKind.Sequential)]
58 | public struct WindowPos {
59 | public IntPtr hwnd;
60 | public IntPtr hwndInsertAfter;
61 | public int x;
62 | public int y;
63 | public int cx;
64 | public int cy;
65 | public uint flags;
66 | }
67 |
68 | [StructLayout(LayoutKind.Sequential)]
69 | public struct RECT {
70 | public int Left, Top, Right, Bottom;
71 |
72 | public int Width => Right - Left;
73 | public int Height => Bottom - Top;
74 | }
75 |
76 | [StructLayout(LayoutKind.Sequential)]
77 | public struct MonitorInfo {
78 | public uint cbSize;
79 | public RECT rcMonitor;
80 | public RECT rcWork;
81 | public uint dwFlags;
82 |
83 | public void Init() {
84 | cbSize = (uint)Marshal.SizeOf(this);
85 | }
86 | }
87 |
88 | public delegate bool EnumMonitorProc(IntPtr hMonitor, IntPtr hdcMonitor, ref RECT rcMonitor, IntPtr data);
89 |
90 | public delegate bool EnumWindowsProc(IntPtr hwnd, IntPtr lParam);
91 |
92 | [DllImport("user32")]
93 | public static extern IntPtr SetWindowPos(IntPtr hWnd, IntPtr hWndAfter, int x, int y, int dx, int cy, uint flags);
94 |
95 | [DllImport("user32")]
96 | public static extern bool EnumDisplayMonitors(IntPtr hDC, IntPtr clipRect, EnumMonitorProc proc, IntPtr data);
97 |
98 | [DllImport("user32")]
99 | public static extern bool GetMonitorInfo(IntPtr hMonitor, ref MonitorInfo info);
100 |
101 | [DllImport("user32")]
102 | public static extern int SetWindowLong(IntPtr hWnd, int index, int value);
103 |
104 | [DllImport("user32")]
105 | public static extern int GetWindowLong(IntPtr hWnd, int index);
106 |
107 | [DllImport("user32")]
108 | public static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
109 |
110 | [DllImport("user32")]
111 | public static extern IntPtr FindWindowEx(IntPtr hWndParent, IntPtr hWndChildAfter, string lpszClass, string lpszWindow);
112 |
113 | [DllImport("user32")]
114 | public static extern bool EnumWindows(EnumWindowsProc lpEnumFunc, IntPtr lParam);
115 |
116 | [DllImport("user32")]
117 | public static extern int SendMessage(IntPtr hWnd, int wMsg, int wParam, int lParam);
118 |
119 | [DllImport("psapi", SetLastError = true)]
120 | public static extern bool GetPerformanceInfo(ref PerformanceInformation pi, int size);
121 |
122 | [DllImport("kernel32")]
123 | public static extern bool GetVersionEx(ref OSVersionInfoEx versionInfo);
124 | }
125 | }
126 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | [Xx]64/
19 | [Xx]86/
20 | [Bb]uild/
21 | bld/
22 | [Bb]in/
23 | [Oo]bj/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | artifacts/
46 |
47 | *_i.c
48 | *_p.c
49 | *_i.h
50 | *.ilk
51 | *.meta
52 | *.obj
53 | *.pch
54 | *.pdb
55 | *.pgc
56 | *.pgd
57 | *.rsp
58 | *.sbr
59 | *.tlb
60 | *.tli
61 | *.tlh
62 | *.tmp
63 | *.tmp_proj
64 | *.log
65 | *.vspscc
66 | *.vssscc
67 | .builds
68 | *.pidb
69 | *.svclog
70 | *.scc
71 |
72 | # Chutzpah Test files
73 | _Chutzpah*
74 |
75 | # Visual C++ cache files
76 | ipch/
77 | *.aps
78 | *.ncb
79 | *.opendb
80 | *.opensdf
81 | *.sdf
82 | *.cachefile
83 | *.VC.db
84 |
85 | # Visual Studio profiler
86 | *.psess
87 | *.vsp
88 | *.vspx
89 | *.sap
90 |
91 | # TFS 2012 Local Workspace
92 | $tf/
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 | *.DotSettings.user
101 |
102 | # JustCode is a .NET coding add-in
103 | .JustCode
104 |
105 | # TeamCity is a build add-in
106 | _TeamCity*
107 |
108 | # DotCover is a Code Coverage Tool
109 | *.dotCover
110 |
111 | # NCrunch
112 | _NCrunch_*
113 | .*crunch*.local.xml
114 | nCrunchTemp_*
115 |
116 | # MightyMoose
117 | *.mm.*
118 | AutoTest.Net/
119 |
120 | # Web workbench (sass)
121 | .sass-cache/
122 |
123 | # Installshield output folder
124 | [Ee]xpress/
125 |
126 | # DocProject is a documentation generator add-in
127 | DocProject/buildhelp/
128 | DocProject/Help/*.HxT
129 | DocProject/Help/*.HxC
130 | DocProject/Help/*.hhc
131 | DocProject/Help/*.hhk
132 | DocProject/Help/*.hhp
133 | DocProject/Help/Html2
134 | DocProject/Help/html
135 |
136 | # Click-Once directory
137 | publish/
138 |
139 | # Publish Web Output
140 | *.[Pp]ublish.xml
141 | *.azurePubxml
142 |
143 | # TODO: Un-comment the next line if you do not want to checkin
144 | # your web deploy settings because they may include unencrypted
145 | # passwords
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # NuGet Packages
150 | *.nupkg
151 | # The packages folder can be ignored because of Package Restore
152 | **/packages/*
153 | # except build/, which is used as an MSBuild target.
154 | !**/packages/build/
155 | # Uncomment if necessary however generally it will be regenerated when needed
156 | #!**/packages/repositories.config
157 | # NuGet v3's project.json files produces more ignoreable files
158 | *.nuget.props
159 | *.nuget.targets
160 |
161 | # Microsoft Azure Build Output
162 | csx/
163 | *.build.csdef
164 |
165 | # Microsoft Azure Emulator
166 | ecf/
167 | rcf/
168 |
169 | # Microsoft Azure ApplicationInsights config file
170 | ApplicationInsights.config
171 |
172 | # Windows Store app package directory
173 | AppPackages/
174 | BundleArtifacts/
175 |
176 | # Visual Studio cache files
177 | # files ending in .cache can be ignored
178 | *.[Cc]ache
179 | # but keep track of directories ending in .cache
180 | !*.[Cc]ache/
181 |
182 | # Others
183 | ClientBin/
184 | [Ss]tyle[Cc]op.*
185 | ~$*
186 | *~
187 | *.dbmdl
188 | *.dbproj.schemaview
189 | *.pfx
190 | *.publishsettings
191 | node_modules/
192 | orleans.codegen.cs
193 |
194 | # RIA/Silverlight projects
195 | Generated_Code/
196 |
197 | # Backup & report files from converting an old project file
198 | # to a newer Visual Studio version. Backup files are not needed,
199 | # because we have git ;-)
200 | _UpgradeReport_Files/
201 | Backup*/
202 | UpgradeLog*.XML
203 | UpgradeLog*.htm
204 |
205 | # SQL Server files
206 | *.mdf
207 | *.ldf
208 |
209 | # Business Intelligence projects
210 | *.rdl.data
211 | *.bim.layout
212 | *.bim_*.settings
213 |
214 | # Microsoft Fakes
215 | FakesAssemblies/
216 |
217 | # GhostDoc plugin setting file
218 | *.GhostDoc.xml
219 |
220 | # Node.js Tools for Visual Studio
221 | .ntvs_analysis.dat
222 |
223 | # Visual Studio 6 build log
224 | *.plg
225 |
226 | # Visual Studio 6 workspace options file
227 | *.opt
228 |
229 | # Visual Studio LightSwitch build output
230 | **/*.HTMLClient/GeneratedArtifacts
231 | **/*.DesktopClient/GeneratedArtifacts
232 | **/*.DesktopClient/ModelManifest.xml
233 | **/*.Server/GeneratedArtifacts
234 | **/*.Server/ModelManifest.xml
235 | _Pvt_Extensions
236 |
237 | # LightSwitch generated files
238 | GeneratedArtifacts/
239 | ModelManifest.xml
240 |
241 | # Paket dependency manager
242 | .paket/paket.exe
243 |
244 | # FAKE - F# Make
245 | .fake/
--------------------------------------------------------------------------------
/BgInfo/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/BgInfo/Views/BgView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | Free:
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
--------------------------------------------------------------------------------
/BgInfo/BgInfo.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {CCB5FDB8-D8C6-42C6-8340-508137AFC8F8}
8 | WinExe
9 | Properties
10 | BgInfo
11 | BgInfo
12 | v4.6.1
13 | 512
14 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
15 | 4
16 | true
17 |
18 |
19 |
20 | AnyCPU
21 | true
22 | full
23 | false
24 | bin\Debug\
25 | DEBUG;TRACE
26 | prompt
27 | 4
28 | false
29 | true
30 |
31 |
32 | AnyCPU
33 | pdbonly
34 | true
35 | bin\Release\
36 | TRACE
37 | prompt
38 | 4
39 | true
40 | false
41 |
42 |
43 | app1.manifest
44 |
45 |
46 | Icons\bginfo.ico
47 |
48 |
49 |
50 | ..\packages\Hardcodet.NotifyIcon.Wpf.1.0.8\lib\net451\Hardcodet.Wpf.TaskbarNotification.dll
51 | True
52 |
53 |
54 | ..\packages\Prism.Core.7.1.0.431\lib\net45\Prism.dll
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 | 4.0
68 |
69 |
70 |
71 |
72 |
73 | ..\packages\Extended.Wpf.Toolkit.3.5.0\lib\net40\Xceed.Wpf.AvalonDock.dll
74 |
75 |
76 | ..\packages\Extended.Wpf.Toolkit.3.5.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.Aero.dll
77 |
78 |
79 | ..\packages\Extended.Wpf.Toolkit.3.5.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.Metro.dll
80 |
81 |
82 | ..\packages\Extended.Wpf.Toolkit.3.5.0\lib\net40\Xceed.Wpf.AvalonDock.Themes.VS2010.dll
83 |
84 |
85 | ..\packages\Extended.Wpf.Toolkit.3.5.0\lib\net40\Xceed.Wpf.Toolkit.dll
86 |
87 |
88 | ..\packages\Zodiacon.WPF.1.2.17\lib\net45\Zodiacon.WPF.dll
89 |
90 |
91 |
92 |
93 | MSBuild:Compile
94 | Designer
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | BgView.xaml
105 |
106 |
107 | App.xaml
108 | Code
109 |
110 |
111 | MainView.xaml
112 |
113 |
114 | SettingsView.xaml
115 |
116 |
117 |
118 | Designer
119 | MSBuild:Compile
120 |
121 |
122 | Designer
123 | MSBuild:Compile
124 |
125 |
126 | Designer
127 | MSBuild:Compile
128 |
129 |
130 |
131 |
132 |
133 | Code
134 |
135 |
136 | True
137 | True
138 | Resources.resx
139 |
140 |
141 | True
142 | Settings.settings
143 | True
144 |
145 |
146 | ResXFileCodeGenerator
147 | Resources.Designer.cs
148 |
149 |
150 |
151 |
152 |
153 | SettingsSingleFileGenerator
154 | Settings.Designer.cs
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
172 |
--------------------------------------------------------------------------------