Beispiel #1
0
 private void CreateStandardControls()
 {
     _StartUp        = new frmServerExplorer();
     _OutputWindow   = new OutputWindow();
     _PropertyWindow = new frmPropertyWindow();
     //_UploadOutputWindow = new OutputWindow();
     _StatusWindow                 = new frmStatusWindow();
     _SQLToOraChangeOfAddress      = new frmSQLToOraChangeOfAddress();
     _OraToSQLNewOrUpgradeMembData = new frmOraToSQLNewOrUpgradeMembData();
     _SQLToOraPayment              = new fromSQLToOraPayment();
     _ActionExplorer               = new frmActionExplorer();
 }
Beispiel #2
0
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(frmServerExplorer).ToString())
            {
                return(_StartUp);
            }
            else if (persistString == typeof(OutputWindow).ToString())
            {
                return(_OutputWindow);
            }
            else if (persistString == typeof(frmPropertyWindow).ToString())
            {
                return(_PropertyWindow);
            }
            else if (persistString == typeof(frmStatusWindow).ToString())
            {
                return(_StatusWindow);
            }
            else if (persistString == typeof(frmSQLToOraChangeOfAddress).ToString())
            {
                return(_SQLToOraChangeOfAddress);
            }
            else if (persistString == typeof(frmOraToSQLNewOrUpgradeMembData).ToString())
            {
                return(_OraToSQLNewOrUpgradeMembData);
            }
            else if (persistString == typeof(fromSQLToOraPayment).ToString())
            {
                return(_SQLToOraPayment);
            }

            else if (persistString == typeof(frmActionExplorer).ToString())
            {
                return(_ActionExplorer);
            }
            else
            {
                // DummyDoc overrides GetPersistString to add extra information into persistString.
                // Any DockContent may override this value to add any needed information for deserialization.

                string[] parsedStrings = persistString.Split(new char[] { ',' });
                if (parsedStrings.Length != 3)
                {
                    return(null);
                }

                if (parsedStrings[0] != typeof(DummyDoc).ToString())
                {
                    return(null);
                }

                frmServerExplorer _StartUp = new frmServerExplorer();

                frmStatusWindow _StatusWindow = new frmStatusWindow();

                frmSQLToOraChangeOfAddress _ChangeOfAddress = new frmSQLToOraChangeOfAddress();

                frmPropertyWindow _PropertyWindow = new frmPropertyWindow();

                return(null);
            }
        }