Ejemplo n.º 1
0
        public GeneratorDialog(My_Variable variable, GeneratorType genType)
        {
            InitializeComponent();
            this.GenSettings = ModellingType.GetGeneratorSettings(variable.Signal.Type);
            switch (genType)
            {
            case GeneratorType.Constant:
                TabControlGenerator.SelectedItem = TabItemConstantGenerator;
                break;

            case GeneratorType.Clock:
                TabControlGenerator.SelectedItem = TabItemClockGenerator;
                break;

            case GeneratorType.Counter:
                TabControlGenerator.SelectedItem = TabItemCounterGenerator;
                break;

            case GeneratorType.DiscretteRandom:
                TabControlGenerator.SelectedItem = TabItemRandomGeneratorDiscrette;
                break;

            case GeneratorType.ContinousRandom:
                TabControlGenerator.SelectedItem = TabItemRandomGeneratorContinuous;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
 public GeneratorDialog(My_Variable variable)
 {
     InitializeComponent();
     this.GenSettings = ModellingType.GetGeneratorSettings(variable.Signal.Type);
 }