private void metroTile1_Click(object sender, EventArgs e)
 {
     try
     {
         frmAttendance mysfrm = new frmAttendance();
         mysfrm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("application error " + ex);
     }
 }
Exemple #2
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            //frmAddUser addUser = new frmAddUser();
            //addUser.ShowDialog();
            frmAttendance att = new frmAttendance();

            att.ShowDialog();
            //msmMain.Theme = MetroFramework.MetroThemeStyle.Dark;

            /*var m = new Random();
             * int next = m.Next(0, 13);
             * this.Style = (MetroFramework.MetroColorStyle)next;
             * this.components.SetDefaultStyle(this, MetroFramework.MetroColorStyle.Purple);*/
        }