示例#1
0
        private void LoginButtonClick(object sender, ButtonPressedEventArgs e)
        {
            if ((bool)e.Button.Tag)
            {
                return;
            }

            //Создать нового пользователя
            var form = new NewUserForm();

            if (form.ShowDialog() != DialogResult.OK || form.NewUser == null)
            {
                return;
            }
            user = form.NewUser;
            Settings.Default.LastLogonUser = lueUser.EditValue.ToString();
            Settings.Default.Save();
            DialogResult = DialogResult.OK;
            Close();
        }
示例#2
0
        private void LoginButtonClick(object sender, ButtonPressedEventArgs e)
        {
            if ((bool)e.Button.Tag)
            {
                return;
            }

            //Создать нового пользователя
            var form = new NewUserForm();
            if (form.ShowDialog() != DialogResult.OK || form.NewUser == null)
            {
                return;
            }
            user = form.NewUser;
            Settings.Default.LastLogonUser = lueUser.EditValue.ToString();
            Settings.Default.Save();
            DialogResult = DialogResult.OK;
            Close();
        }