Example #1
0
        /// <summary>
        ///
        /// </summary>
        void EditServerType()
        {
            var type = dgServerTypes.SelectedItem as ServerType;

            var dataForm = new ServerTypeDataForm();

            if (dataForm.ShowModal(this, type) == ResultCodes.Apply)
            {
                //Connection.AttachServerTypeObjects(this.connections.ToList(), this.serverTypes.ToList());
                //dgConnections.Items.Refresh();
            }
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        void AddServerType()
        {
            var dataForm = new ServerTypeDataForm();

            if (dataForm.ShowModal(this) == ResultCodes.Apply)
            {
                var type = dataForm.GetEntity();
                this.serverTypes.Add(type);

                Connection.AttachServerTypeObjects(this.connections.ToList(), this.serverTypes.ToList());
                dgConnections.Items.Refresh();
            }
        }