コード例 #1
0
        private void FrmRegistration_Load(object sender, EventArgs e)
        {
            CheckStatus.Start();
            CheckCon.Start();
            string currentYear = DateTime.Now.ToString("yyyyMM");

            RetrieveSchoolYear();
            #region Fade In

            Opacity = 0;                            //first the opacity is 0

            t1.Interval = 10;                       //we'll increase the opacity every 10ms
            t1.Tick    += new EventHandler(FadeIn); //this calls the function that changes opacity
            t1.Start();

            #endregion Fade In
            lblenrollmentid.Text = "Enrollment ID: " + currentYear;
            DateAndTime.Start();
            Form            = 1;
            BtnBack.Visible = false;
            BtnNext.Visible = false;
            //Add module1 to panel control
            if (!panel4.Controls.Contains(Registration.RegistrationStart.Instance))
            {
                panel4.Controls.Add(Registration.RegistrationStart.Instance);
                Registration.RegistrationStart.Instance.Dock = DockStyle.Fill;
                Registration.RegistrationStart.Instance.BringToFront();
            }
            else
            {
                Registration.RegistrationPart1.Instance.BringToFront();
            }
        }
コード例 #2
0
        //Thread thread;
        //Clock newClock = new Clock();
        //LabelClock labelClock = new LabelClock();
        //CalendarLabel labelCalendar = new CalendarLabel();

        public MainPage()
        {
            InitializeComponent();
            //SetFormats();
            //thread = new Thread(ChangeLabels);
            //thread.Start();
            TimeFormat_Label.Text   = DateTime.Now.ToString("HH:mm");
            TimeCalendar_Label.Text = DateTime.Now.ToString("M/d/yyyy");
            this.DateAndTime.Tick  += new EventHandler(ChangeLabels);
            DateAndTime.Start();
        }
コード例 #3
0
 void clear()
 {
     lbllastname.Text = "";
     lbllrn.Text      = "";
     lbltrack.Text    = "";
     lblgrade.Text    = "";
     lblsection.Text  = "";
     lblstatus.Text   = "";
     lblcurdate.Text  = "";
     lbladviser.Text  = "";
     lblsemester.Text = "";
     lblstrand.Text   = "";
     DateAndTime.Start();
 }
コード例 #4
0
        private void FrmAttendance_Load(object sender, EventArgs e)
        {
            DateAndTime.Start();
            String a = @"C:\video.mp4";

            axWindowsMediaPlayer1.URL = a;
            axWindowsMediaPlayer1.settings.setMode("loop", true);
            GlobalVar.time = "Time In";
            clear();
            this.ActiveControl = textBox1;
            PresentTeacher();
            PresentStudent();
            Retrieve();
        }
コード例 #5
0
        private void FrmAdmin_Load(object sender, EventArgs e)
        {
            #region Fade In
            Opacity = 0;                            //first the opacity is 0

            t1.Interval = 10;                       //we'll increase the opacity every 10ms
            t1.Tick    += new EventHandler(FadeIn); //this calls the function that changes opacity
            t1.Start();
            #endregion
            CountVoter();
            CountVoterVote();
            RetrieveTitle();
            DateAndTime.Start();
            if (con.State == ConnectionState.Open)
            {
                con.Close();
            }
        }