コード例 #1
0
        private void EditForm_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 11);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);
            var i = db.StudentDatas.Where(c => c.ID == ModifyStudent.STUDENT_ID).FirstOrDefault();
            var j = db.StudentProfiles.Where(c => c.ID == ModifyStudent.STUDENT_ID).FirstOrDefault();

            this.Text = "Tabish Ali";

            txtstdname.Text         = i.StudentName;
            txtathername.Text       = i.FatherName;
            txtregno.Text           = i.RegNo;
            txtmothername.Text      = i.MotherName;
            DateofBirthPicker.Value = Convert.ToDateTime(i.DateOfBirth);
            txtplaceofbirth.Text    = i.PlaceOfBirth;
            txtaddress.Text         = i.Address;
            txtcnic.Text            = i.NIC;
            ComboBoxGender.Text     = i.Gender;
            txtreligion.Text        = i.Religion;
            txtcontact.Text         = i.Contact;
            comboboxclass.Text      = i.Class;
            comboboxsection.Text    = i.Section;
            pictureBoxProfile.Image = ByteToImage(ModifyStudent.STUDENT_ID);
        }
コード例 #2
0
        private void SearchStudent_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont     = new Font(EmbedFont.private_fonts.Families[2], 9);
            groupBoxstd.Font     = new Font(EmbedFont.private_fonts.Families[0], 9);
            labelsearchid.Font   = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelsearchreg.Font  = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelsearchname.Font = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelfilter.Font     = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelyear.Font       = new Font(EmbedFont.private_fonts.Families[2], 9);

            var cls       = db.Randoms.Where(c => c.ID == 26).FirstOrDefault();
            var clasarray = cls.Text.Split(',');

            comboboxclass.DataSource = clasarray;

            var b = db.StudentDatas.Select(c => new { c.ID, c.RegNo, c.StudentName, c.FatherName, c.DateOfBirth, c.Gender, c.NIC, c.Religion, c.Contact, c.Class, c.Section, c.Address, c.AdmitDate }).ToList();

            sfDataPager.DataSource = b;
            sfDataPager.PageSize   = 20;
            sfDataGrid.DataSource  = sfDataPager.PagedSource;
            GridNames();
        }
コード例 #3
0
        private void AddStudent_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);
            labelresult.Font    = new Font(EmbedFont.private_fonts.Families[2], 9);

            txtsession.Text = DateTime.Now.Year.ToString();

            var cls       = db.Randoms.Where(c => c.ID == 6).FirstOrDefault();
            var clasarray = cls.Text.Split(',');

            var sec      = db.Randoms.Where(c => c.ID == 7).FirstOrDefault();
            var secarray = sec.Text.Split(',');


            string[] gender = { "Male", "Female" };
            ComboBoxGender.DataSource  = gender;
            comboboxclass.DataSource   = clasarray;
            comboboxsection.DataSource = secarray;
            Admitdatepicker.Value      = DateTime.Now;
        }
コード例 #4
0
        private void ModifyStudentFee_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelresult.Font    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);

            var det = db.StudentDatas.Where(c => c.ID == FeeSetting.STUDENT_ID).FirstOrDefault();

            labelstdid.Text         = det.ID.ToString();
            labelstdreg.Text        = det.RegNo;
            labelstdname.Text       = det.StudentName;
            labelfathername.Text    = det.FatherName;
            pictureBoxProfile.Image = ByteToImage(det.ID);

            var key = db.Randoms.Where(c => c.ID == 9).FirstOrDefault();

            labelother.Text = key.Text.ToString();

            txttution.Text = TutionFee(det.ID).ToString();

            var fee = db.StudentFees.Where(c => c.ID == det.ID).FirstOrDefault();

            txttransport.Text = fee.TransportFee.ToString();
            txtexam.Text      = fee.ExamFee.ToString();

            var otfee = db.Randoms.Where(c => c.ID == 10).FirstOrDefault();

            txtother.Text = otfee.Text.ToString();
        }
コード例 #5
0
        private void ViewStudent_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);


            var data = db.StudentDatas.Where(c => c.ID == SearchStudent.STUDENT_ID).FirstOrDefault();

            this.Text = data.StudentName.ToString();

            labelname.Text     = data.StudentName;
            labelfname.Text    = data.FatherName;
            labelmname.Text    = data.MotherName;
            labeldob.Text      = data.DateOfBirth;
            labelpob.Text      = data.PlaceOfBirth;
            labelnic.Text      = data.NIC;
            labelgender.Text   = data.Gender;
            labelreligion.Text = data.Religion;
            labelcontact.Text  = data.Contact;
            labeladdress.Text  = data.Address;

            labelregno.Text     = data.RegNo;
            labelclass.Text     = data.Class;
            labelsec.Text       = data.Section;
            labeladmitdate.Text = data.AdmitDate;
            labelsesion.Text    = data.Session;



            pictureBoxProfile.Image = ByteToImage(data.ID);
        }
