newfeedform.cs

来自「how to use RSS services on windows mobil」· CS 代码 · 共 48 行

CS
48
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LiveQnA3
{
    public partial class NewFeedForm : Form
    {
        private string feed;

        public Uri Feed
        {
            get
            {
                return new Uri(feed);
            }
        }

        public NewFeedForm()
        {
            InitializeComponent();
        }

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

        private void menuItemAdd_Click(object sender, EventArgs e)
        {
            feed = textBox1.Text;
            DialogResult = DialogResult.OK;
            this.Close();
        }

        private void NewFeedForm_Load(object sender, EventArgs e)
        {
            textBox1.Text = "http://";
            textBox1.SelectionStart = textBox1.Text.Length;
            textBox1.SelectionLength = 0;
        }
    }
}

⌨️ 快捷键说明

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