public TweenMain()
{
_hookGlobalHotkey = new HookGlobalHotkey(this);
// この呼び出しは、Windows フォーム デザイナで必要です。
InitializeComponent();
// InitializeComponent() 呼び出しの後で初期化を追加します。
if (!this.DesignMode)
{
// デザイナでの編集時にレイアウトが縦方向に数pxずれる問題の対策
this.StatusText.Dock = DockStyle.Fill;
}
this.tweetDetailsView.Owner = this;
this.TimerTimeline.Elapsed += this.TimerTimeline_Elapsed;
this._hookGlobalHotkey.HotkeyPressed += _hookGlobalHotkey_HotkeyPressed;
this.gh.NotifyClicked += GrowlHelper_Callback;
// メイリオフォント指定時にタブの最小幅が広くなる問題の対策
this.ListTab.HandleCreated += (s, e) => NativeMethods.SetMinTabWidth((TabControl)s, 40);
this.ImageSelector.Visible = false;
this.ImageSelector.Enabled = false;
this.ImageSelector.FilePickDialog = OpenFileDialog1;
this.workerProgress = new Progress<string>(x => this.StatusLabel.Text = x);
this.ReplaceAppName();
this.InitializeShortcuts();
}