/// <summary>
 /// Method createBoxModuleFactory
 /// </summary>
 /// <returns>A Ferda.Modules.BoxModuleFactoryPrx</returns>
 /// <param name="localePrefs">A  string[]</param>
 /// <param name="manager">A  Ferda.ModulesManager.ManagersEnginePrx</param>
 /// <param name="__current">An Ice.Current</param>
 public override BoxModuleFactoryPrx createBoxModuleFactory(String[] localePrefs, ManagersEnginePrx manager, Current __current)
 {
     PropertyBoxModuleFactoryI boxModuleFactory = new PropertyBoxModuleFactoryI(propertyClassIceId,
                                                                                propertyFunctionsIceIds,
                                                                                myProxy,
                                                                                localePrefs,
                                                                                defaultValue,
                                                                                valueFromPrx,
                                                                                __current.adapter,
                                                                                settingModuleIdentifier);
     this.reaper.Add(boxModuleFactory.MyProxy, boxModuleFactory);
     return boxModuleFactory.MyProxy;
 }
 public override PropertyValue run(PropertyValue valueBefore, BoxModulePrx boxModuleParam, String[] localePrefs, ManagersEnginePrx manager, out String about, Ice.Current __current)
 {
     Ferda.FrontEnd.StringSeqForm f = new Ferda.FrontEnd.StringSeqForm();
     f.Items = ((StringSeqTI)valueBefore).stringSeqValue;
     f.ShowInTaskbar = false;
     System.Windows.Forms.DialogResult result = this.ownerOfAddIn.ShowDialog(f);
     if(result == System.Windows.Forms.DialogResult.OK)
     {
         PropertyValue resultValue = new StringSeqTI(f.Items);
         about = this.getPropertyAbout(resultValue);
         return resultValue;
     }
     else
     {
         about = this.getPropertyAbout(valueBefore);
         return valueBefore;
     }
 }
 public override PropertyValue run(PropertyValue valueBefore, BoxModulePrx boxModuleParam, String[] localePrefs, ManagersEnginePrx manager, out String about, Ice.Current __current)
 {
     about = "ttt";
     return new StringSeqTI(new string[]{"ttt"});
 }
        /// <summary>
        /// Ice run
        /// </summary>
        /// <param name="boxModuleParam">BoxModuleParams</param>
        /// <param name="localePrefs">localeprefs</param>
        /// <param name="manager">Manager proxy</param>
        /// <param name="__current">Ice context</param>
        public override void run(Ferda.Modules.BoxModulePrx boxModuleParam, string[] localePrefs, ManagersEnginePrx manager, Ice.Current __current)
        {
            string locale;
            try
            {
                locale = localePrefs[0];
                localizationString = locale;
                locale = "Ferda.FrontEnd.AddIns.ExplainTable.Localization_" + locale;
                resManager = new ResourceManager(locale, Assembly.GetExecutingAssembly());
            }
            catch
            {
            }
            Ferda.Modules.Boxes.DataMiningCommon.DataMatrix.DataMatrixFunctionsPrx prx =
                Ferda.Modules.Boxes.DataMiningCommon.DataMatrix.DataMatrixFunctionsPrxHelper.checkedCast(boxModuleParam.getFunctions());

            try
            {
                string label = manager.getProjectInformation().getUserLabel(Ice.Util.identityToString(boxModuleParam.ice_getIdentity()));
                Ferda.FrontEnd.AddIns.ExplainTable.ExplainTable control = new ExplainTable(localePrefs, prx.explain(), prx.getDataMatrixInfo(), ownerOfAddIn);
                this.ownerOfAddIn.ShowDockableControl(control, resManager.GetString("Explain") + " " + label);
            }

            catch (Ferda.Modules.NoConnectionInSocketError)
            {
                MessageBox.Show(resManager.GetString("BoxNotConnected"), resManager.GetString("Error"),
                           MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }

            catch (Ferda.Modules.BadParamsError ex)
            {
                if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbConnectionString)
                {
                    MessageBox.Show(resManager.GetString("BadConnectionString"), resManager.GetString("Error"),
                               MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                else if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbTable)
                {
                    MessageBox.Show(resManager.GetString("NoDataMatrix"), resManager.GetString("Error"),
                               MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }
        }
        /// <summary>
        /// Run method
        /// </summary>
        /// <param name="boxModuleParam"></param>
        /// <param name="localePrefs">Locale prefs</param>
        /// <param name="manager">Manager proxy</param>
        /// <param name="__current">Ice context</param>
        public override void run(Ferda.Modules.BoxModulePrx boxModuleParam, string[] localePrefs, ManagersEnginePrx manager, Ice.Current __current)
        {
            string locale;
            try
            {
                locale = localePrefs[0];
                localizationString = locale;
                locale = "Ferda.FrontEnd.AddIns.ColumnFr.Localization_" + locale;
                resManager = new ResourceManager(locale, Assembly.GetExecutingAssembly());
            }
            catch
            {
            }

            Ferda.Modules.Boxes.DataMiningCommon.Column.ColumnFunctionsPrx prx =
               Ferda.Modules.Boxes.DataMiningCommon.Column.ColumnFunctionsPrxHelper.checkedCast(boxModuleParam.getFunctions());

            Ferda.Modules.Boxes.DataMiningCommon.Attributes.Attribute.AttributeFunctionsPrx prx1 =
                Ferda.Modules.Boxes.DataMiningCommon.Attributes.Attribute.AttributeFunctionsPrxHelper.checkedCast(boxModuleParam.getFunctions());

            try
            {
                ColumnInfo columnInfo = prx.getColumnInfo();
                string label = manager.getProjectInformation().getUserLabel(Ice.Util.identityToString(boxModuleParam.ice_getIdentity()));
                Ferda.FrontEnd.AddIns.ColumnFrequency.ColumnFrequency control = new ColumnFrequency(localePrefs, columnInfo, ownerOfAddIn);
                this.ownerOfAddIn.ShowDockableControl(control, label + " " + resManager.GetString("ColumnFrequency"));
            }

            catch (Ferda.Modules.BadParamsError ex)
            {
                if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbConnectionString)
                {
                    MessageBox.Show(resManager.GetString("BadConnectionString"), resManager.GetString("Error"),
                               MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                else if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbTable)
                {
                    MessageBox.Show(resManager.GetString("NoDataMatrix"), resManager.GetString("Error"),
                               MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                else if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbColumn)
                {
                    MessageBox.Show(resManager.GetString("BadColumnSelectExpression"), resManager.GetString("Error"),
                               MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                //else
                {
                    MessageBox.Show(resManager.GetString("InvalidParameters"), resManager.GetString("Error"),
                               MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }

            catch (Ferda.Modules.NoConnectionInSocketError)
            {
                MessageBox.Show(resManager.GetString("BoxNotConnected"), resManager.GetString("Error"),
                           MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
 /// <summary>
 /// Ice run method
 /// </summary>
 /// <param name="valueBefore">Previous parameter value</param>
 /// <param name="boxModuleParam"></param>
 /// <param name="localePrefs"></param>
 /// <param name="manager"></param>
 /// <param name="about"></param>
 /// <param name="__current"></param>
 /// <returns>New property value</returns>
 public override PropertyValue run(PropertyValue valueBefore, BoxModulePrx boxModuleParam, string[] localePrefs, ManagersEnginePrx manager, out string about, Ice.Current __current)
 {
     PropertyValue propertyValue = valueBefore;
     string locale;
     try
     {
         locale = localePrefs[0];
         localizationString = locale;
         locale = "Ferda.FrontEnd.AddIns.EditCategories.Localization_" + locale;
         resManager = new ResourceManager(locale, Assembly.GetExecutingAssembly());
     }
     catch
     {
     }
     about = resManager.GetString("EditCategoriesAbout");
     try
     {
         Ferda.Modules.Boxes.DataMiningCommon.Attributes.AbstractAttributeFunctionsPrx prx =
        Ferda.Modules.Boxes.DataMiningCommon.Attributes.AbstractAttributeFunctionsPrxHelper.checkedCast(boxModuleParam.getFunctions());
         String[] distinctValues;
         PropertyValue returnValue = new PropertyValue();
         CategoriesT categories = (CategoriesT)valueBefore;
         try
         {
             BoxModulePrx boxModuleParamNew = boxModuleParam.getConnections("ColumnOrDerivedColumn")[0];
             Ferda.Modules.Boxes.DataMiningCommon.Column.ColumnFunctionsPrx prx1 =
                 Ferda.Modules.Boxes.DataMiningCommon.Column.ColumnFunctionsPrxHelper.checkedCast(boxModuleParamNew.getFunctions());
             distinctValues = prx1.getDistinctValues();
         }
         catch
         {
             distinctValues = null;
         }
         Ferda.FrontEnd.AddIns.EditCategories.MainListView listView = new Ferda.FrontEnd.AddIns.EditCategories.MainListView(localePrefs, categories.categoriesValue, distinctValues, ownerOfAddIn);
         listView.ShowInTaskbar = false;
         listView.Disposed += new EventHandler(SetCategories);
         System.Windows.Forms.DialogResult result = this.ownerOfAddIn.ShowDialog(listView);
         if (result == System.Windows.Forms.DialogResult.OK)
         {
             PropertyValue resultValue = new CategoriesTI(this.categories);
             about = this.getPropertyAbout(resultValue);
             propertyValue = resultValue;
         }
         else
         {
             about = this.getPropertyAbout(valueBefore);
         }
     }
     catch (Ferda.Modules.BadParamsError ex)
     {
         if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbConnectionString)
         {
             MessageBox.Show(resManager.GetString("BadConnectionString"), resManager.GetString("Error"),
                        MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
         else if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbTable)
         {
             MessageBox.Show(resManager.GetString("NoDataMatrix"), resManager.GetString("Error"),
                        MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
         else if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbColumn)
         {
             MessageBox.Show(resManager.GetString("BadColumnSelectExpression"), resManager.GetString("Error"),
                        MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
         else
         {
             MessageBox.Show(resManager.GetString("InvalidParameters"), resManager.GetString("Error"),
                        MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
     }
     catch (Ferda.Modules.NoConnectionInSocketError)
     {
         MessageBox.Show(resManager.GetString("BoxNotConnected"), resManager.GetString("Error"),
                    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     return propertyValue;
 }
        /// <summary>
        /// Ice run
        /// </summary>
        /// <param name="valueBefore">Previous value</param>
        /// <param name="boxModuleParam">boxmoduleparam</param>
        /// <param name="localePrefs">localeprefs</param>
        /// <param name="manager">Manager proxy</param>
        /// <param name="about"></param>
        /// <param name="current__">Ice context</param>
        /// <returns>Modified property value</returns>
        public override PropertyValue run(PropertyValue valueBefore, BoxModulePrx boxModuleParam, string[] localePrefs, ManagersEnginePrx manager, out string about, global::Ice.Current current__)
        {
            string locale;
            try
            {
                locale = localePrefs[0];
                localizationString = locale;
                locale = "Ferda.FrontEnd.AddIns.ODBCConnectionString.Localization_" + locale;
                resManager = new ResourceManager(locale, Assembly.GetExecutingAssembly());
            }
            catch
            {
            }

            about = resManager.GetString("ConnectionStringAbout");
            StringT connectionString = (StringT)valueBefore;
            PropertyValue returnValue = new PropertyValue();
            PropertyValue propertyValue = valueBefore;
            Ferda.FrontEnd.AddIns.ODBCConnectionString.ODBCConnectionStringControl listView = new Ferda.FrontEnd.AddIns.ODBCConnectionString.ODBCConnectionStringControl(localePrefs, connectionString.getStringValue(),ownerOfAddIn);
            listView.ShowInTaskbar = false;
            listView.Disposed += new EventHandler(listView_Disposed);
            System.Windows.Forms.DialogResult result = this.ownerOfAddIn.ShowDialog(listView);
            if (result == System.Windows.Forms.DialogResult.OK)
            {
                connectionString.stringValue = this.returnString;
                PropertyValue resultValue = connectionString;
                about = this.getPropertyAbout(resultValue);
                propertyValue = resultValue;
            }
            else
            {
                about = this.getPropertyAbout(valueBefore);
                return valueBefore;
            }

            return propertyValue;
        }