示例#1
0
        private void materialRaisedButton1_Click(object sender, EventArgs e)
        {
            VotingsUser.Theme++;
            if (VotingsUser.Theme > 3)
            {
                VotingsUser.Theme = 0;
            }

            CommonHelpers.ChangeTheme(VotingsUser.Theme);

            VotingsUser.ChangeSetting("theme", VotingsUser.Theme.ToString());
        }
示例#2
0
 private void materialCheckBoxUseLanLocalIP_CheckedChanged(object sender, EventArgs e)
 {
     VotingsUser.UseLanLocalIP = materialCheckBoxUseLanLocalIP.Checked;
     VotingsUser.ChangeSetting("useLanLocalIP", materialCheckBoxUseLanLocalIP.Checked.ToString());
 }
示例#3
0
 private void materialCheckBoxPeerDiscovery_CheckedChanged(object sender, EventArgs e)
 {
     VotingsUser.PeerDiscovery = materialCheckBoxPeerDiscovery.Checked;
     VotingsUser.ChangeSetting("peerDiscovery", materialCheckBoxPeerDiscovery.Checked.ToString());
 }
示例#4
0
 private void textBoxTrackers_TextChanged(object sender, EventArgs e)
 {
     VotingsUser.Trackers = textBoxTrackers.Text;
     VotingsUser.ChangeSetting("trackers", textBoxTrackers.Text.ToString());
 }
示例#5
0
 private void materialCheckBoxCreateBlocks_CheckedChanged(object sender, EventArgs e)
 {
     VotingsUser.CreateOwnBlocks = materialCheckBoxCreateBlocks.Checked;
     VotingsUser.ChangeSetting("createOwnBlocks", materialCheckBoxCreateBlocks.Checked.ToString());
 }