コード例 #1
0
        public AudioUC()
        {
            InitializeComponent();
            List <clsSourceAutoCompleteDoctor> sourceDoctor = new EmrClass.FunctionDataCls().getSourceDoctor();

            autoCompleteUC1.DataSource    = sourceDoctor;
            autoCompleteUC1.DisplayMember = "dis";
            autoCompleteUC1.ValueMember   = "val";

            autoCompleteUC1.DataSource            = obj.GetDoctorData();
            autoCompleteUC1.ValueMember           = "SSUSR_Initials";
            autoCompleteUC1.DisplayMember         = "CTPCP_Desc";
            autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged);


            using (InhCheckupDataContext cdc = new InhCheckupDataContext())
            {
                favhearingr.AutoCompleteListThList = cdc.mst_conclusion_favorite_dtls
                                                     .Where(x => x.mcfd_active == true && x.mst_conclusion_favorite_hdr.mcfh_order == favhearingr.FavoriteOrder &&
                                                            x.mst_conclusion_favorite_hdr.mcfh_type == favhearingr.FavoriteType)
                                                     .Select(x => x.mcfd_description).ToList();
                favhearingl.AutoCompleteListThList = cdc.mst_conclusion_favorite_dtls
                                                     .Where(x => x.mcfd_active == true && x.mst_conclusion_favorite_hdr.mcfh_order == favhearingl.FavoriteOrder &&
                                                            x.mst_conclusion_favorite_hdr.mcfh_type == favhearingl.FavoriteType)
                                                     .Select(x => x.mcfd_description).ToList();
            }
            favhearingl.RightClickDropDown += favoriteTextBox1_DeleteFavorite;
            favhearingr.RightClickDropDown += favoriteTextBox1_DeleteFavorite;
        }
コード例 #2
0
        public DentalUC()
        {
            InitializeComponent();

            foreach (Control ctrl in PanelTeethBtn.Controls)
            {
                if (ctrl.GetType() == typeof(Button))
                {
                    Button btn = (Button)ctrl;
                    if (btn.Tag != null)
                    {
                        string[] tag = btn.Tag.ToString().Split(',');
                        if (tag.Count() == 2)
                        {
                            btn.Click += new EventHandler(selectProblem_Click);
                        }
                    }
                }
            }

            autoCompleteUC1.DataSource            = obj.GetDoctorData();
            autoCompleteUC1.ValueMember           = "SSUSR_Initials";
            autoCompleteUC1.DisplayMember         = "CTPCP_Desc";
            autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged);
        }
コード例 #3
0
        public TabEyesExamUC()
        {
            InitializeComponent();

            autoCompleteUC1.DataSource            = obj.GetDoctorData();
            autoCompleteUC1.ValueMember           = "SSUSR_Initials";
            autoCompleteUC1.DisplayMember         = "CTPCP_Desc";
            autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged);
        }
コード例 #4
0
        public ObsteticsChiefComplainUC()
        {
            InitializeComponent();
            LoadDrowDownList();

            autoCompleteUC1.DataSource            = obj.GetDoctorData();
            autoCompleteUC1.ValueMember           = "SSUSR_Initials";
            autoCompleteUC1.DisplayMember         = "CTPCP_Desc";
            autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged);
        }
コード例 #5
0
        public EchoUC()
        {
            InitializeComponent();

            autoCompleteUC1.DataSource            = obj.GetDoctorData();
            autoCompleteUC1.ValueMember           = "SSUSR_Initials";
            autoCompleteUC1.DisplayMember         = "CTPCP_Desc";
            autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged);
            List <mst_conclusion_favorite_dtl> mst = new FavoriteCls().getFavorite(favoriteTextBox1.FavoriteOrder, favoriteTextBox1.FavoriteType);

            favoriteTextBox1.AutoCompleteListThList = mst.Select(x => x.mcfd_description).ToList();
            favoriteTextBox1.RightClickDropDown    += favoriteTextBox1_DeleteFavorite;
        }
コード例 #6
0
        public CarotidUC()
        {
            InitializeComponent();

            AutoCompleteDoctor obj = new AutoCompleteDoctor();

            autoCompleteUC1.DataSource            = obj.GetDoctorData();
            autoCompleteUC1.ValueMember           = "SSUSR_Initials";
            autoCompleteUC1.DisplayMember         = "CTPCP_Desc";
            autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged);

            pictureBoxLeft.GetType().GetMethod("SetStyle", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).Invoke(pictureBoxLeft, new object[] { System.Windows.Forms.ControlStyles.UserPaint | System.Windows.Forms.ControlStyles.AllPaintingInWmPaint | System.Windows.Forms.ControlStyles.DoubleBuffer, true });
            pictureBoxRight.GetType().GetMethod("SetStyle", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).Invoke(pictureBoxRight, new object[] { System.Windows.Forms.ControlStyles.UserPaint | System.Windows.Forms.ControlStyles.AllPaintingInWmPaint | System.Windows.Forms.ControlStyles.DoubleBuffer, true });
        }
コード例 #7
0
        public PftMainUC()
        {
            InitializeComponent();

            autoCompleteUC1.DataSource            = obj.GetDoctorData();
            autoCompleteUC1.ValueMember           = "SSUSR_Initials";
            autoCompleteUC1.DisplayMember         = "CTPCP_Desc";
            autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged);

            setDestination();
            List <CheckBox> chkBox = destination.Select(x => x.checkBox).ToList();

            chkBox.ForEach(x => x.CheckedChanged += new EventHandler(chkBox_CheckedChanged));
        }
コード例 #8
0
        public DoctorFrm()
        {
            InitializeComponent();
            DisableBtnAll();
            patientsQustionnareToolStripMenuItem.Click                    += new EventHandler(patientsQustionnareToolStripMenuItem_Click);
            applicationForMedialCertificateToolStripMenuItem.Click        += new EventHandler(AviationToolStripMenuItem_Click);
            applicationForRenewalMedialCertificateToolStripMenuItem.Click += new EventHandler(AviationToolStripMenuItem_Click);

            AutoCompleteDoctor obj = new AutoCompleteDoctor();

            autoCompleteUC1.DataSource            = obj.GetDoctorData();
            autoCompleteUC1.ValueMember           = "SSUSR_Initials";
            autoCompleteUC1.DisplayMember         = "CTPCP_Desc";
            autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged);
            linkApproveToolStripMenuItem.Visible  = true;
            TimerBlink                      = new Timer();
            TimerBlink.Interval             = 1000;
            TimerBlink.Tick                += TimerBlink_Tick;
            BookExpress                     = new DoctorBookExpressCls();
            BookExpress.Username            = Program.CurrentUser.mut_username;
            BookExpress.SecondsToRefresh    = 5;
            BookExpress.ExpressBookChanged += BookExpress_ExpressBookChanged;
        }