Example #1
0
 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;
 }
Example #2
0
 public WindowManager(Settings settings)
 {
     this.settings = settings;
 }