コード例 #1
0
ファイル: Sprung.cs プロジェクト: guija/sprung
 public Sprung()
 {
     InitializeComponent();
     this.settings = new Settings();
     this.tray = new SystemTray(settings);
     this.windowManager = new WindowManager(settings);
     this.windowMatcher = new WindowMatcher(this.windowManager);
     this.Visible = false;
     this.Opacity = 0;
     this.ControlBox = false;
     this.ShowInTaskbar = false;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.mainWindow = new Window(this.Handle);
     this.Deactivate += DeactivateCallback;
     this.KeyPreview = true;
     this.KeyDown += GlobalKeyDown;
 }
コード例 #2
0
ファイル: WindowMatcher.cs プロジェクト: guija/sprung
 public WindowMatcher(WindowManager windowManager)
 {
     this.windowManager = windowManager;
 }