public void AddObjectOperations(bool ABoolClearAll, string AStrObjectID, object AObjectSource, bool ABoolChangeLanguage) { try { if (ABoolClearAll && !ABoolChangeLanguage) { StackPanelObjectOperations.Children.Clear(); IListBoolClear.Clear(); IListStrObjectID.Clear(); IListObjectSource.Clear(); IListStrAddType.Clear(); } if (!ABoolChangeLanguage) { IListBoolClear.Add(ABoolClearAll); IListStrObjectID.Add(AStrObjectID); IListObjectSource.Add(AObjectSource); IListStrAddType.Add("Add"); } DataTable LDataTableOperationsLoaded = new DataTable(); LDataTableOperationsLoaded = LoadOperationsFromXmlFiles(AStrObjectID); UCFeatureOperationGroup LUCGroupOperations = new UCFeatureOperationGroup(); LUCGroupOperations.IOperationEvent += LUCAllOperationsPanel_IOperationEvent; LUCGroupOperations.ShowObjectAllOperations(LDataTableOperationsLoaded, AObjectSource, "O"); StackPanelObjectOperations.Children.Add(LUCGroupOperations); } catch { } }
public void AppendObjectOperations(string AStrObjectID, object AObjectSource, bool ABoolChangeLanguage) { try { if (!ABoolChangeLanguage) { if (StackPanelObjectOperations.Children.Count > 1) { StackPanelObjectOperations.Children.RemoveAt(1); IListBoolClear.RemoveAt(1); IListStrObjectID.RemoveAt(1); IListObjectSource.RemoveAt(1); IListStrAddType.RemoveAt(1); } IListBoolClear.Add(false); IListStrObjectID.Add(AStrObjectID); IListObjectSource.Add(AObjectSource); IListStrAddType.Add("Append"); } DataTable LDataTableOperationsLoaded = new DataTable(); LDataTableOperationsLoaded = LoadOperationsFromXmlFiles(AStrObjectID); UCFeatureOperationGroup LUCGroupOperations = new UCFeatureOperationGroup(); LUCGroupOperations.Margin = new Thickness(0, 2, 0, 0); LUCGroupOperations.IOperationEvent += LUCAllOperationsPanel_IOperationEvent; LUCGroupOperations.ShowObjectAllOperations(LDataTableOperationsLoaded, AObjectSource, "B"); StackPanelObjectOperations.Children.Add(LUCGroupOperations); } catch { } }