/// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string at = "Starting";

            try
            {
                if (!IsPostBack)
                {
                    at = "InitMahine";
                    m_StateMachineEngine.InitMahine();
                }
                at = "Event handlers";
                m_SaveButton.Click   += new EventHandler(m_StateMachineEngine.SaveButton_Click);
                m_NewButton.Click    += new EventHandler(m_StateMachineEngine.NewButton_Click);
                m_CancelButton.Click += new EventHandler(m_StateMachineEngine.CancelButton_Click);
                m_EditButton.Click   += new EventHandler(m_StateMachineEngine.EditButton_Click);
                m_DeleteButton.Click += new EventHandler(m_StateMachineEngine.DeleteButton_Click);
                m_ExportButton.Click += new EventHandler(m_StateMachineEngine.m_ExportButton_Click);
            }
            catch (Exception ex)
            {
                ApplicationError _ae = new ApplicationError("Page_Load", "", ex.Message, ex);
                this.Controls.Add(_ae.CreateMessage(at, true));
            }
        }
        private void SetInterconnectionData(ClearenceInterconnectionnData e)
        {
            if (m_ControlState.ClearanceID.CompareTo(e.ID) == 0)
            {
                return;
            }
            try
            {
                m_ControlState.ClearanceID = e.ID;
                ListItem _cs = m_SelectGroupRadioButtonList.Items.FindByValue(CurrentClearance.ProcedureCode);
                if (_cs == null)
                {
                    this.ShowActionResult(GenericStateMachineEngine.ActionResult.NotValidated("ThisClearanceCannotBeEditedItIsNotCompensationGoodClearance".GetLocalizedString()));
                    m_ControlState.ReadOnly       = true;
                    m_ControlState.ClearanceID    = String.Empty;
                    m_ControlState.ClearanceTitle = String.Empty;
                    m_ClearenceTextBox.Text       = String.Empty;
                    return;
                }
                m_ControlState.IsModified     = true;
                m_ControlState.ClearanceTitle = e.Title;
                m_ClearenceTextBox.Text       = e.Title;
                m_SelectGroupRadioButtonList.SelectedIndex = -1;
                _cs.Selected            = true;
                m_ControlState.ReadOnly = false;
                QueryAssigned();
                string _export = "3151";
                switch (CurrentClearance.ClearenceProcedure.Value)
                {
                case ClearenceProcedure._3151:
                case ClearenceProcedure._3171:
                    break;

                case ClearenceProcedure._4051:
                case ClearenceProcedure._4071:
                    _export = "4051";
                    break;

                case ClearenceProcedure._5100:
                case ClearenceProcedure._5171:
                case ClearenceProcedure._7100:
                case ClearenceProcedure._7171:
                case ClearenceProcedure.Invalid:
                case ClearenceProcedure.None:
                default:
                    break;
                }
                m_ProcedureRadioButtonList.SelectedValue = _export;
            }
            catch (Exception _ex)
            {
                ApplicationError _errr = new ApplicationError("SetInterconnectionData", "ClearenceInterconnectionnData", _ex.Message, _ex);
                this.Controls.Add(_errr.CreateMessage(_errr.At, true));
            }
        }
 private void SetInterconnectionData(InvoiceContentInterconnectionnData e)
 {
     try
     {
         m_ControlState.InvoiceContentID = e.ID;
     }
     catch (Exception _ex)
     {
         ApplicationError _errr = new ApplicationError("SetInterconnectionData", "InvoiceContentInterconnectionnData", _ex.Message, _ex);
         this.Controls.Add(_errr.CreateMessage(_errr.At, true));
     }
 }
        internal void SetInterconnectionData(Dictionary <ConnectionSelector, IWebPartRow> m_ProvidersDictionary)
        {
            foreach (var _item in m_ProvidersDictionary)
            {
                try
                {
                    switch (_item.Key)
                    {
                    case ConnectionSelector.ClearenceInterconnection:
                        new ClearenceInterconnectionnData().SetRowData(_item.Value, m_StateMachineEngine.NewDataEventHandler);
                        break;

                    default:
                        break;
                    }
                }
                catch (Exception ex)
                {
                    string           _at = _item.Key.ToString();
                    ApplicationError _ae = new ApplicationError("Page_Load", _at, ex.Message, ex);
                    this.Controls.Add(_ae.CreateMessage(_at, true));
                }
            }
        }