Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        public AemInstance(RegistryKey pKey)
        {
            mConsoleOutputWindow = new ConsoleWindow(this);

            mId = pKey.Name.Substring(pKey.Name.LastIndexOf("\\") + 1);
            mAemInstanceType       = (AemInstanceType)Enum.Parse(typeof(AemInstanceType), (string)pKey.GetValue("AemInstanceType", mAemInstanceType.ToString()), true);
            mName                  = (string)pKey.GetValue("Name", mName);
            mHostname              = (string)pKey.GetValue("Hostname", mHostname);
            mPort                  = (int)pKey.GetValue("Port", mPort);
            mContextPath           = (string)pKey.GetValue("ContextPath", mContextPath);
            mPath                  = (string)pKey.GetValue("Path", mPath);
            mJavaExecutable        = (string)pKey.GetValue("JavaExecutable", mJavaExecutable);
            mUsername              = (string)pKey.GetValue("Username", mUsername);
            mPassword              = (string)pKey.GetValue("Password", mPassword);
            mRunmode               = (Runmode)Enum.Parse(typeof(Runmode), (string)pKey.GetValue("Runmode", mRunmode.ToString()), true);
            mAdditionalRunmodes    = (string)pKey.GetValue("AdditionalRunmodes", mAdditionalRunmodes);
            mRunmodeSampleContent  = ((int)pKey.GetValue("RunmodeSampleContent", mRunmodeSampleContent ? 1 : 0)) != 0;
            mIconSet               = (IconSet)Enum.Parse(typeof(IconSet), (string)pKey.GetValue("IconSet", mIconSet.ToString()), true);
            mCustomIconPath        = (string)pKey.GetValue("CustomIconPath", mCustomIconPath);
            mShowInTaskbar         = ((int)pKey.GetValue("ShowInTaskbar", mShowInTaskbar ? 1 : 0)) != 0;
            mHeapMinSizeMb         = (int)pKey.GetValue("HeapMinSizeMb", mHeapMinSizeMb);
            mHeapMaxSizeMb         = (int)pKey.GetValue("HeapMaxSizeMb", mHeapMaxSizeMb);
            mMaxPermSizeMb         = (int)pKey.GetValue("MaxPermSizeMb", mMaxPermSizeMb);
            mJVMDebug              = ((int)pKey.GetValue("JVMDebug", mJVMDebug ? 1 : 0)) != 0;
            mDebugPort             = (int)pKey.GetValue("DebugPort", mDebugPort);
            mJProfiler             = ((int)pKey.GetValue("JProfiler", mJProfiler ? 1 : 0)) != 0;
            mJProfilerPort         = (int)pKey.GetValue("JProfilerPort", mJProfilerPort);
            mJConsole              = ((int)pKey.GetValue("JConsole", mJConsole ? 1 : 0)) != 0;
            mJConsolePort          = (int)pKey.GetValue("JConsolePort", mJConsolePort);
            mHideConfigWizard      = ((int)pKey.GetValue("HideConfigWizard", mHideConfigWizard ? 1 : 0)) != 0;
            mShowInstanceWindow    = ((int)pKey.GetValue("ShowInstanceWindow", mShowInstanceWindow ? 1 : 0)) != 0;
            mOpenBrowser           = ((int)pKey.GetValue("OpenBrowser", mOpenBrowser ? 1 : 0)) != 0;
            mRemoteProcess         = ((int)pKey.GetValue("RemoteProcess", mRemoteProcess ? 1 : 0)) != 0;
            mCustomJVMParam1Active = ((int)pKey.GetValue("CustomJVMParam1Active", mCustomJVMParam1Active ? 1 : 0)) != 0;
            mCustomJVMParam1       = (string)pKey.GetValue("CustomJVMParam1", mCustomJVMParam1);
            mCustomJVMParam2Active = ((int)pKey.GetValue("CustomJVMParam2Active", mCustomJVMParam2Active ? 1 : 0)) != 0;
            mCustomJVMParam2       = (string)pKey.GetValue("CustomJVMParam2", mCustomJVMParam2);
            mCustomJVMParam3Active = ((int)pKey.GetValue("CustomJVMParam3Active", mCustomJVMParam3Active ? 1 : 0)) != 0;
            mCustomJVMParam3       = (string)pKey.GetValue("CustomJVMParam3", mCustomJVMParam3);
            mBrowserExecutable     = (string)pKey.GetValue("BrowserExecutable", mBrowserExecutable);
            InitializeNotifyIcon();
        }
