private void Ok_Click(object sender, EventArgs e) { Vhosts vhostsList = new Vhosts(); vhostsList.AddVhost(DocumentRoot.Text, ServerName.Text); vhostsList.ToFile(); this.Close(); }
private void Ok_Click(object sender, EventArgs e) { Vhosts vhostsList = new Vhosts(); ///vhostsList.GetVhostBySN(this.editVhostSN).DocRoot = eDocRoot.Text; // vhostsList.GetVhostBySN(this.editVhostSN).SrvName = eSrvName.Text; int position = vhostsList.GetPositionBySN(this.editVhostSN); vhostsList.EditVhostByPosition(position, eSrvName.Text, eDocRoot.Text); vhostsList.ToFile(); this.Close(); }
private void Delete_Click(object sender, EventArgs e) { vhostsList.DelVhostBySN(vhostsListBox.Text); vhostsList.ToFile(); this.FillVhostsBox(vhostsList); }