public void ShowAllOrgType()
 {
     try
     {
         BorderSingeOrgDetail.Visibility = System.Windows.Visibility.Collapsed;
         StackPanelAllOrgTypeDetail.Children.Clear();
         DataRow[] LDataRowAllOrgType = App.IDataTable11009.Select("C000 = 1", "C002 ASC");
         foreach (DataRow LDataRowOrgType in LDataRowAllOrgType)
         {
             UCSingleOrgTypeLeft LUCSingleOrgType = new UCSingleOrgTypeLeft(LDataRowOrgType);
             LUCSingleOrgType.IPageParent      = this;
             LUCSingleOrgType.IOperationEvent += LUCSingleOrgType_IOperationEvent;
             LUCSingleOrgType.ShowOrgTypeInformation();
             LUCSingleOrgType.Margin = new Thickness(0, 1, 0, 1);
             StackPanelAllOrgTypeDetail.Children.Add(LUCSingleOrgType);
         }
         ShowElementContent();
     }
     catch { }
 }
        private void ResetAllOrgTypeList()
        {
            if (IListStrAfterSave[12] == "A")
            {
                DataRow LDataRowNew = App.IDataTable11009.NewRow();
                LDataRowNew.BeginEdit();
                LDataRowNew["C000"] = 1;
                LDataRowNew["C001"] = long.Parse(IListStrAfterSave[4]);
                LDataRowNew["C002"] = Int16.Parse(IListStrAfterSave[10]);
                LDataRowNew["C003"] = 0;
                LDataRowNew["C004"] = IListStrAfterSave[5];
                LDataRowNew["C005"] = 2;
                LDataRowNew["C006"] = IListStrAfterSave[6];
                LDataRowNew["C007"] = IListStrAfterSave[7];
                LDataRowNew["C008"] = IListStrAfterSave[9];
                LDataRowNew["C009"] = IListStrAfterSave[8];
                LDataRowNew["C010"] = "";
                LDataRowNew["C011"] = "";
                LDataRowNew.EndEdit();
                App.IDataTable11009.Rows.Add(LDataRowNew);

                UCSingleOrgTypeLeft LUCSingleOrgType = new UCSingleOrgTypeLeft(LDataRowNew);
                LUCSingleOrgType.IPageParent      = this;
                LUCSingleOrgType.IOperationEvent += LUCSingleOrgType_IOperationEvent;
                LUCSingleOrgType.ShowOrgTypeInformation();
                LUCSingleOrgType.Margin = new Thickness(0, 1, 0, 1);
                StackPanelAllOrgTypeDetail.Children.Add(LUCSingleOrgType);
                LUCSingleOrgType.BringIntoView();
                LUCSingleOrgType.SendClickedMessage();
            }
            if (IListStrAfterSave[12] == "E")
            {
                foreach (object LObjectSingleOrgType in StackPanelAllOrgTypeDetail.Children)
                {
                    UCSingleOrgTypeLeft LUCSingleOrgType = LObjectSingleOrgType as UCSingleOrgTypeLeft;
                    if (LUCSingleOrgType.IDataRow11009["C001"].ToString() == IListStrAfterSave[4])
                    {
                        LUCSingleOrgType.IDataRow11009["C004"] = IListStrAfterSave[5];
                        LUCSingleOrgType.IDataRow11009["C006"] = IListStrAfterSave[6];
                        LUCSingleOrgType.IDataRow11009["C008"] = IListStrAfterSave[9];
                        LUCSingleOrgType.IDataRow11009["C009"] = IListStrAfterSave[8];
                        LUCSingleOrgType.ShowOrgTypeInformation();

                        IDataRowCurrentFocused["C004"] = IListStrAfterSave[5];
                        IDataRowCurrentFocused["C006"] = IListStrAfterSave[6];
                        IDataRowCurrentFocused["C008"] = IListStrAfterSave[9];
                        IDataRowCurrentFocused["C009"] = IListStrAfterSave[8];
                        ShowSingleOrgTypeInformation();
                        return;
                    }
                }
            }

            if (IListStrAfterSave[12] == "D")
            {
                IDataRowCurrentFocused          = null;
                BorderSingeOrgDetail.Visibility = System.Windows.Visibility.Collapsed;
                foreach (object LObjectSingleOrgType in StackPanelAllOrgTypeDetail.Children)
                {
                    UCSingleOrgTypeLeft LUCSingleOrgType = LObjectSingleOrgType as UCSingleOrgTypeLeft;
                    if (LUCSingleOrgType.IDataRow11009["C001"].ToString() == IListStrAfterSave[4])
                    {
                        StackPanelAllOrgTypeDetail.Children.Remove(LUCSingleOrgType);
                        return;
                    }
                }
            }
        }