Esempio n. 1
0
 protected ReferencesBase(string referencesTreeName, string referencePrefix, string referenceTombstonePrefix, string referenceCollectionPrefix, ReferencesType type)
 {
     _referenceTreeName         = referencesTreeName ?? throw new ArgumentNullException(nameof(referencesTreeName));
     _referencePrefix           = referencePrefix ?? throw new ArgumentNullException(nameof(referencePrefix));
     _referenceTombstonePrefix  = referenceTombstonePrefix ?? throw new ArgumentNullException(nameof(referenceTombstonePrefix));
     _referenceCollectionPrefix = referenceCollectionPrefix ?? throw new ArgumentNullException(nameof(referenceCollectionPrefix));
     _type = type;
 }
Esempio n. 2
0
		private static List<string> ConvertReferences(ReferencesType references) {
			List<string> articyDataReferences = new List<string>();
			if ((references != null) && (references.Reference != null)) {
				foreach (ReferenceType reference in references.Reference) {
					articyDataReferences.Add(ConvertIdRef(reference));
				}
			}
			return articyDataReferences;
		}
Esempio n. 3
0
        public FrmLookupReferensi(string header, IList <Dropshipper> listOfDropshipper)
            : base()
        {
            InitializeComponent();

            base.SetHeader(header);
            this._listOfDropshipper = listOfDropshipper;
            this._referensiType     = ReferencesType.Dropshipper;

            InitGridList();
            base.SetActiveBtnPilih(listOfDropshipper.Count > 0);
        }
Esempio n. 4
0
        public FrmLookupReferensi(string header, IList <JenisPengeluaran> listOfJenisPengeluaran)
            : base()
        {
            InitializeComponent();

            base.SetHeader(header);
            this._listOfJenisPengeluaran = listOfJenisPengeluaran;
            this._referensiType          = ReferencesType.JenisPengeluaran;

            InitGridList();
            base.SetActiveBtnPilih(listOfJenisPengeluaran.Count > 0);
        }
Esempio n. 5
0
        public FrmLookupReferensi(string header, IList <KabupatenTujuanRajaOngkir> listOfKabupatenTujuan)
            : base()
        {
            InitializeComponent();

            base.SetHeader(header);
            this._listOfKabupatenTujuan = listOfKabupatenTujuan;
            this._referensiType         = ReferencesType.KabupatenTujuan;

            InitGridList();
            base.SetActiveBtnPilih(listOfKabupatenTujuan.Count > 0);
        }
Esempio n. 6
0
        public FrmLookupReferensi(string header, IList <Produk> listOfProduk)
            : base()
        {
            InitializeComponent();

            base.SetHeader(header);
            this._listOfProduk  = listOfProduk;
            this._referensiType = ReferencesType.Produk;

            InitGridList();
            base.SetActiveBtnPilih(listOfProduk.Count > 0);
        }
Esempio n. 7
0
        public FrmLookupItemNota(string header, IList <ItemBeliProduk> listOfItemBeli)
            : base()
        {
            InitializeComponent();

            base.SetHeader(header);
            this._listOfItemBeli = listOfItemBeli;
            this._referensiType  = ReferencesType.NotaBeliProduk;

            InitGridList();
            base.SetActiveBtnPilih(listOfItemBeli.Count > 0);
        }
        public FrmLookupReferensi(string header, IList <KabupatenAsal> listOfKabupatenAsal)
            : base()
        {
            InitializeComponent();

            base.SetHeader(header);
            this._listOfKabupatenAsal = listOfKabupatenAsal;
            this._referensiType       = ReferencesType.KabupatenAsal;

            InitGridList();
            base.SetActiveBtnPilih(listOfKabupatenAsal.Count > 0);
        }
Esempio n. 9
0
        private IEnumerable <PathFigure> _ArrowCreate(ReferencesType type, Point start, Point end)
        {
            bool isHorizaonal = false;

            if (start.X == end.X)
            {
                isHorizaonal = false;
            }
            else if (start.Y == end.Y)
            {
                isHorizaonal = true;
            }
            else
            {
                throw new Exception("Arrow can be only vertical or horizontal");
            }

            IEnumerable <PathFigure> result = null;

            switch (type)
            {
            case ReferencesType.Assosiation:
                result = _Assosiation(start, end, isHorizaonal);
                break;

            case ReferencesType.Aggregation:
                result = _Aggregation(start, end, isHorizaonal);
                break;

            case ReferencesType.Composion:
                result = _Composion(start, end, isHorizaonal);
                break;

            case ReferencesType.Dependency:
                result = _Dependency(start, end, isHorizaonal);
                break;

            case ReferencesType.Inheritance:
                result = _Inheritance(start, end, isHorizaonal);
                break;

            case ReferencesType.Realization:
                result = _Realization(start, end, isHorizaonal);
                break;
            }

            return(result);
        }
        public void Click(SubjectCanvas element, ReferencesType type)
        {
            if (!_counter)
            {
                Subject = element;

                Type = type;

                _counter = true;
            }
            else
            {
                Target = element;

                Type = type;
            }
        }
Esempio n. 11
0
 public List <ReferenceType> GetBlockingTaskRefs()
 {
     try
     {
         List <ReferenceType> referenceTypeList = new List <ReferenceType>();
         string url = this._client.VCloudApiURL + "/admin/extension/blockingTasks";
         Logger.Log(TraceLevel.Information, SdkUtil.GetI18nString(SdkMessage.POST_URL_MSG) + " - " + url);
         ReferencesType referencesType = (ReferencesType)SdkUtil.Get <BlockingTaskReferencesType>(this._client, url, 200);
         if (referencesType.Reference != null)
         {
             foreach (ReferenceType referenceType in referencesType.Reference)
             {
                 referenceTypeList.Add(referenceType);
             }
         }
         return(referenceTypeList);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }