src/Demo/Forms/Frm_Login.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*  Frm_Login.cs
**  Copyright (C) 2017, Jad Altahan
** 
**  This software may be modified and 
**  distributed under the terms of the
**  MIT license. See the LICENSE file
**  for details.
** 
**  http://github.com/xv
**  mailto:xviyy@aol.com
*/

using System.Drawing;
using System.Security.Permissions;
using System.Windows.Forms;
using System;
using XRails_LoginUI.Demo.Classes;

namespace XRails_LoginUI.Demo
{
    public partial class Frm_Login : Form
    {
        #region Fields

        private readonly Timer tmrFadeIn;
        private bool aeroShadow;

        #endregion
        #region Constants

        /// <summary>
        /// Allows minimizing from taskbar.
        /// </summary>
        private const int WS_MINIMIZEBOX = 0x20000;

        /// <summary>
        /// Paints all descendants of a window in bottom-to-top painting order
        /// using double-buffering.
        /// </summary>
        private const int WS_EX_COMPOSITED = 0x02000000;

        #endregion

        public Frm_Login()
        {
            InitializeComponent();

            // Animator settings
            Animator.AnimationType = AnimatorNS.AnimationType.Transparent;
            Animator.Interval = 8;
            Animator.MaxAnimationTime = 1000;
            Animator.TimeStep = 0.02F;

            XR_Button_Login.Enabled = false;
            XR_TextBox_User.TextChanged += ValidateInput;
            XR_TextBox_Pass.TextChanged += ValidateInput;

            /* IMPORTANT, OTHERWISE THE CUSTOM FONT WILL NOT LOAD
            ** ---------
            ** Because we're not installing the custom font on the system, debugging the software 
后面还有 171 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。