#nullable enable
using System;
+using OpenTween.Models;
using OpenTween.Setting;
namespace OpenTween
public SettingManager Settings { get; } = SettingManager.Instance;
+ public TabInformations TabInfo { get; } = TabInformations.GetInstance();
+
public CultureService CultureService
=> this.cultureServiceLazy.Value;
=> new(this.Settings.Common);
private TweenMain CreateTweenMain()
- => new();
+ => new(this.Settings, this.TabInfo);
public void Dispose()
{
private FormWindowState formWindowState = FormWindowState.Normal; // フォームの状態保存用 通知領域からアイコンをクリックして復帰した際に使用する
// 設定ファイル
- private readonly SettingManager settings = SettingManager.Instance;
+ private readonly SettingManager settings;
// twitter解析部
private readonly TwitterApi twitterApi = new(ApplicationSettings.TwitterConsumerKey, ApplicationSettings.TwitterConsumerSecret);
private readonly StringFormat sfTab = new();
//////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+ /// <summary>発言保持クラス</summary>
private readonly TabInformations statuses;
/// <summary>
}
}
- public TweenMain()
+ public TweenMain(SettingManager settingManager, TabInformations tabInfo)
{
+ this.settings = settingManager;
+ this.statuses = tabInfo;
+
this.InitializeComponent();
if (!this.DesignMode)
Regex.CacheSize = 100;
- // 発言保持クラス
- this.statuses = TabInformations.GetInstance();
-
// アイコン設定
this.LoadIcons();
this.Icon = this.mainIcon; // メインフォーム(TweenMain)