Ejemplo n.º 1
0
        private void SetForModulationKrystal(ModulationKrystal mk)
        {
            MissingValues.Text = "Missing Values:  " + _krystal.MissingValues;
            Shape.Text = "Shape:  " + _krystal.Shape;

            StrandsTreeView.Nodes.Clear();
            ModulationTreeView modulationTreeView = new ModulationTreeView(StrandsTreeView, mk);
            mk.Modulate();
            modulationTreeView.DisplayModulationResults(mk);
            StrandsTreeView.ExpandAll();
        }
Ejemplo n.º 2
0
        public ModulationEditor(ModulationKrystal outputKrystal)
        {
            InitializeComponent();

            _outputKrystal = outputKrystal;
            _modulator = _outputKrystal.Modulator;
            if(string.IsNullOrEmpty(_outputKrystal.Name))
                _originalKrystalName = "";
            else
                _originalKrystalName = _outputKrystal.Name;
            _originalModulatorName = _modulator.Name;

            //_modulator.Name = "";
            //_outputKrystal.Name = "";

            if(String.IsNullOrEmpty(_originalModulatorName)) // the modulator has not been loaded from a file
                _modulatorWasOriginallyLoadedFromAFile = false;
            else
                _modulatorWasOriginallyLoadedFromAFile = true;

            //if(String.IsNullOrEmpty(_originalKrystalName)) // the krystal has not been loaded from a file
            //    _krystalWasOriginallyLoadedFromAFile = false;
            //else
            //    _krystalWasOriginallyLoadedFromAFile = true;

            _modulationTreeView = new ModulationTreeView(TreeView, _outputKrystal );

            _uintTable = new UIntTable(_modulator.XDim, _modulator.YDim,
                                        outputKrystal.XInputKrystal, outputKrystal.YInputKrystal);

            this.splitContainer.Panel2.Controls.Add(_uintTable);

            if(_modulatorWasOriginallyLoadedFromAFile) // the modulator has been loaded from a file
                _uintTable.IntArray = _modulator.Array;

            _uintTable.EventHandler += new UIntTable.UIntTableEventHandler(HandleUIntTableEvents);

            this.DoModulation();
            _saved = true;

            SetFormTextAndButtons();
        }
Ejemplo n.º 3
0
 private void SetForModulationKrystal(ModulationKrystal mk)
 {
     this.Controls.Remove(LineStrandLabel);
     ModulationTreeView modulationTreeView = new ModulationTreeView(StrandsTreeView, mk);
     mk.Modulate();
     modulationTreeView.DisplayModulationResults(mk);
     StrandsTreeView.ExpandAll();
     this.Height = Screen.GetWorkingArea(this).Height;
 }