Ejemplo n.º 1
0
        private void CallUserEditForm(ConnectionUserData user)
        {
            var form = new WindowCrmConnectionUserCard(user);

            form.ShowDialog();

            UpdateCurrentConnectionInfo();

            this._crmConfig.Save();
        }
        private void btnEditUser_Click(object sender, RoutedEventArgs e)
        {
            if (cmBUser.SelectedItem is ConnectionUserData)
            {
                var user = cmBUser.SelectedItem as ConnectionUserData;

                var form = new WindowCrmConnectionUserCard(user);

                form.ShowDialog();

                RefreshUserList();
            }
        }
        private void btnNewUser_Click(object sender, RoutedEventArgs e)
        {
            var user = new ConnectionUserData();

            var form = new WindowCrmConnectionUserCard(user);

            if (form.ShowDialog().GetValueOrDefault())
            {
                this._listUsers.Add(user);
            }

            RefreshUserList();
        }
Ejemplo n.º 4
0
        private void tSBCreateUser_Click(object sender, RoutedEventArgs e)
        {
            if (!IsControlsEnabled)
            {
                return;
            }

            var user = new ConnectionUserData();

            var form = new WindowCrmConnectionUserCard(user);

            if (form.ShowDialog().GetValueOrDefault())
            {
                this._crmConfig.Users.Add(user);
            }

            UpdateCurrentConnectionInfo();

            this._crmConfig.Save();
        }