Ejemplo n.º 1
0
        private void textBox_Username_Leave(object sender, EventArgs e)
        {
            tagSetting setting = Appinfo.QuerySetting();

            GetSetting(setting);
            Appinfo.UpdateSetting(setting);
        }
Ejemplo n.º 2
0
        private void checkBox_AutoStart_CheckedChanged(object sender, EventArgs e)
        {
            AppUtils.AutoStart(checkBox_AutoStart.Checked);
            tagSetting setting = Appinfo.QuerySetting();

            GetSetting(setting);
            Appinfo.UpdateSetting(setting);
        }
Ejemplo n.º 3
0
        private void textBox_Count_Leave(object sender, EventArgs e)
        {
            TextBox textBox = (TextBox)sender;

            if (textBox.Text.Trim().Equals(""))
            {
                textBox.Text = "9999";
            }
            int nTime = int.Parse(textBox.Text);

            if (nTime < 1)
            {
                textBox.Text = "1";
            }
            else if (nTime > 9999)
            {
                textBox.Text = "9999";
            }

            tagSetting setting = Appinfo.QuerySetting();

            GetSetting(setting);
            Appinfo.UpdateSetting(setting);
        }