main.cs

来自「Particle System Test Application on C#」· CS 代码 · 共 35 行

CS
35
字号
using System;
using System.Drawing;
using Microsoft.DirectX;
using Container = System.ComponentModel.Container;

/// <summary>
/// The main windows form for the application.
/// </summary>
public class MainClass{

    private GraphicsClass graphics = null;

    /// <summary>
    // Main entry point of the application.
    /// </summary>
    public static void Main()
    {
        MainClass m = new MainClass();
    }

    public MainClass()
    {
        try
        {
            graphics = new GraphicsClass();
        }
        catch(DirectXException)
        {
            return;
        }
        if( graphics.CreateGraphicsSample() )
            graphics.Run();
    }
}

⌨️ 快捷键说明

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