コード例 #1
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(txtScreenName.Text))
            {
                MessageBox.Show("Please specify a name for the screen");
                return;
            }

            if (img == null)
            {
                MessageBox.Show("Please specify an image for the screen");
                return;
            }


            string tempName = "Screen - " + txtScreenName.Text.Replace("Screen - ", "");

            OSAE.OSAEObject obj = OSAEObjectManager.GetObjectByName(sOriginalName);
            //We call an object update here in case the Name was changed, then perform the updates against the New name
            OSAEObjectManager.ObjectUpdate(sOriginalName, tempName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, obj.Enabled);
            OSAEObjectPropertyManager.ObjectPropertySet(tempName, "Background Image", img.Name, "GUI");

            //OnLoadScreen();

            NotifyParentFinished();
        }
コード例 #2
0
        void OnUnchecked(object sender, RoutedEventArgs e)
        {
            try
            {
                PluginDescription pd = (PluginDescription)dgLocalPlugins.SelectedItem;
                osae.AddToLog("unchecked: " + pd.Name, true);

                if (wcfObj.State == CommunicationState.Opened)
                {
                    Thread thread = new Thread(() => messageHost("plugin", "ENABLEPLUGIN|" + pd.Name + "|False"));
                    thread.Start();
                    osae.AddToLog("Sending message: " + "ENABLEPLUGIN|" + pd.Name + "|False", true);

                    if (myService.Status == ServiceControllerStatus.Running)
                    {
                        foreach (PluginDescription plugin in pluginList)
                        {
                            if (plugin.Name == pd.Name && plugin.Name != null)
                            {
                                plugin.Status = "Stopping...";
                            }
                        }
                    }
                }
                OSAE.OSAEObject obj = osae.GetObjectByName(pd.Name);
                osae.ObjectUpdate(obj.Name, obj.Name, obj.Description, obj.Type, obj.Address, obj.Container, 0);
            }
            catch (Exception ex)
            {
                osae.AddToLog("Error disabling plugin: " + ex.Message, true);
            }
        }
コード例 #3
0
 private void btnUpdate_Click(object sender, RoutedEventArgs e)
 {
     if (validateForm("Update"))
     {
         string          tempName = txtScreenName.Text;
         OSAE.OSAEObject obj      = OSAEObjectManager.GetObjectByName(sOriginalName);
         //We call an object update here in case the Name was changed, then perform the updates against the New name
         OSAEObjectManager.ObjectUpdate(sOriginalName, tempName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, obj.MinTrustLevel, obj.Enabled);
         OSAEObjectPropertyManager.ObjectPropertySet(tempName, "Background Image", img.Name, currentUser);
         NotifyParentFinished();
     }
 }
コード例 #4
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            sWorkingName = txtControlName.Text;
            OSAE.OSAEObject obj = OSAEObjectManager.GetObjectByName(sOriginalName);
            //We call an object update here in case the Name was changed, then perform the updates against the New name
            OSAEObjectManager.ObjectUpdate(sOriginalName, sWorkingName, obj.Description, obj.Type, obj.Address, obj.Container, obj.Enabled);

            if (imgNormalRaw != null)
            {
                OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Normal Image", imgNormalRaw.Name, "GUI");
            }
            else
            {
                OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Normal Image", "", "GUI");
            }
            if (imgPressedRaw != null)
            {
                OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Pressed Image", imgPressedRaw.Name, "GUI");
            }
            else
            {
                OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Pressed Image", "", "GUI");
            }

            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Press Object Name", cboPressObject.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Press Method Name", cboPressMethod.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Press Param 1", txtPressParam1.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Press Param 2", txtPressParam2.Text, "GUI");

            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Press Script Name", cboPressScript.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Press Script Param 1", txtPressScriptParam1.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Press Script Param 2", txtPressScriptParam2.Text, "GUI");

            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Release Object Name", cboReleaseObject.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Release Method Name", cboReleaseMethod.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Release Param 1", txtReleaseParam1.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Release Param 2", txtReleaseParam2.Text, "GUI");

            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Release Script Name", cboReleaseScript.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Release Script Param 1", txtReleaseScriptParam1.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Release Script Param 2", txtReleaseScriptParam2.Text, "GUI");

            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "X", txtNormalX.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Y", txtNormalY.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Zorder", "1", "GUI");

            OSAEScreenControlManager.ScreenObjectAdd(currentScreen, "", sWorkingName);

            NotifyParentFinished();
        }
