Esempio n. 1
0
        private void UserAccount_Load(object sender, EventArgs e)
        {
            FontManager fm = FontManager.getInstance();

            header11.Font             = fm.getHeader2Font();
            header11.ForeColor        = ThemeConstants.HeaderTextColor1;
            UsernameAccount.ForeColor = ThemeConstants.HeaderTextColor1;
            PasswordAccount.ForeColor = ThemeConstants.HeaderTextColor1;
            NameAccount.ForeColor     = ThemeConstants.HeaderTextColor1;
            EmailAccount.ForeColor    = ThemeConstants.HeaderTextColor1;
            SexAccount.ForeColor      = ThemeConstants.HeaderTextColor1;
            ClassAccount.ForeColor    = ThemeConstants.HeaderTextColor1;


            panel3.Location   = new Point((Width / 2) - (panel3.Width / 2), (Height / 2) - (panel3.Height / 2));
            panel1.Location   = new Point((panel3.Width / 2) - (panel1.Width / 2), (panel1.Height / 2) - (panel1.Height / 2) + 110);
            header11.Location = new Point((panel3.Width / 2) - (header11.Width / 2), 0);

            P1User.Text  = UserManager.GetUsername();
            P1Name.Text  = UserManager.GetFname() + " " + UserManager.GetLname();
            P1Class.Text = ClassDefiner.WeightDivision();

            username_tb.Text = UserManager.GetUsername();
        }
Esempio n. 2
0
        public void Execute()
        {
            if (this.IsHelp)
            {
                Help.PrintHelp();
                Environment.Exit(0);
            }

            if (this.IsVersion)
            {
                Help.PrintVersion();
                Environment.Exit(0);
            }

            // 解析classpath
            var classData = new Classpath(this)
                            .ReadClass(this.ClassName);
            // Console.WriteLine(BitConverter.ToString(classData.Data));
            // 定义类
            var classDefinition = new ClassDefiner(classData)
                                  .Define();

            Console.WriteLine("");
        }