You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
1.0 KiB

using CDPShared;
using CircleSDK.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CircleViewer.Dialogs
{
public partial class CreateCircleDlg : Form
{
private CDPWorker _cdp;
public CreateCircleDlg(CDPWorker cdp)
{
_cdp = cdp;
InitializeComponent();
}
private async void bnCreateCircle_Click(object sender, EventArgs e)
{
var reply = await _cdp.API.CreateCircle(tbCircleName.Text, tbDescription.Text);
if (reply == null)
MessageBox.Show("Failed to create user group.", "Circle for Data Protection");
else
{
MessageBox.Show($"User Group {tbCircleName.Text} created.", "Circle for Data Protection");
Close();
}
}
}
}