This repository has been archived by the owner on Dec 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from porohkun/v0.1
merge for 0.2 release
- Loading branch information
Showing
108 changed files
with
4,309 additions
and
942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,3 +241,4 @@ ModelManifest.xml | |
# FAKE - F# Make | ||
.fake/ | ||
/packages/ | ||
/Lab/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ScreenSlicer | ||
This application is designed to conveniently place multiple windows on ultrawide monitors. It works the same for multi-screen setups. | ||
|
||
[![Latest Stable Release](https://img.shields.io/github/release/porohkun/ScreenSlicer.svg?style=flat-square)](https://github.com/porohkun/ScreenSlicer/releases) | ||
[![Total Downloads](https://img.shields.io/github/downloads/porohkun/ScreenSlicer/total.svg?style=flat-square)](https://github.com/porohkun/ScreenSlicer/releases) | ||
[![License](https://img.shields.io/github/license/porohkun/ScreenSlicer.svg?style=flat-square)](https://github.com/porohkun/ScreenSlicer/blob/master/LICENSE) | ||
|
||
Download binaries from [releases page](https://github.com/porohkun/ScreenSlicer/releases) | ||
## How it works | ||
![Demo](docs/demo.gif) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
|
||
namespace ScreenSlicer.Commands | ||
{ | ||
public class DelegateCommand : InjectableCommand<DelegateCommand> | ||
{ | ||
private Action<object> _executeAction; | ||
private Func<object, bool> _canExecuteAction; | ||
|
||
public DelegateCommand(Action<object> executeAction, Func<object, bool> canExecuteAction = null) | ||
{ | ||
_executeAction = executeAction; | ||
_canExecuteAction = canExecuteAction; | ||
} | ||
|
||
protected override bool CanExecuteInternal(object parameter) | ||
{ | ||
return _canExecuteAction?.Invoke(parameter) ?? true; | ||
} | ||
|
||
protected override void ExecuteInternal(object parameter) | ||
{ | ||
_executeAction?.Invoke(parameter); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Diagnostics; | ||
|
||
namespace ScreenSlicer.Commands | ||
{ | ||
public class HyperlinkCommand : InjectableCommand<HyperlinkCommand> | ||
{ | ||
protected override bool CanExecuteInternal(object parameter) | ||
{ | ||
return true; | ||
} | ||
|
||
protected override void ExecuteInternal(object parameter) | ||
{ | ||
if (parameter is string url) | ||
Process.Start(new ProcessStartInfo(url)); | ||
} | ||
} | ||
} |
Oops, something went wrong.