Permalink
Browse files

Added support for more coins

  • Loading branch information...
1 parent 32356be commit 4f5141c8050427ca43166da3b67970e5cf5ee2ea p_bal committed Nov 17, 2016
@@ -12,18 +12,22 @@ class Coin
public String name { get { return _name; } }
public int _port;
public int port { get { return _port; } }
- private String _host;
+ public String _host;
public String host { get { return _host; } }
public List<Mode> _modes = new List<Mode>();
public List<Mode> modes { get { return _modes; } }
public List<Server> _servers = new List<Server>();
public List<Server> servers { get { return _servers; } }
+ public String _algorithm;
+ public String algorithm { get { return _algorithm; } }
- public Coin(String name, int port, String host)
+
+ public Coin(String name, int port, String host, String algorithm)
{
this._name = name;
this._port = port;
this._host = host;
+ this._algorithm = algorithm;
_id = ++lastID;
}
}
@@ -61,6 +61,8 @@ private void InitializeComponent()
this.gpuAMDRadioButton = new System.Windows.Forms.RadioButton();
this.gpuNVIDIARadioButton = new System.Windows.Forms.RadioButton();
this.saveSettingsButton = new System.Windows.Forms.Button();
+ this.sgminerRadioButton = new System.Windows.Forms.RadioButton();
+ this.label8 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.coinBindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.coinBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.serverBindingSource)).BeginInit();
@@ -149,7 +151,7 @@ private void InitializeComponent()
// startButton
//
this.startButton.Enabled = false;
- this.startButton.Location = new System.Drawing.Point(505, 266);
+ this.startButton.Location = new System.Drawing.Point(599, 266);
this.startButton.Name = "startButton";
this.startButton.Size = new System.Drawing.Size(110, 23);
this.startButton.TabIndex = 9;
@@ -175,7 +177,7 @@ private void InitializeComponent()
//
this.resultLabel.AccessibleName = "";
this.resultLabel.AutoSize = true;
- this.resultLabel.Location = new System.Drawing.Point(12, 204);
+ this.resultLabel.Location = new System.Drawing.Point(12, 215);
this.resultLabel.Name = "resultLabel";
this.resultLabel.Size = new System.Drawing.Size(155, 13);
this.resultLabel.TabIndex = 10;
@@ -210,7 +212,7 @@ private void InitializeComponent()
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
- this.pictureBox1.Location = new System.Drawing.Point(460, 16);
+ this.pictureBox1.Location = new System.Drawing.Point(583, 13);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(126, 120);
this.pictureBox1.TabIndex = 12;
@@ -221,7 +223,7 @@ private void InitializeComponent()
//
this.configTextBox.Location = new System.Drawing.Point(132, 147);
this.configTextBox.Name = "configTextBox";
- this.configTextBox.Size = new System.Drawing.Size(483, 20);
+ this.configTextBox.Size = new System.Drawing.Size(577, 20);
this.configTextBox.TabIndex = 13;
this.configTextBox.Text = "-";
//
@@ -280,19 +282,41 @@ private void InitializeComponent()
//
// saveSettingsButton
//
- this.saveSettingsButton.Location = new System.Drawing.Point(397, 266);
+ this.saveSettingsButton.Location = new System.Drawing.Point(491, 266);
this.saveSettingsButton.Name = "saveSettingsButton";
this.saveSettingsButton.Size = new System.Drawing.Size(102, 23);
this.saveSettingsButton.TabIndex = 8;
this.saveSettingsButton.Text = "Save settings";
this.saveSettingsButton.UseVisualStyleBackColor = true;
this.saveSettingsButton.Click += new System.EventHandler(this.saveSettingsButton_Click);
//
+ // sgminerRadioButton
+ //
+ this.sgminerRadioButton.AutoSize = true;
+ this.sgminerRadioButton.Location = new System.Drawing.Point(373, 174);
+ this.sgminerRadioButton.Name = "sgminerRadioButton";
+ this.sgminerRadioButton.Size = new System.Drawing.Size(87, 17);
+ this.sgminerRadioButton.TabIndex = 16;
+ this.sgminerRadioButton.TabStop = true;
+ this.sgminerRadioButton.Text = "sgminer (x64)";
+ this.sgminerRadioButton.UseVisualStyleBackColor = true;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(672, 250);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(37, 13);
+ this.label8.TabIndex = 17;
+ this.label8.Text = "v1.0.1";
+ //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(627, 301);
+ this.ClientSize = new System.Drawing.Size(721, 301);
+ this.Controls.Add(this.label8);
+ this.Controls.Add(this.sgminerRadioButton);
this.Controls.Add(this.saveSettingsButton);
this.Controls.Add(this.gpuNVIDIARadioButton);
this.Controls.Add(this.gpuAMDRadioButton);
@@ -355,6 +379,8 @@ private void InitializeComponent()
private System.Windows.Forms.RadioButton gpuAMDRadioButton;
private System.Windows.Forms.RadioButton gpuNVIDIARadioButton;
private System.Windows.Forms.Button saveSettingsButton;
+ private System.Windows.Forms.RadioButton sgminerRadioButton;
+ private System.Windows.Forms.Label label8;
}
}
Oops, something went wrong.

0 comments on commit 4f5141c

Please sign in to comment.