Skip to content

Commit

Permalink
fix ProxyForm
Browse files Browse the repository at this point in the history
  • Loading branch information
loamen committed Aug 23, 2018
1 parent ffa4312 commit bf8a435
Showing 1 changed file with 10 additions and 35 deletions.
45 changes: 10 additions & 35 deletions src/ProxyHero/TabPages/ProxyForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,44 +71,19 @@ public ProxyForm()
CheckForIllegalCrossThreadCalls = false;
dgvProxyList.AutoGenerateColumns = false;

#if DEBUG
if (Config.IsChineseLanguage)
#else
if (Config.IsChineseOs)
#endif

var dataGridViewColumn = dgvProxyList.Columns["LocationColumn"];
if (dataGridViewColumn != null)
{
var dataGridViewColumn = dgvProxyList.Columns["LocationColumn"];
if (dataGridViewColumn != null)
{
var gridViewColumn = dgvProxyList.Columns["AnonymityCol"];
if (gridViewColumn != null)
gridViewColumn.Visible = dataGridViewColumn.Visible = true;
}
var viewColumn = dgvProxyList.Columns["AnonymityEn"];
if (viewColumn != null)
{
var column = dgvProxyList.Columns["CountryEn"];
if (column != null)
viewColumn.Visible = column.Visible = false;
}
var gridViewColumn = dgvProxyList.Columns["AnonymityCol"];
if (gridViewColumn != null)
gridViewColumn.Visible = dataGridViewColumn.Visible = true;
}
else
var viewColumn = dgvProxyList.Columns["AnonymityEn"];
if (viewColumn != null)
{
var dataGridViewColumn = dgvProxyList.Columns["AnonymityCol"];
if (dataGridViewColumn != null)
{
var gridViewColumn = dgvProxyList.Columns["LocationColumn"];
if (gridViewColumn != null)
dataGridViewColumn.Visible = gridViewColumn.Visible = false;
}
var viewColumn = dgvProxyList.Columns["AnonymityEn"];
if (viewColumn != null)
{
var column = dgvProxyList.Columns["CountryEn"];
if (column != null)
viewColumn.Visible = column.Visible = true;
}
var column = dgvProxyList.Columns["CountryEn"];
if (column != null)
viewColumn.Visible = column.Visible = false;
}
}

Expand Down

0 comments on commit bf8a435

Please sign in to comment.