public Form1() { Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); InitializeComponent(); m_ServerEngine = new CppCLI(); this.FormBorderStyle = FormBorderStyle.FixedSingle; }
public NDYEditor() { InitializeComponent(); m_GameEngine = new CppCLI(RenderBox.Handle); this.KeyPreview = true; this.KeyDown += new KeyEventHandler(ListenerKeyDown); this.KeyUp += new KeyEventHandler(ListenerKeyUp); autoSaveWatch = new Stopwatch(); autoSaveWatch.Stop(); }
public form1() { InitializeComponent(); this.m_GameEngine = new CppCLI(); this.ResizeEnd += new EventHandler(form1_ResizeEnd); this.Resize += new EventHandler(form1_Resize); this.m_GameEngine.Init(RenderBox.Handle, RenderBox.Width, RenderBox.Height); this.m_APILoaded = true; this.KeyPreview = true; this.RenderBox.MouseClick += new MouseEventHandler(RenderBox_MouseClick); this.KeyDown += new KeyEventHandler(handle_KeyDown); }
public form1() { InitializeComponent(); m_GameEngine = new CppCLI(); this.ResizeEnd += new EventHandler(form1_ResizeEnd); this.Resize += new EventHandler(form1_Resize); //this.TextBoxToRender.MouseClick += new MouseEventHandler(TextBoxToRender_MouseClick); this.RenderBox.MouseDown += new MouseEventHandler(RenderBox_MouseDown); this.RenderBox.MouseUp += new MouseEventHandler(RenderBox_MouseUp); //this.RenderBox.PreviewKeyDown += new KeyEventHandler( this.KeyPreview = true; this.KeyDown += new KeyEventHandler(RenderBox_KeyDown); this.KeyUp += new KeyEventHandler(RenderBox_KeyUp); this.KeyPress += new KeyPressEventHandler(RenderBox_KeyPress); HumanMale.Checked = true; this.InitEngine(); }
private void NDYEditor_FormClosed(object sender, FormClosedEventArgs e) { m_GameEngine = null; GC.WaitForFullGCComplete(); }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { m_ServerEngine = null; GC.WaitForFullGCComplete(); }