• 大小: 8.46MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-03
  • 语言: C#
  • 标签: C#  面向对象  金旭亮  

资源简介

金旭亮《C#面向对象程序设计》教案_4:类和对象。此教案针对零面向对象基础的学生,在前3讲的基础之上系统介绍“类”和“对象”这两个核心概念及其在多窗体编程中的应用,包括一个47页的PDF文档及多个示例源码,VS2010格式。后续教案将陆续发布,请关注CSDN博客上的更新通告。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MultiFormProgram1
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void btnSend_Click(object sender EventArgs e)
        {
            if (txtUserInput.Text == ““)
            {
                MessageBox.Show(“请输入一条信息“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Asterisk);
                //焦点回到文本框
                txtUserInput.Focus();
                return;
            }
            //创建从窗体对象
            frmOther frm = new frmOther();
            //向从窗体的自定义属性赋值
            frm.ShowText = txtUserInput.Text;
            //显示从窗体
            frm.Show();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9728  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\bin\Debug\MultiFormProgram1.exe

     文件      38400  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\bin\Debug\MultiFormProgram1.pdb

     文件      11608  2011-03-31 14:37  SourceCode\多窗体编程\MultiFormProgram1\bin\Debug\MultiFormProgram1.vshost.exe

     文件        490  2010-03-17 22:39  SourceCode\多窗体编程\MultiFormProgram1\bin\Debug\MultiFormProgram1.vshost.exe.manifest

     文件       9728  2009-03-03 11:53  SourceCode\多窗体编程\MultiFormProgram1\bin\Release\MultiFormProgram1.exe

     文件      26112  2009-03-03 11:53  SourceCode\多窗体编程\MultiFormProgram1\bin\Release\MultiFormProgram1.pdb

     文件        988  2008-08-31 19:58  SourceCode\多窗体编程\MultiFormProgram1\frmMain.cs

     文件       3284  2008-08-31 19:58  SourceCode\多窗体编程\MultiFormProgram1\frmMain.Designer.cs

     文件       5814  2008-08-31 19:58  SourceCode\多窗体编程\MultiFormProgram1\frmMain.resx

     文件        647  2008-08-31 19:58  SourceCode\多窗体编程\MultiFormProgram1\frmOther.cs

     文件       2207  2008-08-31 19:58  SourceCode\多窗体编程\MultiFormProgram1\frmOther.Designer.cs

     文件       5814  2008-08-31 19:58  SourceCode\多窗体编程\MultiFormProgram1\frmOther.resx

     文件       4435  2010-03-14 12:37  SourceCode\多窗体编程\MultiFormProgram1\MultiFormProgram1.csproj

     文件        923  2011-03-31 14:48  SourceCode\多窗体编程\MultiFormProgram1\MultiFormProgram1.sln

    ..A..H.     17408  2011-03-31 14:48  SourceCode\多窗体编程\MultiFormProgram1\MultiFormProgram1.suo

     文件       6400  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1474  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\GenerateResource-ResGen.read.1.tlog

     文件       2774  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\GenerateResource-ResGen.write.1.tlog

     文件       5392  2011-03-31 14:37  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\MultiFormProgram1.csproj.FileListAbsolute.txt

     文件        910  2009-03-05 09:22  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\MultiFormProgram1.csproj.GenerateResource.Cache

     文件       9728  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\MultiFormProgram1.exe

     文件        180  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\MultiFormProgram1.frmMain.resources

     文件        180  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\MultiFormProgram1.frmOther.resources

     文件      38400  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\MultiFormProgram1.pdb

     文件        180  2011-03-31 14:36  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\MultiFormProgram1.Properties.Resources.resources

     文件       4608  2010-03-14 12:37  SourceCode\多窗体编程\MultiFormProgram1\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       1792  2009-03-03 11:53  SourceCode\多窗体编程\MultiFormProgram1\obj\Release\MultiFormProgram1.csproj.FileListAbsolute.txt

     文件        910  2009-03-03 11:53  SourceCode\多窗体编程\MultiFormProgram1\obj\Release\MultiFormProgram1.csproj.GenerateResource.Cache

     文件       9728  2009-03-03 11:53  SourceCode\多窗体编程\MultiFormProgram1\obj\Release\MultiFormProgram1.exe

     文件        180  2009-03-03 11:53  SourceCode\多窗体编程\MultiFormProgram1\obj\Release\MultiFormProgram1.frmMain.resources

............此处省略400个文件信息

评论

共有 条评论