예제 #1
0
 public ComputerAddHostServerPage(ADComputerAddDlg computerAddDlg)
     : this()
 {
     this._computerAddDlg      = computerAddDlg;
     this._computerAddDlg.Text = "Host server";
     this.txtCreatein.Text     = "Create in: " + computerAddDlg.computerInfo.DomainName;
 }
 public ComputerAddHostServerPage(ADComputerAddDlg computerAddDlg)
 : this()
 {
     this._computerAddDlg = computerAddDlg;
     this._computerAddDlg.Text = "Host server";
     this.txtCreatein.Text = "Create in: " + computerAddDlg.computerInfo.DomainName;
 }
 public ComputerAddFinishPage(ADComputerAddDlg computerAddDlg)
 : this()
 {
     this._computerAddDlg = computerAddDlg;
     this.txtCreatein.Text = "Create in: " + computerAddDlg.computerInfo.DomainName;
     
 }
 public ComputerAddWelcomepage(ADComputerAddDlg computerAddDlg, ADUCDirectoryNode dirnode)
     : this()
 {
     this._computerAddDlg      = computerAddDlg;
     this._computerAddDlg.Text = "New Object - Computer";
     this._dirnode             = dirnode;
     this.txtcreatein.Text     = "Create in: " + computerAddDlg.computerInfo.DomainName;
 }
        public ComputerAddManagedPage(ADComputerAddDlg computerAddDlg)
            : this()
        {
            this._computerAddDlg      = computerAddDlg;
            this._computerAddDlg.Text = "Managed";

            if (this._computerAddDlg.computerInfo.IsComputerGUID)
            {
                this.checkBox.Checked = true;
                this.textBoxGUID.Text = this._computerAddDlg.computerInfo.ComputerGUID;
            }
            else
            {
                this.checkBox.Checked = false;
            }
            this.txtCreatein.Text = "Create in: " + computerAddDlg.computerInfo.DomainName;
        }
예제 #6
0
    /// <summary>
    /// Helper function that is used to add new computer when we click of 'New - Computer' menu item
    /// </summary>
    /// <param name="dirnode"></param>
    /// <param name="smamAccount"></param>
    private void AddNewComputer(ADUCDirectoryNode dirnode, string smamAccount)
    {
        if (dirnode != null)
        {
            string obj_type = dirnode.ObjectClass;

            ADComputerAddDlg f = new ADComputerAddDlg(base.container, this, dirnode);
            f.ShowDialog(this);

            if (f.computerInfo.commit == true)
            {
                Hashtable htCompInfo = new Hashtable();
                if (f.computerInfo.ComputerName != "")
                {
                    htCompInfo.Add("cn", f.computerInfo.ComputerName);
                    htCompInfo.Add("name", f.computerInfo.ComputerName);
                }
                if (f.computerInfo.PreWindowsCName != "")
                {
                    htCompInfo.Add("sAMAccountName", f.computerInfo.PreWindowsCName);
                }
                string compuserAccountControl = Convert.ToString(f.computerInfo.UserAccountControl);
                htCompInfo.Add("userAccountControl", compuserAccountControl);
                AddNewObj_Computer(dirnode, htCompInfo, false, f.computerInfo.IsBackUpDomainComputer, f.computerInfo.IsPreWindowsComputer);
            }
        }
    }
예제 #7
0
 public ComputerAddFinishPage(ADComputerAddDlg computerAddDlg)
     : this()
 {
     this._computerAddDlg  = computerAddDlg;
     this.txtCreatein.Text = "Create in: " + computerAddDlg.computerInfo.DomainName;
 }