⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 settingsform.cs

📁 how to use RSS services on windows mobile
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LiveQnA4
{
    public partial class SettingsForm : Form
    {
        private static int refreshTime = 60;
        private static string userID = "01234567890123456789012345678901";   // This is a fake User Id
        // Take a look at the MainForm.cs source file for links on how to obtain your own Live QnA User Id.

        public SettingsForm()
        {
            InitializeComponent();
        }

        public static int RefreshTime
        {
            get
            {
                return refreshTime;
            }
        }

        public static string UserID
        {
            get
            {
                return userID;
            }
        }

        private void SettingsForm_Load(object sender, EventArgs e)
        {
            textBox1.Text = userID;
            textBox2.Text = refreshTime.ToString();
        }

        private void SettingsForm_Closing(object sender, CancelEventArgs e)
        {
            if (this.DialogResult == DialogResult.OK)
            {
                refreshTime = Convert.ToInt32(textBox2.Text);
            }
        }

        private void menuItemCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void menuItemOK_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -