private void buildFromSerialClass() 
        {
            if (serial_ic_.Return_ != null || serial_ic_.returnIDRef_ != null)
            {
                this.type_ = "Return";
                this.xmlTypeStr_ = "return";
                this.symbol_ = serial_ic_.Return_.SymbolName_.StringValue();
                ReturnCtrlViewModel rcVM = new ReturnCtrlViewModel(serial_ic_.Return_);
                this.viewModel_ = rcVM;
                indexDetailCtrl_ = new ReturnCtrlView(rcVM);
                

                
            }
            else if (serial_ic_.Minimum_ != null || serial_ic_.minimumIDRef_ != null)
            {
                this.type_ = "Minimum";
                this.xmlTypeStr_ = "minimum";
                this.symbol_ = serial_ic_.Minimum_.SymbolName_.StringValue();
                MinimumViewModel mVM = new MinimumViewModel(serial_ic_.Minimum_);
                this.viewModel_ = mVM;
                //throw new NotImplementedException();
            }
            else
            {
                throw new NotImplementedException();
            }
        }
Ejemplo n.º 2
0
 private void buildFromSerialClass()
 {
     if (serial_ic_.Return_ != null || serial_ic_.returnIDRef_ != null)
     {
         this.type_       = "Return";
         this.xmlTypeStr_ = "return";
         this.symbol_     = serial_ic_.Return_.SymbolName_.StringValue();
         ReturnCtrlViewModel rcVM = new ReturnCtrlViewModel(serial_ic_.Return_);
         this.viewModel_  = rcVM;
         indexDetailCtrl_ = new ReturnCtrlView(rcVM);
     }
     else if (serial_ic_.Minimum_ != null || serial_ic_.minimumIDRef_ != null)
     {
         this.type_       = "Minimum";
         this.xmlTypeStr_ = "minimum";
         this.symbol_     = serial_ic_.Minimum_.SymbolName_.StringValue();
         MinimumViewModel mVM = new MinimumViewModel(serial_ic_.Minimum_);
         this.viewModel_ = mVM;
         //throw new NotImplementedException();
     }
     else
     {
         throw new NotImplementedException();
     }
 }