コード例 #6
0
        private void FeeSetting_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelresult.Font    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);

            sfDataGrid.DataSource            = DataSource();
            sfDataGrid.Columns[0].HeaderText = "Class";
            sfDataGrid.Columns[1].HeaderText = "Tution Fee";
            sfDataGrid.Columns[2].HeaderText = "Exam Fee";

            var key = db.Randoms.Where(c => c.ID == 9).FirstOrDefault();

            labelother.Text = key.Text.ToString();

            var fee = db.Randoms.Where(c => c.ID == 28).FirstOrDefault();

            labelotherfee.Text = "Rs. " + fee.Text.ToString();

            var vouch = db.Randoms.Where(c => c.ID == 31).FirstOrDefault();

            labelvouch.Text = "Rs. " + vouch.Text.ToString();

            var late = db.Randoms.Where(c => c.ID == 29).FirstOrDefault();

            labellate.Text = "Rs. " + late.Text.ToString();

            var due = db.Randoms.Where(c => c.ID == 30).FirstOrDefault();

            labeldue.Text = due.Text.ToString() + " of Every Month";
        }
コード例 #7
0
        private void ModifyOthersFee_Load_1(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelresult.Font    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);

            var key = db.Randoms.Where(c => c.ID == 9).FirstOrDefault();

            txtotherlabel.Text = key.Text.ToString();

            var fee = db.Randoms.Where(c => c.ID == 10).FirstOrDefault();

            txtotherfee.Text = fee.Text.ToString();

            var vouch = db.Randoms.Where(c => c.ID == 12).FirstOrDefault();

            txtvouch.Text = vouch.Text.ToString();

            var late = db.Randoms.Where(c => c.ID == 11).FirstOrDefault();

            txtlate.Text = late.Text.ToString();

            var due = db.Randoms.Where(c => c.ID == 13).FirstOrDefault();

            txtdue.Text = due.Text.ToString();
        }
コード例 #8
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            tm.Interval = 1000;
            tm.Elapsed += Tm_Elapsed;
            tm.Start();

            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont                   = new Font(EmbedFont.private_fonts.Families[2], 9);
            btndashbaord.TextFont              = new Font(EmbedFont.private_fonts.Families[0], 10);
            btnstudent.TextFont                = new Font(EmbedFont.private_fonts.Families[0], 10);
            btnfees.TextFont                   = new Font(EmbedFont.private_fonts.Families[0], 10);
            btnabout.TextFont                  = new Font(EmbedFont.private_fonts.Families[0], 10);
            btnsetting.TextFont                = new Font(EmbedFont.private_fonts.Families[0], 10);
            btnlogout.TextFont                 = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelschool.Font                   = new Font(EmbedFont.private_fonts.Families[0], 18);
            labelschool.Text                   = Student_Management_System.Properties.Resources.school_name;
            labeltotalstd.Font                 = new Font(EmbedFont.private_fonts.Families[2], 12, FontStyle.Bold);
            labelstd.Font                      = new Font(EmbedFont.private_fonts.Families[0], 10);
            labeltotalfeede.Font               = new Font(EmbedFont.private_fonts.Families[2], 12, FontStyle.Bold);
            labelfeede.Font                    = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelfee.Font                      = new Font(EmbedFont.private_fonts.Families[2], 10, FontStyle.Bold);
            labelfee.Text                      = "RS." + TotalAmountPerMonth() + "/-";
            labelfeelbl.Font                   = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelcalender.Font                 = new Font(EmbedFont.private_fonts.Families[0], 9);
            labelclock.Font                    = new Font(EmbedFont.private_fonts.Families[0], 9);
            labeltime.Font                     = new Font(EmbedFont.private_fonts.Families[0], 22);
            labelcopyright.Text                = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font                = new Font(EmbedFont.private_fonts.Families[0], 9);
            Calendar.Style.Header.Font         = new Font(EmbedFont.private_fonts.Families[0], 11, FontStyle.Bold);
            Calendar.Style.Header.DayNamesFont = new Font(EmbedFont.private_fonts.Families[0], 8, FontStyle.Regular);
            Calendar.SelectedDate              = DateTime.Now;
            labelstudents.Font                 = new Font(EmbedFont.private_fonts.Families[0], 18);
            labelfeemain.Font                  = new Font(EmbedFont.private_fonts.Families[0], 18);
            labelstdadd.Font                   = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelstddel.Font                   = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelstdmod.Font                   = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelstdsetting.Font               = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelstdearch.Font                 = new Font(EmbedFont.private_fonts.Families[0], 10);
            labeladdfee.Font                   = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelfeeDefaulters.Font            = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelfeevouchers.Font              = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelfeesetting.Font               = new Font(EmbedFont.private_fonts.Families[0], 10);
            labelsubmittedfee.Font             = new Font(EmbedFont.private_fonts.Families[0], 10);

            labelstudentsub.Font = new Font(EmbedFont.private_fonts.Families[0], 10);


            li = db.StudentDatas.ToList();
            labeltotalstd.Text = li.Count.ToString();
            fe = db.StudentFees.Where(c => c.Submitted == false).ToList();
            labeltotalfeede.Text = fe.Count.ToString();
            search     = new SearchStudent();
            stdsetting = new StudentSetting();
        }
