private void CreateTreeObjects() { try { TreeViewObjects.SessionInfo = App.Session; TreeViewObjects.Init(); } catch (Exception ex) { App.ShowExceptionMessage(ex.Message); } }
private void GetCheckedObjects() { try { List <TreeObjectItem> listObjects = new List <TreeObjectItem>(); TreeViewObjects.GetCheckedObjects(ref listObjects); for (int i = 0; i < listObjects.Count; i++) { TreeObjectItem item = listObjects[i]; string strInfo; string strType = item.ObjType.ToString(); string strID = item.ObjID.ToString(); string strName = item.Name; strInfo = string.Format("Type:{0}\tID:{1}\tName:{2}", strType, strID, strName); TxtMsg.AppendText(string.Format("{0}\r\n", strInfo)); TxtMsg.ScrollToEnd(); } } catch (Exception ex) { App.ShowExceptionMessage(ex.Message); } }