private void LoadItemExplorer() { long startTicks = PLLog.Trace("HISSchema Start()", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1); long beginTicks; long bindingTicks; long firstTicks = startTicks; double frequency = Stopwatch.Frequency; beginTicks = startTicks; //HIS.Library.HISSchemaERLP hISSchemaERLP = HIS.Library.HISSchemaERLP.GetEditableRootParent(); ////HIS.Library.HISSchemaERLP hISSchemaERLP = HIS.Library.HISSchemaERLP.NewEditableRootParent(); //startTicks = PLLog.Trace("HISSchemaERLP.GetEditableRootParent", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); //lblLoadHISSchema.Text = string.Format("GetEditableRoot Parent Time ({0:f4}) seconds", (startTicks - beginTicks) / frequency); beginTicks = startTicks; HIS.Library.ItemsERLP _Items = HIS.Library.ItemsERLP.GetEditableRootParent(); //bindingTicks = PLLog.Trace("HISSchemaERLP.TypeAttributes()", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); itemsECBLBindingSource.DataSource = _Items.Items; attributeValuesECBLBindingSource.DataSource = _Items.AttributeValues; //startTicks = PLLog.Trace("HISSchemaERLP.TypeAttributes() Binding", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); //lblTypeAttributes.Text = string.Format("TypeAttributes Time {0:f4} ({1:f4}) seconds", (startTicks - bindingTicks) / frequency, (bindingTicks - beginTicks) / frequency); //beginTicks = startTicks; //HIS.Library.AttributesECBL _Attributes = hISSchemaERLP.Attributes; //bindingTicks = PLLog.Trace("HISSchemaERLP.Attributes()", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); //attributesECBLBindingSource.DataSource = _Attributes; //startTicks = PLLog.Trace("HISSchemaERLP.Attributes() Binding", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); //lblAttributes.Text = string.Format("Attributes Time {0:f4} ({1:f4}) seconds", (startTicks - bindingTicks) / frequency, (bindingTicks - beginTicks) / frequency); }
private void LoadItems() { long startTicks; long fetchTicks; long bindingTicks; double frequency = Stopwatch.Frequency; startTicks = PLLog.Trace("Start", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1); HIS.Library.ItemsERLP _Items = HIS.Library.ItemsERLP.GetEditableRootParent(); fetchTicks = PLLog.Trace("HIS.Library.ItemsERLP", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, startTicks); itemsECBLBindingSource.DataSource = _Items.Items; bindingTicks = PLLog.Trace("HIS.Library.ItemsERLP", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1, fetchTicks); lblItems.Text = string.Format("Items Time {0:f4} (F:{1:f4} B:{2:f4}) seconds", (bindingTicks - startTicks) / frequency, (fetchTicks - startTicks) / frequency, (bindingTicks - fetchTicks) / frequency); // TODO(crhodes): Need to get the item_id from the selected row in the datagrid // and use that to get the AttributeValues property from that row. //attributeValuesECBLBindingSource.DataSource = ; }