@@ -41,7 +41,6 @@ public Form1()
41
41
m_Version = registryManager . GetVersion ( ) ;
42
42
messager . InitializeMessager ( logger ) ;
43
43
InitializeComponent ( ) ;
44
-
45
44
//Set version in window header
46
45
this . Text = "ETNCRAFT (" + m_Version + ")" ;
47
46
this . Update ( ) ;
@@ -238,6 +237,16 @@ private void LinkWalletGen_LinkClicked(object sender, LinkLabelLinkClickedEventA
238
237
{
239
238
Process . Start ( "https://my.electroneum.com/offline_paper_electroneum_walletV1.6.html" ) ;
240
239
}
240
+
241
+ private void btnETNWorth_Click ( object sender , EventArgs e )
242
+ {
243
+ MessageBox . Show ( GetCurrentCoinPrice ( ) , "Current ETN Worth" ) ;
244
+ }
245
+
246
+ private void btnDeleteRegKeys_Click ( object sender , EventArgs e )
247
+ {
248
+ MessageBox . Show ( registryManager . DeleteRegistryKey ( ) , "ETNCRAFT Services" ) ;
249
+ }
241
250
#endregion
242
251
243
252
#region DropDown Handlers
@@ -341,14 +350,18 @@ private void SaveConfig()
341
350
{
342
351
registryManager . SetAutoLoad ( chkAutoLoadConfig . Checked ) ;
343
352
registryManager . SetCustomPool ( txtCustomPool . Text ) ;
344
- registryManager . SetComponent ( cpuorgpu . SelectedText ) ;
353
+ registryManager . SetComponent ( cpuorgpu . SelectedItem . ToString ( ) ) ;
345
354
registryManager . SetPort ( port . Text ) ;
346
355
registryManager . SetPool ( m_IPoolID ) ;
347
- registryManager . SetComponent ( cpuorgpu . SelectedText ) ;
348
356
registryManager . SetWalletId ( wallet_address . Text ) ;
349
357
registryManager . SetTempLimit ( CheckTempLimitEntry ( txtTempLimit . Text ) ) ;
350
358
PushStatusMessage ( "Configuration Updated" ) ;
351
- MessageBox . Show ( "Config saved.\r \n These will be used after app restart" , "Saved" ) ;
359
+ //MessageBox.Show("Config saved.\r\nThese will be used after app restart", "Saved");
360
+ }
361
+ private void txtTempLimit_TextChanged ( object sender , EventArgs e )
362
+ {
363
+ //registryManager.SetTempLimit(CheckTempLimitEntry(txtTempLimit.Text));
364
+ m_iTemperatureAlert = int . Parse ( CheckTempLimitEntry ( txtTempLimit . Text ) ) ;
352
365
}
353
366
354
367
#endregion
@@ -589,15 +602,10 @@ private void LoadPoolListFromWebsite()
589
602
590
603
#endregion
591
604
592
- #endregion
593
-
594
- private void btnDeleteRegKeys_Click ( object sender , EventArgs e )
595
- {
596
- MessageBox . Show ( registryManager . DeleteRegistryKey ( ) , "ETNCRAFT Services" ) ;
597
- }
598
605
599
606
private string CheckTempLimitEntry ( string sText )
600
607
{
608
+ bool bFailed = false ;
601
609
string sTemperature = "" ;
602
610
if ( ! string . IsNullOrWhiteSpace ( sText ) )
603
611
{
@@ -606,12 +614,13 @@ private string CheckTempLimitEntry(string sText)
606
614
if ( temp >= 0 )
607
615
sTemperature = sText ;
608
616
else
609
- {
610
- sTemperature = "90" ;
611
- PushStatusMessage ( "Temp field in not an int. Limit set to 90" ) ;
612
- }
617
+ bFailed = true ;
618
+ else
619
+ bFailed = true ;
613
620
}
614
621
else
622
+ sTemperature = "90" ;
623
+ if ( bFailed )
615
624
{
616
625
sTemperature = "90" ;
617
626
PushStatusMessage ( "Temp field in not an int. Limit set to 90" ) ;
@@ -634,11 +643,16 @@ private string GetCurrentCoinPrice()
634
643
}
635
644
return sETNUSD ;
636
645
}
637
-
638
- private void button1_Click ( object sender , EventArgs e )
646
+
647
+ private void BuildInitAppInformationDisplay ( )
639
648
{
640
- MessageBox . Show ( GetCurrentCoinPrice ( ) , "Current ETN Worth" ) ;
649
+ string sMsg = "" ;
650
+ sMsg += "> Original fork by ParthK117\r \n " ;
651
+ sMsg += "> Current xmr-stak by fireice-uk" ;
652
+ sMsg += "> GUI,Configuration & miner compiled by ETNCRAFT team" ;
653
+ status . Text = sMsg ;
641
654
}
655
+ #endregion
642
656
}
643
657
public class PRICE_Rootobject
644
658
{
0 commit comments