コード例 #9
0
        public Backup()
        {
            InitializeComponent();
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();

            labelbtm.Font    = new Font(EmbedFont.private_fonts.Families[0], 9);
            this.CaptionFont = new Font(EmbedFont.private_fonts.Families[2], 9);
        }
コード例 #10
0
 private void ModifyStudent_Load(object sender, EventArgs e)
 {
     EmbedFont.LoadComfortaaFont();
     EmbedFont.LoadMicrossFont();
     EmbedFont.LoadRalewayFont();
     this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 9);
     labelresult.Font    = new Font(EmbedFont.private_fonts.Families[2], 9);
     labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
     labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);
 }
コード例 #11
0
        private void FormLogin_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();

            labelbtm.Font   = new Font(EmbedFont.private_fonts.Families[0], 7);
            labelLogin.Font = new Font(EmbedFont.private_fonts.Families[0], 13);
            labelLogin.Focus();
        }
コード例 #12
0
        private void FirstRun_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont = new Font(EmbedFont.private_fonts.Families[2], 9);

            /*/
             * labelw.Font = new Font(EmbedFont.private_fonts.Families[0], 32);
             * labelwelcom.Font = new Font(EmbedFont.private_fonts.Families[0], 24);/*/
        }
コード例 #13
0
        private void FirstRun_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont  = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelwelcome.Font = new Font(EmbedFont.private_fonts.Families[0], 24);



            if (!radiorestore.Checked)
            {
                txtfilename.Visible = false;
                btnbrowse.Visible   = false;
            }

            for (int i = 1; i <= 20; i++)
            {
                string   name    = "textBoxX" + i.ToString();
                TextBoxX txt_lbl = this.Controls.Find(name, true).FirstOrDefault() as TextBoxX;
                txt_lbl.WatermarkText = "No. " + i.ToString();
                txt_lbl.TabIndex      = i - 0;
            }

            for (int i = 21; i <= 30; i++)
            {
                string   name    = "textBoxX" + i.ToString();
                TextBoxX txt_lbl = this.Controls.Find(name, true).FirstOrDefault() as TextBoxX;
                txt_lbl.WatermarkText = "Section. " + (i - 20).ToString();
                txt_lbl.TabIndex      = i - 0;
            }

            for (int i = 31; i <= 50; i++)
            {
                string   name    = "text" + i.ToString();
                TextBoxX txt_lbl = this.Controls.Find(name, true).FirstOrDefault() as TextBoxX;
                txt_lbl.Enabled   = false;
                txt_lbl.ForeColor = Color.Black;
            }

            for (int i = 51; i <= 70; i++)
            {
                string   name    = "text" + i.ToString();
                TextBoxX txt_lbl = this.Controls.Find(name, true).FirstOrDefault() as TextBoxX;
                txt_lbl.WatermarkText = "Tution Fee";
            }

            for (int i = 71; i <= 90; i++)
            {
                string   name    = "text" + i.ToString();
                TextBoxX txt_lbl = this.Controls.Find(name, true).FirstOrDefault() as TextBoxX;
                txt_lbl.WatermarkText = "Exam Fee";
            }
        }
