Exemplo n.º 1
0
 private void onMinerAddressChanged(object sender, EventArgs e)
 {
     minerAccountName = comboBox2.Text;
     Utility.Settings set = Utility.loadFile <Utility.Settings>("C:\\IronChain\\settings.set");
     Console.WriteLine("mineracocunt" + minerAccountName);
     set.minerAccount = minerAccountName;
     Utility.storeFile(set, "C:\\IronChain\\settings.set");
 }
Exemplo n.º 2
0
        private void onAccountChanged(object sender, EventArgs e)
        {
            if (comboBox1.Text.Equals("Add a new Account"))
            {
                addAccount window = new addAccount();
                window.Show();
            }
            else
            {
                mainAccount = comboBox1.Text;
                Utility.Settings set = Utility.loadFile <Utility.Settings>("C:\\IronChain\\settings.set");
                set.mainAccount = mainAccount;
                Utility.storeFile(set, "C:\\IronChain\\settings.set");

                analyseChain();
                label3.Text = returnCoinBalance(accountList[comboBox1.Text].publicKey, latestBlock) + " Iron";
            }
        }