コード例 #5
0
        public override void RunInterface(string pluginName)
        {
            gAppName = pluginName;
            Log      = new General.OSAELog(gAppName);

            try
            {
                gDebug = Convert.ToBoolean(OSAEObjectPropertyManager.GetObjectPropertyValue(gAppName, "Debug").Value);
            }
            catch
            { Log.Info("The JABBER Object Type seems to be missing the Debug Property!"); }
            Log.Info("Debug Mode Set to " + gDebug);

            OwnTypes();

            OSAE.OSAEObject tempAlias = OSAE.OSAEObjectManager.GetObjectByName(gSystemName);
            if (tempAlias.Alias.Length > 0)
            {
                gSystemName = tempAlias.Alias;
            }

            try
            {
                oRecognizer.SpeechRecognized += new EventHandler <SpeechRecognizedEventArgs>(oRecognizer_SpeechRecognized);
                //oRecognizer.AudioStateChanged += new EventHandler<AudioStateChangedEventArgs>(oRecognizer_StateChanged);
            }
            catch (Exception ex)
            { Log.Error("Unable to configure oRecognizer", ex); }

            oRecognizer = OSAEGrammar.Load_Direct_Grammar(oRecognizer);
            Log.Info("Load_Direct_Grammar completed");
            oRecognizer = OSAEGrammar.Load_Voice_Grammars(oRecognizer);
            Log.Info("Load_Voice_Grammars completed");
            oRecognizer = OSAEGrammar.Load_Text_Only_Grammars(oRecognizer);
            Log.Info("Load_Text_Only_Grammars completed");
            // Subscribe to Events
            xmppCon.OnLogin       += new ObjectHandler(xmppCon_OnLogin);
            xmppCon.OnRosterStart += new ObjectHandler(xmppCon_OnRosterStart);
            xmppCon.OnRosterEnd   += new ObjectHandler(xmppCon_OnRosterEnd);
            xmppCon.OnRosterItem  += new XmppClientConnection.RosterHandler(xmppCon_OnRosterItem);
            xmppCon.OnPresence    += new agsXMPP.protocol.client.PresenceHandler(xmppCon_OnPresence);
            xmppCon.OnAuthError   += new XmppElementHandler(xmppCon_OnAuthError);
            xmppCon.OnError       += new ErrorHandler(xmppCon_OnError);
            xmppCon.OnClose       += new ObjectHandler(xmppCon_OnClose);
            xmppCon.OnMessage     += new agsXMPP.protocol.client.MessageHandler(xmppCon_OnMessage);

            connect();
        }
コード例 #6
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            string sName = txtControlName.Text;

            OSAE.OSAEObject obj = OSAEObjectManager.GetObjectByName(sOriginalName);
            OSAEObjectManager.ObjectUpdate(sOriginalName, sName, obj.Alias, "CONTROL TIMER LABEL", "CONTROL TIMER LABEL", "", currentScreen, 50, true);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Font Name", txtFont.Text, currentUser);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Font Size", txtSize.Text, currentUser);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Fore Color", foreColorComboBox.Text, currentUser);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Back Color", backColorComboBox.Text, currentUser);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Object Name", objectComboBox.Text, currentUser);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "X", txtX.Text, currentUser);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Y", txtY.Text, currentUser);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "ZOrder", txtZOrder.Text, currentUser);
            OSAEScreenControlManager.ScreenObjectUpdate(currentScreen, objectComboBox.Text, sName);
            NotifyParentFinished();
        }
