Esempio n. 1
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 });
        }
Esempio n. 2
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;
        }