Skip to content

Commit

Permalink
Added ability to view pool interface from pool list.
Browse files Browse the repository at this point in the history
  • Loading branch information
zemrys committed Oct 28, 2017
1 parent b004cd9 commit 694497b
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 46 deletions.
25 changes: 8 additions & 17 deletions Vertminer/Main.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 19 additions & 25 deletions Vertminer/Main.vb
Expand Up @@ -14,6 +14,7 @@ Imports VertcoinOneClickMiner.Core

Public Class Main

Dim Pool_Click As New DataGridViewCellEventHandler(AddressOf dataGridView1_CellContentClick)
Dim JSONConverter As JavaScriptSerializer = New JavaScriptSerializer()
Private _logger As ILogger

Expand Down Expand Up @@ -170,6 +171,14 @@ Public Class Main

End Sub

Private Sub dataGridView1_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick

If e.ColumnIndex = 1 Then
System.Diagnostics.Process.Start(DataGridView1(1, e.RowIndex).Value.ToString.Replace("stratum+tcp", "http"))
End If

End Sub

Public Sub Process_Check()

For Each p As Process In System.Diagnostics.Process.GetProcesses
Expand Down Expand Up @@ -704,14 +713,18 @@ Public Class Main
pools.Clear()
pools = poolbuff
Dim chk As New DataGridViewCheckBoxColumn()
DataGridView1.Columns.Add(chk)
chk.HeaderText = "Select"
chk.Name = "Select"
DataGridView1.Columns.Add(chk)
Dim link As New DataGridViewLinkColumn()
link.HeaderText = "Pool"
link.Name = "Pool"
DataGridView1.Columns.Add(link)
DataGridView1.ColumnCount = 4
With DataGridView1.Columns(1)
.Name = "Pool"
.AutoSizeMode = DataGridViewAutoSizeColumnsMode.AllCells
End With
'With DataGridView1.Columns(1)
' .Name = "Pool"
' .AutoSizeMode = DataGridViewAutoSizeColumnsMode.AllCells
'End With
With DataGridView1.Columns(2)
.Name = "Worker"
End With
Expand Down Expand Up @@ -1407,25 +1420,6 @@ Public Class Main

End Sub

Private Sub P2PoolConfigToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles P2PoolConfigToolStripMenuItem.Click

Try
p2pool_config_file = settingsfolder & "\p2pool\start_p2pool.bat"
If System.IO.File.Exists(p2pool_config_file) = True Then
Process.Start("notepad.exe", p2pool_config_file)
Else
MsgBox("No p2pool config file found.")
End If
Catch ex As Exception
MsgBox(ex.Message)
_logger.LogError(ex)
Invoke(New MethodInvoker(AddressOf SaveSettingsJSON))
Finally
_logger.Trace("P2PoolConfigToolStripMenuItem(), Load P2Pool Config: OK")
End Try

End Sub

Private Sub AboutToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles AboutToolStripMenuItem.Click

Dim dialog = New about(_logger)
Expand Down Expand Up @@ -1908,7 +1902,7 @@ Public Class Main

End Sub

Private Sub P2PoolWebInterfaceToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles P2PoolWebInterfaceToolStripMenuItem.Click
Private Sub P2PoolWebInterfaceToolStripMenuItem_Click(sender As Object, e As EventArgs)

Try
Dim url As String = pools(0).replace("stratum+tcp", "http")
Expand Down
4 changes: 2 additions & 2 deletions Vertminer/My Project/AssemblyInfo.vb
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("1.1.5.0")>
<Assembly: AssemblyFileVersion("1.1.5.0")>
<Assembly: AssemblyVersion("1.1.6.0")>
<Assembly: AssemblyFileVersion("1.1.6.0")>
10 changes: 8 additions & 2 deletions Vertminer/settings.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Vertminer/settings.resx
Expand Up @@ -120,6 +120,12 @@
<metadata name="ToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="PictureBox12.ToolTip" xml:space="preserve">
<value>Select the network in which p2pool will connect.
Network 1 is recommended for larger (multi-card &gt;100MH) miners.
Expand Down

0 comments on commit 694497b

Please sign in to comment.