internal void setViewModel(XmlBuilderViewModel xmlBuilderViewModel)
        {
            xmlBuilderViewModel_ = xmlBuilderViewModel;
            this.DataContext     = xmlBuilderViewModel;
            //this.baseInformationCtrl_.DataContext = xmlBuilderViewModel.BaseInformationViewModel_;
            //this.baseInformationCtrl_.bivm_ = xmlBuilderViewModel.BaseInformationViewModel_;
            //this.baseInformationCtrl_.variableGrid_Ctrl.DataContext = xmlBuilderViewModel.BaseInformationViewModel_;
            //this.baseInformationCtrl_.variableGrid_Ctrl.Detail_DataGrid.ItemsSource = xmlBuilderViewModel.BaseInformationViewModel_.InitialFixedValueList_;

            EventCheck_DetailGrid.DataContext = xmlBuilderViewModel.EventCheckViewModel_[0];
        }
示例#2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            FpmlSerializedCSharp.IDManager.clearAll();
            XmlDocument xmldoc = new XmlDocument();

            //xmldoc.Load("http://localhost:8033/ch01-01.xml");
            myTextBox.Text = "";
            xmldoc.Load("..\\..\\testStructruedProductNodeExceptTime.xml");
            myTextBox.Text = "loading..";
            FpmlSerializedCSharp.StructuredProduct serial_sp =
                new FpmlSerializedCSharp.StructuredProduct(xmldoc.SelectSingleNode("StructuredProduct"));

            XmlBuilderViewModel xbvm = new XmlBuilderViewModel();

            xbvm.setProduct(serial_sp);
            myTextBox.Text = "Done";

            XmlBuilderCtrl_.setViewModel(xbvm);
        }
示例#3
0
 private void addNewCtrl(XmlBuilderViewModel xbvm)
 {
     // 만들어서 add함. 위치도 지정하고, 잡일여기서함.
 }
示例#4
0
 public void setViewModel(XmlBuilderViewModel xmlBuilderViewModel)
 {
     this.xmlBuilderViewModel_ = xmlBuilderViewModel;
     this.XmlBuilderCtrl_.setViewModel(xmlBuilderViewModel);
 }