コード例 #7
0
 private void btnUpdate_Click(object sender, RoutedEventArgs e)
 {
     if (validateForm("Update"))
     {
         sWorkingName = txtName.Text;
         OSAE.OSAEObject obj = OSAEObjectManager.GetObjectByName(sOriginalName);
         //We call an object update here in case the Name was changed, then perform the updates against the New name
         OSAEObjectManager.ObjectUpdate(sOriginalName, sWorkingName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, obj.MinTrustLevel, obj.Enabled);
         //OSAEObjectManager.ObjectAdd(sWorkingName, "", sWorkingName, "CONTROL NAVIGATION IMAGE", "", currentScreen, true);
         OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Image", img.Name, currentUser);
         OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Screen", cboScreens.Text, currentUser);
         OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "X", txtX.Text, currentUser);
         OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Y", txtY.Text, currentUser);
         OSAEObjectPropertyManager.ObjectPropertySet(sWorkingName, "Zorder", txtZOrder.Text, currentUser);
         OSAEScreenControlManager.ScreenObjectUpdate(currentScreen, cboScreens.Text, sWorkingName);
         NotifyParentFinished();
     }
 }
コード例 #8
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            OSAE.OSAEObject obj   = OSAEObjectManager.GetObjectByName(sOriginalName);
            string          sName = lblName.Content.ToString();

            OSAEObjectManager.ObjectUpdate(sOriginalName, sName, obj.Alias, "CONTROL TIMER LABEL", "CONTROL TIMER LABEL", "", currentScreen, 1);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Font Name", txtFont.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Font Size", txtSize.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Fore Color", foreColorComboBox.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Back Color", backColorComboBox.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Object Name", objectComboBox.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "X", txtX.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Y", txtY.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Zorder", "1", "GUI");
            if ((sOriginalObject != objectComboBox.Text) && (sOriginalName != sName))
            {
                OSAEScreenControlManager.ScreenObjectUpdate(currentScreen, objectComboBox.Text, sName);
            }
            NotifyParentFinished();
        }
コード例 #9
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(txtName.Text))
            {
                MessageBox.Show("Please specify a name for the control");
                return;
            }

            if (img == null)
            {
                MessageBox.Show("Please specify an image for the control");
                return;
            }

            if (string.IsNullOrEmpty(cboScreens.Text))
            {
                MessageBox.Show("Please specify a target for the control");
                return;
            }

            sWorkingName = txtName.Text;
            OSAE.OSAEObject obj = OSAEObjectManager.GetObjectByName(sOriginalName);
            //We call an object update here in case the Name was changed, then perform the updates against the New name
            OSAEObjectManager.ObjectUpdate(sOriginalName, sWorkingName, obj.Alias, obj.Description, obj.Type, obj.Address, obj.Container, obj.Enabled);


            string sName = txtName.Text;

            OSAEObjectManager.ObjectAdd(sName, sName, sName, "CONTROL NAVIGATION IMAGE", "", currentScreen, true);
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Image", img.Name, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Screen", cboScreens.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "X", txtX.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Y", txtY.Text, "GUI");
            OSAEObjectPropertyManager.ObjectPropertySet(sName, "Zorder", "1", "GUI");

            OSAEScreenControlManager.ScreenObjectAdd(currentScreen, cboScreens.Text, sName);

            NotifyParentFinished();
        }
