Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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);
                }
            }
        }
Beispiel #6
0
        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);
                }
            }
        }
Beispiel #7
0
        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;
        }
Beispiel #8
0
        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;
        }
Beispiel #9
0
 /// <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;
 }
Beispiel #10
0
        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;
            }
        }