1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-08-21 03:54:07 +02:00
Files
Configuration
Core
Controls
Handling
ContextMenuHandler.cs
TweetDeckBridge.cs
TweetNotification.cs
Other
FormBrowser.Designer.cs
FormBrowser.cs
FormNotification.Designer.cs
FormNotification.cs
Libraries
Migration
Properties
Resources
.gitignore
LICENSE
Program.cs
TweetDick.csproj
TweetDick.sln
_postbuild.bat
TweetDuck/Core/Handling/TweetDeckBridge.cs
2016-04-15 13:23:40 +02:00

50 lines
1.2 KiB
C#

using System.Diagnostics;
namespace TweetDck.Core.Handling{
class TweetDeckBridge{
private readonly FormBrowser form;
public string BrandName{
get{
return Program.BrandName;
}
}
public TweetDeckBridge(FormBrowser form){
this.form = form;
}
public void LoadFontSizeClass(string fsClass){
form.InvokeSafe(() => {
TweetNotification.SetFontSizeClass(fsClass);
});
}
public void LoadNotificationHeadContents(string headContents){
form.InvokeSafe(() => {
TweetNotification.SetHeadTag(headContents);
});
}
public void OpenSettingsMenu(){
form.InvokeSafe(() => {
form.OpenSettings();
});
}
public void OnTweetPopup(string tweetHtml, int tweetCharacters){
form.InvokeSafe(() => {
form.OnTweetPopup(new TweetNotification(tweetHtml,tweetCharacters));
});
}
public void OpenBrowser(string url){
Process.Start(url);
}
public void Log(string data){
Debug.WriteLine(data);
}
}
}