/// <summary> /// Constructs a new venue. /// </summary> /// <param name="identifier">the identifier of the venue</param> /// <param name="ipAddress">the ipaddress of the venue</param> /// <param name="port">the port the venue is active on</param> /// <param name="name">the name of the venue</param> /// <param name="isPublic">is this a public venue</param> /// <param name="icon">the venue's icon</param> public Venue(string identifier, string ipAddress, int port, string name, byte[] icon, SecurityPatterns accessList) { this.Identifier = identifier; this.Name = name; this.IPAddress = ipAddress; this.Port = port; this.Icon = icon; this.AccessList = accessList; }
private void advancedBtn_Click(object sender, System.EventArgs e) { AdvVenueSettings settings = new AdvVenueSettings(this.newAccessList); DialogResult dr = settings.ShowDialog(); if (dr == DialogResult.OK) { this.newAccessList = settings.Patterns; } }
public VenueEditor(Venue venueToEdit) { // // Required for Windows Form Designer support // InitializeComponent(); iconInput.DefaultIcon = defaultVenueIcon; // Show the venue information in the UI this.nameInput.Text = venueToEdit.Name; this.ownerInput.Text = venueToEdit.Identifier; this.ipInput.Text = venueToEdit.IPAddress; this.portInput.Text = venueToEdit.Port.ToString(); this.iconInput.IconAsBytes = venueToEdit.Icon; this.newAccessList = venueToEdit.AccessList; this.original = venueToEdit; }
public AdvVenueSettings(SecurityPatterns accessList) { // // Required for Windows Form Designer support // InitializeComponent(); // Keep a handle on the orignal list this.originalList = accessList; // Show all of the items in the list if (accessList != null) { string[] expressions = accessList.Patterns; foreach(string expression in expressions) { this.expressionList.Items.Add(expression); } } }
public AdvVenueSettings(SecurityPatterns accessList) { // // Required for Windows Form Designer support // InitializeComponent(); // Keep a handle on the orignal list this.originalList = accessList; // Show all of the items in the list if (accessList != null) { string[] expressions = accessList.Patterns; foreach (string expression in expressions) { this.expressionList.Items.Add(expression); } } }
public VenueEditor(VenueState venueState) { // // Required for Windows Form Designer support // InitializeComponent(); iconInput.DefaultIcon = defaultVenueIcon; // Show the venue information in the UI Venue venueToEdit = venueState.Venue; this.nameInput.Text = venueToEdit.Name; this.ownerInput.Text = venueToEdit.Identifier; this.ipInput.Text = venueToEdit.IPAddress; this.portInput.Text = venueToEdit.Port.ToString(CultureInfo.InvariantCulture); this.iconInput.IconAsBytes = venueToEdit.Icon; this.newAccessList = venueToEdit.AccessList; this.original = venueToEdit; this.privateVenueState = venueState.PrivateVenueState; this.passwordStatus = venueToEdit.PWStatus; }
/// <summary> /// Constructs a new venue. /// </summary> /// <param name="identifier">the identifier of the venue</param> /// <param name="ipAddress">the ipaddress of the venue</param> /// <param name="port">the port the venue is active on</param> /// <param name="name">the name of the venue</param> /// <param name="isPublic">is this a public venue</param> /// <param name="icon">the venue's icon</param> public Venue( string identifier, string ipAddress, int port, string name, byte[] icon, SecurityPatterns accessList) { this.Identifier = identifier; this.Name = name; this.IPAddress = ipAddress; this.Port = port; this.Icon = icon; this.AccessList = accessList; this.VenueType = VenueType.STATIC_SINGLE_GROUP; }