?? flowform.cs.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 + -