コード例 #10
0
        public static OSAEAdmin GetAdminSettings()
        {
            OSAEAdmin adSets = new OSAEAdmin();

            OSAE.OSAEObject oObject = OSAE.OSAEObjectManager.GetObjectByName("WEB SERVER");

            adSets.ScreenTrust              = Convert.ToInt32(oObject.Property("Screen Trust").Value);
            adSets.defaultScreen            = Convert.ToString(oObject.Property("Screen Trust").Value);
            adSets.ObjectsTrust             = Convert.ToInt32(oObject.Property("Objects Trust").Value);
            adSets.ObjectsAddTrust          = Convert.ToInt32(oObject.Property("Objects Add Trust").Value);
            adSets.ObjectsUpdateTrust       = Convert.ToInt32(oObject.Property("Objects Update Trust").Value);
            adSets.ObjectsDeleteTrust       = Convert.ToInt32(oObject.Property("Objects Delete Trust").Value);
            adSets.AnalyticsTrust           = Convert.ToInt32(oObject.Property("Analytics Trust").Value);
            adSets.LogsTrust                = Convert.ToInt32(oObject.Property("Logs Trust").Value);
            adSets.LogsClearTrust           = Convert.ToInt32(oObject.Property("Logs Clear Trust").Value);
            adSets.EventLogTrust            = Convert.ToInt32(oObject.Property("Event Log Trust").Value);
            adSets.MethodLogTrust           = Convert.ToInt32(oObject.Property("Method Log Trust").Value);
            adSets.ServerLogTrust           = Convert.ToInt32(oObject.Property("Server Log Trust").Value);
            adSets.DebugLogTrust            = Convert.ToInt32(oObject.Property("Debug Log Trust").Value);
            adSets.ValuesTrust              = Convert.ToInt32(oObject.Property("Values Trust").Value);
            adSets.ManagementTrust          = Convert.ToInt32(oObject.Property("Management Trust").Value);
            adSets.ObjectTypeTrust          = Convert.ToInt32(oObject.Property("ObjectType Trust").Value);
            adSets.ObjectTypeAddTrust       = Convert.ToInt32(oObject.Property("ObjectType Add Trust").Value);
            adSets.ObjectTypeUpdateTrust    = Convert.ToInt32(oObject.Property("ObjectType Update Trust").Value);
            adSets.ObjectTypeDeleteTrust    = Convert.ToInt32(oObject.Property("ObjectType Delete Trust").Value);
            adSets.ScriptTrust              = Convert.ToInt32(oObject.Property("Script Trust").Value);
            adSets.ScriptAddTrust           = Convert.ToInt32(oObject.Property("Script Add Trust").Value);
            adSets.ScriptUpdateTrust        = Convert.ToInt32(oObject.Property("Script Update Trust").Value);
            adSets.ScriptDeleteTrust        = Convert.ToInt32(oObject.Property("Script Delete Trust").Value);
            adSets.ScriptObjectAddTrust     = Convert.ToInt32(oObject.Property("Script Object Add Trust").Value);
            adSets.ScriptObjectTypeAddTrust = Convert.ToInt32(oObject.Property("Script ObjectType Add Trust").Value);
            adSets.PatternTrust             = Convert.ToInt32(oObject.Property("Pattern Trust").Value);
            adSets.PatternAddTrust          = Convert.ToInt32(oObject.Property("Pattern Add Trust").Value);
            adSets.PatternUpdateTrust       = Convert.ToInt32(oObject.Property("Pattern Update Trust").Value);
            adSets.PatternDeleteTrust       = Convert.ToInt32(oObject.Property("Pattern Delete Trust").Value);
            adSets.ReaderTrust              = Convert.ToInt32(oObject.Property("Reader Trust").Value);
            adSets.ReaderAddTrust           = Convert.ToInt32(oObject.Property("Reader Add Trust").Value);
            adSets.ReaderUpdateTrust        = Convert.ToInt32(oObject.Property("Reader Update Trust").Value);
            adSets.ReaderDeleteTrust        = Convert.ToInt32(oObject.Property("Reader Delete Trust").Value);
            adSets.ScheduleTrust            = Convert.ToInt32(oObject.Property("Schedule Trust").Value);
            adSets.ScheduleAddTrust         = Convert.ToInt32(oObject.Property("Schedule Add Trust").Value);
            adSets.ScheduleUpdateTrust      = Convert.ToInt32(oObject.Property("Schedule Update Trust").Value);
            adSets.ScheduleDeleteTrust      = Convert.ToInt32(oObject.Property("Schedule Delete Trust").Value);
            adSets.ImagesTrust              = Convert.ToInt32(oObject.Property("Images Trust").Value);
            adSets.ImagesAddTrust           = Convert.ToInt32(oObject.Property("Images Add Trust").Value);
            adSets.ImagesDeleteTrust        = Convert.ToInt32(oObject.Property("Images Delete Trust").Value);
            adSets.ConfigTrust              = Convert.ToInt32(oObject.Property("Config Trust").Value);

            return(adSets);

            /*
             * try
             * {
             *  using (MySqlCommand command = new MySqlCommand())
             *  {
             *      DataSet dataset = new DataSet();
             *      command.CommandText = "SELECT * FROM osae_admin";
             *      dataset = OSAESql.RunQuery(command);
             *      if (dataset.Tables[0].Rows.Count > 0)
             *      {
             *          DataTable dt = dataset.Tables[0];
             *          foreach (DataRow dr in dt.Rows)
             *          {
             *              if (dr["ID"].ToString() == "ScreenTrust")
             *                  adSets.ScreenTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "defaultScreen")
             *                  adSets.defaultScreen = dr["Value"].ToString();
             *              else if (dr["ID"].ToString() == "ObjectsTrust")
             *                  adSets.ObjectsTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ObjectsAddTrust")
             *                  adSets.ObjectsAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ObjectsUpdateTrust")
             *                  adSets.ObjectsUpdateTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ObjectsDeleteTrust")
             *                  adSets.ObjectsDeleteTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "AnalyticsTrust")
             *                  adSets.AnalyticsTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "LogsTrust")
             *                  adSets.LogsTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "LogsClearTrust")
             *                  adSets.LogsClearTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "EventLogTrust")
             *                  adSets.EventLogTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "MethodLogTrust")
             *                  adSets.MethodLogTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ServerLogTrust")
             *                  adSets.ServerLogTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "DebugLogTrust")
             *                  adSets.DebugLogTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ValuesTrust")
             *                  adSets.ValuesTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ManagementTrust")
             *                  adSets.ManagementTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ObjectTypeTrust")
             *                  adSets.ObjectTypeTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ObjectTypeAddTrust")
             *                  adSets.ObjectTypeAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ObjectTypeUpdateTrust")
             *                  adSets.ObjectTypeUpdateTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ObjectTypeDeleteTrust")
             *                  adSets.ObjectTypeDeleteTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScriptTrust")
             *                  adSets.ScriptTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScriptAddTrust")
             *                  adSets.ScriptAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScriptUpdateTrust")
             *                  adSets.ScriptUpdateTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScriptDeleteTrust")
             *                  adSets.ScriptDeleteTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScriptObjectAddTrust")
             *                  adSets.ScriptObjectAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScriptObjectTypeAddTrust")
             *                  adSets.ScriptObjectTypeAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "PatternTrust")
             *                  adSets.PatternTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "PatternAddTrust")
             *                  adSets.PatternAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "PatternUpdateTrust")
             *                  adSets.PatternUpdateTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "PatternDeleteTrust")
             *                  adSets.PatternDeleteTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ReaderTrust")
             *                  adSets.ReaderTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ReaderAddTrust")
             *                  adSets.ReaderAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ReaderUpdateTrust")
             *                  adSets.ReaderUpdateTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ReaderDeleteTrust")
             *                  adSets.ReaderDeleteTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScheduleTrust")
             *                  adSets.ScheduleTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScheduleAddTrust")
             *                  adSets.ScheduleAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScheduleUpdateTrust")
             *                  adSets.ScheduleUpdateTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ScheduleDeleteTrust")
             *                  adSets.ScheduleDeleteTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ImagesTrust")
             *                  adSets.ImagesTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ImagesAddTrust")
             *                  adSets.ImagesAddTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ImagesDeleteTrust")
             *                  adSets.ImagesDeleteTrust = Convert.ToInt32(dr["Value"].ToString());
             *              else if (dr["ID"].ToString() == "ConfigTrust")
             *                  adSets.ConfigTrust = Convert.ToInt32(dr["Value"].ToString());
             *          }
             *      }
             *      return adSets;
             *  }
             * }
             * catch { return null; }
             */
        }
コード例 #11
0
 /// <summary>
 /// This method is involked to initialize the actual UserControl screen before displaying.
 /// NO alteration or additions are required.
 /// This must be implemented.
 /// </summary>
 public abstract void InitializeMainCtrl(OSAE.OSAEObject obj);