コード例 #14
0
        private void EditForm_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 11);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);
            var i = db.StudentDatas.Where(c => c.ID == ModifyStudent.STUDENT_ID).FirstOrDefault();
            var j = db.StudentProfiles.Where(c => c.ID == ModifyStudent.STUDENT_ID).FirstOrDefault();

            this.Text = i.StudentName;

            var cls       = db.Randoms.Where(c => c.ID == 6).FirstOrDefault();
            var clasarray = cls.Text.Split(',');

            var sec      = db.Randoms.Where(c => c.ID == 7).FirstOrDefault();
            var secarray = sec.Text.Split(',');


            string[] gender = { "Male", "Female" };
            ComboBoxGender.DataSource  = gender;
            comboboxclass.DataSource   = clasarray;
            comboboxsection.DataSource = secarray;

            txtstdname.Text         = i.StudentName;
            txtathername.Text       = i.FatherName;
            txtregno.Text           = i.RegNo;
            txtmothername.Text      = i.MotherName;
            DateofBirthPicker.Value = Convert.ToDateTime(i.DateOfBirth);
            DateofBirthPicker.Text  = i.DateOfBirth;
            txtplaceofbirth.Text    = i.PlaceOfBirth;
            txtaddress.Text         = i.Address;
            txtcnic.Text            = i.NIC;
            ComboBoxGender.Text     = i.Gender;
            txtreligion.Text        = i.Religion;
            txtcontact.Text         = i.Contact;
            comboboxclass.Text      = i.Class;

            CultureInfo enUS = new CultureInfo("en-US");
            DateTime    admitdate;
            bool        check = DateTime.TryParseExact(i.AdmitDate, "dd/MM/yyyy", enUS, DateTimeStyles.None, out admitdate);


            Admitdatepicker.Value = admitdate;
            Admitdatepicker.Text  = i.AdmitDate;
            comboboxsection.Text  = i.Section;

            pictureBoxProfile.Image = ByteToImage(ModifyStudent.STUDENT_ID);
        }
コード例 #15
0
 private void StudentSubmission_Load(object sender, EventArgs e)
 {
     EmbedFont.LoadComfortaaFont();
     EmbedFont.LoadMicrossFont();
     EmbedFont.LoadRalewayFont();
     this.CaptionFont                 = new Font(EmbedFont.private_fonts.Families[2], 9);
     labelresult.Font                 = new Font(EmbedFont.private_fonts.Families[2], 9);
     labelcopyright.Text              = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
     labelcopyright.Font              = new Font(EmbedFont.private_fonts.Families[0], 8);
     sfDataGrid.DataSource            = DataSource();
     sfDataGrid.Columns[0].HeaderText = "Amount";
     sfDataGrid.Columns[1].HeaderText = "Month";
     sfDataGrid.Columns[2].HeaderText = "Date";
 }
コード例 #16
0
        private void Splash_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();

            labelbtm.Font     = new Font(EmbedFont.private_fonts.Families[0], 7);
            labellic.Font     = new Font(EmbedFont.private_fonts.Families[2], 8);
            labellicname.Font = new Font(EmbedFont.private_fonts.Families[2], 8);
            tm          = new Timer();
            tm.Enabled  = true;
            tm.Interval = 5000;
            tm.Tick    += Tm_Tick;
            tm.Start();
        }
コード例 #17
0
 public Loading(string name, string color, Bitmap pictureBox)
 {
     InitializeComponent();
     this.Icon     = global::Student_Management_System.Properties.Resources.icon;
     this.ShowIcon = true;
     EmbedFont.LoadComfortaaFont();
     EmbedFont.LoadMicrossFont();
     EmbedFont.LoadRalewayFont();
     this.labelprinting.Font = new Font(EmbedFont.private_fonts.Families[2], 13);
     this.labelprinting.Text = name;
     this.Text                    = name;
     this.BackColor               = System.Drawing.ColorTranslator.FromHtml(color);
     this.pictureBox1.Image       = pictureBox;
     this.labelprinting.ForeColor = ColorTranslator.FromHtml(color);
 }
コード例 #18
0
        private void FeeDefaulters_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new System.Drawing.Font(EmbedFont.private_fonts.Families[2], 9);
            labelresult.Font    = new System.Drawing.Font(EmbedFont.private_fonts.Families[2], 9);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new System.Drawing.Font(EmbedFont.private_fonts.Families[0], 8);

            string[] classes = { "Prep", "Nursery", "KG", "Montessori", "1st", "2nd", "3rd", "4th", "5th", "6th", "7th" };
            string[] section = { "A", "B", "C", "D" };
            comboboxclass.DataSource   = classes;
            comboboxsection.DataSource = section;
        }
