UpdateTaskbarServers() public static method

public static UpdateTaskbarServers ( ) : void
return void
Ejemplo n.º 1
0
        private void btnSaveServer_Click(object sender, EventArgs e)
        {
            if (!ValidateChildren(ValidationConstraints.Visible))
            {
                return;
            }

            if (this.Entry == null)
            {
                this.Entry = new ServerEntry(0);
            }

            this.Entry.Name           = this.inName.Text.Trim();
            this.Entry.Host           = this.inServer.Text.Trim();
            this.Entry.Port           = Int32.Parse(this.inPort.Text.Trim());
            this.Entry.ServerPassword = this.inServerPassword.Text.Trim();
            this.Entry.UserNickname   = this.inNickname.Text.Trim();
            this.Entry.UserPhonetic   = this.inPhonetic.Text.Trim();
            this.Entry.UserName       = this.inUsername.Text.Trim();
            this.Entry.UserPassword   = this.inPassword.Text.Trim();
            Servers.SaveServer(Entry);
            Program.UpdateTaskbarServers();

            this.ClearEdit();
            this.LoadServerEntries();
        }
Ejemplo n.º 2
0
        private void DeleteServers()
        {
            foreach (var li in this.servers.SelectedItems.Cast <ListViewItem> ())
            {
                var s = (ServerEntry)li.Tag;
                Servers.DeleteServer(s);
                this.servers.Items.Remove(li);
            }

            Program.UpdateTaskbarServers();
        }