Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();

            writerNames      = ClearList(new List <string>(Reflection.GetTypesNames(writerClass)));
            positionNames    = ClearList(new List <string>(Reflection.GetTypesNames(positionClass)));
            orderNames       = ClearList(new List <string>(Reflection.GetTypesNames(orderClass)));
            blockNames       = ClearList(new List <string>(Reflection.GetTypesNames(blockClass)));
            analysisNames    = ClearList(new List <string>(Reflection.GetTypesNames(analysisClass)));
            preanalysisNames = ClearList(new List <string>(Reflection.GetTypesNames(preanalysisClass)));

            writerReader = (ModuleWriterReader)Reflection.CreateObjectByName(writerNames[0]);
            writerReader.SetPosition((ModulePosition)Reflection.CreateObjectByName(positionNames[0]));
            writerReader.GetPosition().SetOrder((ModuleOrder)Reflection.CreateObjectByName(orderNames[0]));
            writerReader.GetOrder().SetBlock((ModuleBlock)Reflection.CreateObjectByName(blockNames[0]));

            setList(writerList, writerNames);
            setList(positionList, positionNames);
            setList(orderList, orderNames);
            setList(blockList, blockNames);
            setList(analysisList, analysisNames);
            setList(preanalysisList, preanalysisNames);

            showSpaceValues();
        }
Beispiel #2
0
        private void writerList_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox           box             = (ComboBox)sender;
            ModuleWriterReader newWriterReader = (ModuleWriterReader)Reflection.CreateObjectByName(writerNames[box.SelectedIndex]);

            newWriterReader.SetPosition(writerReader.GetPosition());
            writerReader = newWriterReader;
            SetGUI(newWriterReader, writerParameter, writerHint);
            showSpaceValues();
        }
Beispiel #3
0
 public void SetWriterReader(ModuleWriterReader writerReader)
 {
     this.writerReader = writerReader;
 }