예제 #1
0
        /// <summary>
        /// 按钮:选择图像
        /// </summary>
        private void button1_Click(object sender, EventArgs e)
        {
            PicResourceForm prf = new PicResourceForm("选择背景", 2);

            prf.ShowDialog(this);
            this.textBox1.Text = this.GotFileName;
        }
예제 #2
0
        /// <summary>
        /// 按钮:选择图像
        /// </summary>
        private void button1_Click(object sender, EventArgs e)
        {
            PicResourceForm prf = new PicResourceForm("选择显示图片", 0, this.isEditing ? this.textBox1.Text : null);

            prf.ShowDialog(this);
            this.textBox1.Text = this.GotFileName;
        }
예제 #3
0
        /// <summary>
        /// 菜单:图片
        /// </summary>
        private void 图片ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PicResourceForm prf = new PicResourceForm("图像资源管理器", 0);

            prf.ShowDialog(this);
        }