⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flowform.cs.svn-base

📁 这是一个windows mobile程序能够实现窗体运货效果非常不错
💻 SVN-BASE
字号:
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;

namespace Aspecto.FlowFX
{
    public class FlowForm : Form
    {
        private static FlowNavigator flow;
        internal string realText = "";

        public FlowForm()
        {
            this.closed = false;
            if (flow == null)
                flow = new FlowNavigator(this);
        }

        public FlowNavigator FlowNavigator
        {
            get
            {
                return flow;
            }
        }

        internal void FlowClose(bool recursive)
        {
            this.closed = true;
            if (recursive)
            {
                base.DialogResult = DialogResult.Abort;
            }
            base.Close();
        }

        protected virtual void Layout()
        {
        }

        protected override void OnClosing(CancelEventArgs e)
        {
            base.OnClosing(e);
            if (!this.closed)
            {
                FlowNavigator.ForceBack();
            }
        }

        protected override void OnKeyPress(KeyPressEventArgs args)
        {
            base.OnKeyPress(args);
            if (args.KeyChar == '\x001b')
            {
                FlowNavigator.Back();
                args.Handled = true;
            }
        }

        protected override void OnLoad(EventArgs args)
        {
            base.OnLoad(args);
        }

        protected override void OnResize(EventArgs args)
        {
            base.OnResize(args);
            if ((this.size.Height != base.ClientSize.Height) || (this.size.Width != base.ClientSize.Width))
            {
                this.size = base.ClientSize;
                this.Layout();
            }
        }
        private bool closed;
        private Size size;
    
    }
}

⌨️ 快捷键说明

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