Interaction logic for ModulePanel.xaml
Inheritance: System.Windows.Controls.UserControl
Ejemplo n.º 1
0
 public ChooseModule()
 {
     InitializeComponent();
     this.ecgBaseline = new ECG_BASELINE(null);
     this.rpeaks = new R_peaks();
     this.modulePanel = new ModulePanel();
     ;
 }
Ejemplo n.º 2
0
        public ModuleOption(AvailableOptions code, ModulePanel panel, ModuleOption parent = null)
        {
            this.Code = code;
            this.Name = code.ToString();
            this.Set = false;
            this.Parent = parent;
            this.Panel = panel;
            this.AnalysisName = panel.AnalysisName;

            switch (this.Code)
            {
                case AvailableOptions.ECG_BASELINE:
                    this.ModuleParam = new ECG_Baseline_Params();
                    panel.OptionParams[this] = this.ModuleParam;
                    panel.Params[this.Code] = this.ModuleParam;
                    break;
                case AvailableOptions.R_PEAKS:
                    this.ModuleParam = new R_Peaks_Params(R_Peaks_Method.EMD, this.getAnalysisName());
                    panel.OptionParams[this] = this.ModuleParam;
                    panel.Params[this.Code] = this.ModuleParam;
                    break;
                case AvailableOptions.WAVES:
                    this.ModuleParam = new Waves_Params();
                    panel.OptionParams[this] = this.ModuleParam;
                    panel.Params[this.Code] = this.ModuleParam;
                    break;
                case AvailableOptions.ATRIAL_FIBER:
                    this.ModuleParam = new Atrial_Fibr_Params(Detect_Method.POINCARE);
                    panel.OptionParams[this] = this.ModuleParam;
                    panel.Params[this.Code] = this.ModuleParam;
                    break;
                default:
                    this.ModuleParam = null;
                    break;
            }
        }