ObjectEditor.frmMain.Exit C# (CSharp) Method

Exit() private method

private Exit ( ) : void
return void
        private void Exit()
        {
            Utils.Log("Exiting...");
            Config.WindowLocationX = this.Location.X;
            Config.WindowLocationY = this.Location.Y;
            Config.WindowSizeX = this.Size.Width;
            Config.WindowSizeY = this.Size.Height;
            Config.Save();
            Utils.SerializeObjectListView("." + Path.DirectorySeparatorChar + "listview.bin", ref lstProtos, false);

            WinAPI.UnsetWindowExFlag(this.Handle, (int)Win32.WS_EX_COMPOSITED);
            WinAPI.UnsetWindowExFlag(this.Handle, (int)Win32.WS_EX_LAYERED);
            Environment.Exit(0);
        }