コード例 #19
0
        private void AnnualReport_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont    = new Font(EmbedFont.private_fonts.Families[2], 9);
            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new Font(EmbedFont.private_fonts.Families[0], 8);
            var cls       = db.Randoms.Where(c => c.ID == 6).FirstOrDefault();
            var clasarray = cls.Text.Split(',');

            var sec      = db.Randoms.Where(c => c.ID == 7).FirstOrDefault();
            var secarray = sec.Text.Split(',');

            comboboxclass.DataSource   = clasarray;
            comboboxsection.DataSource = secarray;
        }
コード例 #20
0
        private void TrailForm_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();

            labelbtm.Font    = new Font(EmbedFont.private_fonts.Families[0], 8);
            this.CaptionFont = new Font(EmbedFont.private_fonts.Families[2], 9);
            string label = @"You have <b><font color='#C0504D'><font size='+8'>" + TrailDaysRemaining().ToString("00") + "</font></font></b> Days Remaining.";

            labelX2.Text       = label;
            btntrydemo.Enabled = false;
            tm          = new Timer();
            tm.Tick    += Tm_Tick;
            tm.Interval = 1000;

            TIMER_RUN = true;
        }
コード例 #21
0
        private void Splash_Load(object sender, EventArgs e)
        {
            bw                     = new BackgroundWorker();
            bw.DoWork             += Bw_DoWork;
            bw.RunWorkerCompleted += Bw_RunWorkerCompleted;

            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();

            labelbtm.Font = new Font(EmbedFont.private_fonts.Families[0], 7);


            tm          = new Timer();
            tm.Enabled  = true;
            tm.Interval = 5000;
            tm.Tick    += Tm_Tick;
            tm.Start();
        }
コード例 #22
0
        private void Activation_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();

            labelbtm.Font    = new Font(EmbedFont.private_fonts.Families[0], 8);
            this.CaptionFont = new Font(EmbedFont.private_fonts.Families[2], 9);

            btnlaunch.Text = "Launch in " + TrailForm.tick.ToString() + "s";
            if (FormMain.GETID == 0 || Splash.GETID == 0)
            {
                btnlaunch.Visible = false;
            }
            else
            {
                btnlaunch.Visible = true;
            }
            bw                     = new BackgroundWorker();
            bw.DoWork             += Bw_DoWork;
            bw.RunWorkerCompleted += Bw_RunWorkerCompleted;
        }
コード例 #23
0
        private void StaffSubmission_Load(object sender, EventArgs e)
        {
            EmbedFont.LoadComfortaaFont();
            EmbedFont.LoadMicrossFont();
            EmbedFont.LoadRalewayFont();
            this.CaptionFont                 = new System.Drawing.Font(EmbedFont.private_fonts.Families[2], 9);
            labeltoday.Font                  = new System.Drawing.Font(EmbedFont.private_fonts.Families[0], 10);
            labelmonth.Font                  = new System.Drawing.Font(EmbedFont.private_fonts.Families[0], 10);
            labeltotaltoday.Font             = new System.Drawing.Font(EmbedFont.private_fonts.Families[0], 12, FontStyle.Bold);
            labeltotalmonth.Font             = new System.Drawing.Font(EmbedFont.private_fonts.Families[0], 12, FontStyle.Bold);
            labelschool.Font                 = new System.Drawing.Font(EmbedFont.private_fonts.Families[0], 16);
            labeltotalmonth.Text             = "Rs. " + TotalAmountPerMonth() + "/-";
            labeltotaltoday.Text             = "Rs. " + TotalAmountToday() + "/-";
            sfDataGrid.DataSource            = DataTable();
            sfDataGrid.Columns[0].HeaderText = "Student Name";
            sfDataGrid.Columns[1].HeaderText = "Father's Name";
            sfDataGrid.Columns[2].HeaderText = "Amount";
            sfDataGrid.Columns[3].HeaderText = "Date & Time";

            labelcopyright.Text = "© Copyright - Student Management Sytem | Powered by TabiSoft Solutions";
            labelcopyright.Font = new System.Drawing.Font(EmbedFont.private_fonts.Families[0], 8);
            labelresult.Font    = new System.Drawing.Font(EmbedFont.private_fonts.Families[2], 9);
        }