mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-02 20:34:07 +02:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
namespace TweetDick.Core.Handling{
|
|
class TweetDeckBridge{
|
|
private readonly FormBrowser form;
|
|
|
|
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 Log(string data){
|
|
System.Diagnostics.Debug.WriteLine(data);
|
|
}
|
|
}
|
|
}
|