Exemple #1
0
        public SetSensingParamForm(DMP_Main_MDIParent parent, Physician parent_form)
        {
            InitializeComponent();

            channelMinusBox = new ComboBox[] { channelMinusBox0, channelMinusBox1, channelMinusBox2, channelMinusBox3 };
            channelPlusBox  = new ComboBox[] { channelPlusBox0, channelPlusBox1, channelPlusBox2, channelPlusBox3 };

            this.pnl = panel1;

            this.MdiParent = parent;

            this.physician_parent_form = parent_form;

            // get current settings to update in GUI
            ((DMP_Main_MDIParent)this.MdiParent).ReadSettingsFile();
            ((DMP_Main_MDIParent)this.MdiParent).UpdateSensingSettingsFile(this);

            ((DMP_Main_MDIParent)this.MdiParent).PropertyChanged -= ConnectionChanges;
            ((DMP_Main_MDIParent)this.MdiParent).PropertyChanged += ConnectionChanges;
            ConnectionChanges(this, null);
        }