Ejemplo n.º 1
0
        public LoginForm(frmMain parentForm)
        {
            bool newVersionExist = ClientUtils.CheckNewVersion();

            if (newVersionExist)
            {
                ClientUtils.Upgrade(this);
                Environment.Exit(0);
                return;
            }

            InitializeComponent();
            _parentForm = parentForm;

            this.DialogResult = DialogResult.None;

            loadLookups();
            bindCombos();
        }