-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,267 additions
and
432 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> | ||
</startup> | ||
</configuration> | ||
</configuration> |
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 |
---|---|---|
@@ -1,16 +1,45 @@ | ||
// Copyright © 2022 SLT World. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. | ||
// Use of this source code is governed by a GNU license that can be found in the LICENSE file. | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SLBr | ||
{ | ||
public class Favourite | ||
public class Favourite : INotifyPropertyChanged | ||
{ | ||
public string Name { get; set; } | ||
public string Arguments { get; set; } | ||
#region INotifyPropertyChanged | ||
public event PropertyChangedEventHandler PropertyChanged = delegate { }; | ||
|
||
private void RaisePropertyChanged(string Name) | ||
{ | ||
PropertyChanged(this, new PropertyChangedEventArgs(Name)); | ||
} | ||
#endregion | ||
|
||
public string Name | ||
{ | ||
get { return DName; } | ||
set | ||
{ | ||
DName = value; | ||
RaisePropertyChanged("Name"); | ||
} | ||
} | ||
public string Arguments | ||
{ | ||
get { return DArguments; } | ||
set | ||
{ | ||
DArguments = value; | ||
RaisePropertyChanged("Arguments"); | ||
} | ||
} | ||
|
||
public string DName { get; set; } | ||
public string DArguments { get; set; } | ||
} | ||
} |
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,40 @@ | ||
using CefSharp; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SLBr | ||
{ | ||
public class JsDialogHandler : IJsDialogHandler | ||
{ | ||
public bool OnBeforeUnloadDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, string messageText, bool isReload, IJsDialogCallback callback) | ||
{ | ||
return false; | ||
} | ||
|
||
public void OnDialogClosed(IWebBrowser chromiumWebBrowser, IBrowser browser) | ||
{ | ||
} | ||
|
||
public bool OnJSDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, CefJsDialogType dialogType, string messageText, string defaultPromptText, IJsDialogCallback callback, ref bool suppressMessage) | ||
{ | ||
//Plan to override default dialog | ||
|
||
//Remove dialog from showing | ||
//callback.Continue(true); | ||
//return true; | ||
|
||
//Surpress dialog | ||
//suppressMessage = true; | ||
//return false; | ||
|
||
return false; | ||
} | ||
|
||
public void OnResetDialogState(IWebBrowser chromiumWebBrowser, IBrowser browser) | ||
{ | ||
} | ||
} | ||
} |
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
Oops, something went wrong.