Exemplo n.º 2
0
        public AemInstance(RegistryKey pKey)
        {
            mConsoleOutputWindow = new ConsoleWindow(this);

              mId = pKey.Name.Substring(pKey.Name.LastIndexOf("\\") + 1);
              mAemInstanceType = (AemInstanceType)Enum.Parse(typeof(AemInstanceType), (string)pKey.GetValue("AemInstanceType", mAemInstanceType.ToString()), true);
              mName = (string)pKey.GetValue("Name", mName);
              mHostname = (string)pKey.GetValue("Hostname", mHostname);
              mPort = (int)pKey.GetValue("Port", mPort);
              mContextPath = (string)pKey.GetValue("ContextPath", mContextPath);
              mPath = (string)pKey.GetValue("Path", mPath);
              mJavaExecutable = (string)pKey.GetValue("JavaExecutable", mJavaExecutable);
              mUsername = (string)pKey.GetValue("Username", mUsername);
              mPassword = (string)pKey.GetValue("Password", mPassword);
              mRunmode = (Runmode)Enum.Parse(typeof(Runmode), (string)pKey.GetValue("Runmode", mRunmode.ToString()), true);
              mAdditionalRunmodes = (string)pKey.GetValue("AdditionalRunmodes", mAdditionalRunmodes);
              mRunmodeSampleContent = ((int)pKey.GetValue("RunmodeSampleContent", mRunmodeSampleContent ? 1 : 0)) != 0;
              mIconSet = (IconSet)Enum.Parse(typeof(IconSet), (string)pKey.GetValue("IconSet", mIconSet.ToString()), true);
              mCustomIconPath = (string)pKey.GetValue("CustomIconPath", mCustomIconPath);
              mShowInTaskbar = ((int)pKey.GetValue("ShowInTaskbar", mShowInTaskbar ? 1 : 0)) != 0;
              mHeapMinSizeMb = (int)pKey.GetValue("HeapMinSizeMb", mHeapMinSizeMb);
              mHeapMaxSizeMb = (int)pKey.GetValue("HeapMaxSizeMb", mHeapMaxSizeMb);
              mMaxPermSizeMb = (int)pKey.GetValue("MaxPermSizeMb", mMaxPermSizeMb);
              mJVMDebug = ((int)pKey.GetValue("JVMDebug", mJVMDebug ? 1 : 0)) != 0;
              mDebugPort = (int)pKey.GetValue("DebugPort", mDebugPort);
              mJProfiler = ((int)pKey.GetValue("JProfiler", mJProfiler ? 1 : 0)) != 0;
              mJProfilerPort = (int)pKey.GetValue("JProfilerPort", mJProfilerPort);
              mJConsole = ((int)pKey.GetValue("JConsole", mJConsole ? 1 : 0)) != 0;
              mJConsolePort = (int)pKey.GetValue("JConsolePort", mJConsolePort);
              mHideConfigWizard = ((int)pKey.GetValue("HideConfigWizard", mHideConfigWizard ? 1 : 0)) != 0;
              mShowInstanceWindow = ((int)pKey.GetValue("ShowInstanceWindow", mShowInstanceWindow ? 1 : 0)) != 0;
              mOpenBrowser = ((int)pKey.GetValue("OpenBrowser", mOpenBrowser ? 1 : 0)) != 0;
              mRemoteProcess = ((int)pKey.GetValue("RemoteProcess", mRemoteProcess ? 1 : 0)) != 0;
              mCustomJVMParam1Active = ((int)pKey.GetValue("CustomJVMParam1Active", mCustomJVMParam1Active ? 1 : 0)) != 0;
              mCustomJVMParam1 = (string)pKey.GetValue("CustomJVMParam1", mCustomJVMParam1);
              mCustomJVMParam2Active = ((int)pKey.GetValue("CustomJVMParam2Active", mCustomJVMParam2Active ? 1 : 0)) != 0;
              mCustomJVMParam2 = (string)pKey.GetValue("CustomJVMParam2", mCustomJVMParam2);
              mCustomJVMParam3Active = ((int)pKey.GetValue("CustomJVMParam3Active", mCustomJVMParam3Active ? 1 : 0)) != 0;
              mCustomJVMParam3 = (string)pKey.GetValue("CustomJVMParam3", mCustomJVMParam3);
              mBrowserExecutable = (string)pKey.GetValue("BrowserExecutable", mBrowserExecutable);
              InitializeNotifyIcon();
        }
Exemplo n.º 3
0
 public AemInstance()
 {
     mId = Guid.NewGuid().ToString();
       mConsoleOutputWindow = new ConsoleWindow(this);
       InitializeNotifyIcon();
 }
Exemplo n.º 4
0
 public AemInstance()
 {
     mId = Guid.NewGuid().ToString();
     mConsoleOutputWindow = new ConsoleWindow(this);
     InitializeNotifyIcon();
 }