コード例 #1
0
 /// <summary>
 /// Copy constructor, it will create instance guid!!!!
 /// </summary>
 /// <param name="src"></param>
 public VisualControlInfo(VisualControlInfo src)
 {
     _name       = src._name;
     _version    = src._version;
     _dockStyle  = src._dockStyle;
     _GUID       = src._GUID;
     _classType  = src._classType;
     _allowMulti = src._allowMulti;
     // make new instance guid if we do coy from template
     _instance_GUID = Guid.NewGuid();
 }
コード例 #2
0
ファイル: VisualControlInfo.cs プロジェクト: xwcs/xwcs.core
		/// <summary>
		/// Copy constructor, it will create instance guid!!!!
		/// </summary>
		/// <param name="src"></param>
		public VisualControlInfo(VisualControlInfo src)
		{
			_name = src._name;
			_version = src._version;
			_dockStyle = src._dockStyle;
			_GUID = src._GUID;
			_classType = src._classType;
			_allowMulti = src._allowMulti;
			// make new instance guid if we do coy from template
			_instance_GUID = Guid.NewGuid();
		}
コード例 #3
0
 public BaseDocument getDocumentByVCI(xwcs.core.controls.VisualControlInfo visualControlInfo)
 {
     foreach (DevExpress.XtraBars.Docking2010.Views.BaseDocument document in _manager.View.Documents)
     {
         VisualControl vc = (VisualControl)document.Control;
         if ((vc != null) && (vc.VisualControlInfo.GUID == visualControlInfo.GUID))
         {
             return(document);
         }
     }
     return(null);
 }