EditVhostByPosition() public méthode

public EditVhostByPosition ( int Pos, string nSN, string nDR ) : void
Pos int
nSN string
nDR string
Résultat void
Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }