Exemple #1
0
        public Form1()
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            InitializeComponent();

            m_ServerEngine       = new CppCLI();
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
        }
Exemple #2
0
        public Form1()
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            InitializeComponent();

            m_ServerEngine = new CppCLI();
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
        }
Exemple #3
0
        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();
        }
Exemple #4
0
        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();
        }
Exemple #5
0
        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);
        }
Exemple #6
0
        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();
        }
Exemple #7
0
 private void NDYEditor_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_GameEngine = null;
     GC.WaitForFullGCComplete();
 }
Exemple #8
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_ServerEngine = null;
     GC.WaitForFullGCComplete();
 }
Exemple #9
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_ServerEngine = null;
     GC.WaitForFullGCComplete();
 }
Exemple #10
0
 private void NDYEditor_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_GameEngine = null;
     GC.WaitForFullGCComplete();
 }