Networking.ProxyType = proxyType;
Networking.Proxy = proxy;
- NativeMethods.SetProxy(proxyType, proxyAddress, proxyPort, proxyUser, proxyPassword);
+ NativeMethods.SetProxy(proxyType, proxyAddress, proxyPort);
OnWebProxyChanged(EventArgs.Empty);
}
=> SelectItem(listView, -1 /* all items */);
#region "画面ブリンク用"
- public static bool FlashMyWindow(IntPtr hwnd,
- FlashSpecification flashType,
- int flashCount)
+ public static bool FlashMyWindow(IntPtr hwnd, int flashCount)
{
var fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToInt32(Marshal.SizeOf(fInfo));
throw new Win32Exception();
}
- public static void SetProxy(ProxyType pType, string host, int port, string username, string password)
+ public static void SetProxy(ProxyType pType, string host, int port)
{
string proxy = null;
switch (pType)
//mentions新着時に画面ブリンク
if (!_initial && SettingManager.Common.BlinkNewMentions && newMentions && Form.ActiveForm == null)
{
- NativeMethods.FlashMyWindow(this.Handle, NativeMethods.FlashSpecification.FlashTray, 3);
+ NativeMethods.FlashMyWindow(this.Handle, 3);
}
}
}
}
- private void ColorizeList(ListViewItem Item, PostClass post, int Index)
+ private void ColorizeList(ListViewItem Item, PostClass post)
{
//Index:更新対象のListviewItem.Index。Colorを返す。
//-1は全キャッシュ。Colorは返さない(ダミーを戻す)
var tab = this._statuses.Tabs[tabPage.Text];
try
{
- e.Item = this.CreateItem(tab, tab[e.ItemIndex], e.ItemIndex);
+ e.Item = this.CreateItem(tab, tab[e.ItemIndex]);
}
catch (Exception)
{
var tab = this.CurrentTab;
var posts = tabInfo[startIndex, endIndex]; //配列で取得
var listItems = Enumerable.Range(0, cacheLength)
- .Select(x => this.CreateItem(tab, posts[x], startIndex + x))
+ .Select(x => this.CreateItem(tab, posts[x]))
.ToArray();
var listCache = new ListViewItemCache
private void PurgeListViewItemCache()
=> Interlocked.Exchange(ref this._listItemCache, null);
- private ListViewItem CreateItem(TabModel tab, PostClass Post, int Index)
+ private ListViewItem CreateItem(TabModel tab, PostClass Post)
{
var mk = new StringBuilder();
//if (Post.IsDeleted) mk.Append("×");
ChangeItemStyleRead(read, itm, Post, null);
if (tab.TabName == this.CurrentTabName)
- this.ColorizeList(itm, Post, Index);
+ this.ColorizeList(itm, Post);
return itm;
}