C#刘铁猛老师视频代码
Posted 小GISer的成长之路
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C#刘铁猛老师视频代码相关的知识,希望对你有一定的参考价值。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleHelloWorld//控制台应用程序
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello,World!");
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WinFormHelloWorld
{
public partial class Form1 : Form//窗体类应用程序
{
public Form1()
{
InitializeComponent();
}
private void buttonSayhello_Click(object sender, EventArgs e)
{
textBoxShowHello.Text = "HelloWorld!";
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfHelloWorld
{
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void ButtonSayHello_Click(object sender, RoutedEventArgs e)
{
TextBoxShowHello.Text = "Hello,World!";
}
}
}
以上是关于C#刘铁猛老师视频代码的主要内容,如果未能解决你的问题,请参考以下文章