Exemple #1
0
        /// <summary>
        /// データを複製して複製の参照を返す
        /// </summary>
        public Dekidaka_Data Clone() //クローン作成メソッド
        {
            Dekidaka_Data cloned = (Dekidaka_Data)MemberwiseClone();

            if (this._iaMaterialsNumber != null)
            {
                cloned._iaMaterialsNumber = (int[])this._iaMaterialsNumber.Clone();
            }

            if (this._straMaterials != null)
            {
                cloned._straMaterials = (string[])this._straMaterials.Clone();
            }

            if (this._iaOutputQuantity != null)
            {
                cloned._iaOutputQuantity = (int[])this._iaOutputQuantity.Clone();
            }

            if (this._iaOutputNumber != null)
            {
                cloned._iaOutputNumber = (int[])this._iaOutputNumber.Clone();
            }

            if (this._straShipment != null)
            {
                cloned._straShipment = (string[])this._straShipment.Clone();
            }



            return(cloned);
        }
Exemple #2
0
        /// <summary>
        /// オブジェクト自身にデータをインポートする
        /// </summary>
        public void Data_Import(Dekidaka_Data source) //参照元の値をコピーする
        {
            this.bActionable = source.bActionable;
            this.bMulti      = source.bMulti;
            this.bKind       = source.bKind;

            this.dtEndTime   = source.dtEndTime;
            this.dtStartTime = source.dtStartTime;

            this.iArrival    = source.iArrival;
            this.iPartGroup  = source.iPartGroup;
            this.iPartNumber = source.iPartNumber;
            this.iUID        = source.iUID;

            this.strCommodity      = source.strCommodity;
            this.strContentsOfWork = source.strContentsOfWork;
            this.strCustomar       = source.strCustomar;
            this.strEditButton     = source.strEditButton;
            this.strProductionArea = source.strProductionArea;
            this.strSize           = source.strSize;
            this.strWriteMember    = source.strWriteMember;


            this._iaMaterialsNumber = (int[])source._iaMaterialsNumber.Clone();
            this._straMaterials     = (string[])source._straMaterials.Clone();
            OnPropertyChanged("strChainedMaterials");//プロパティ変更を通知する


            this._iaOutputQuantity = (int[])source._iaOutputQuantity.Clone();
            this._iaOutputNumber   = (int[])source._iaOutputNumber.Clone();
            OnPropertyChanged("strOutput");//プロパティ変更を通知する

            this._straShipment = (string[])source._straShipment.Clone();
            OnPropertyChanged("straShipment");

            this.BlPrintBottonColor = source.BlPrintBottonColor;
        }