Пример #1
0
    public NewGroupDlg(IPlugInContainer container, StandardPage parentPage,Hostinfo hn, IPlugIn plugin)
    : base(container, parentPage)
    {
        InitializeComponent();
        
        // Create an instance of a ListView column sorter and assign it
        // to the ListView control.
        lvwColumnSorter = new ListViewColumnSorter();
        this.lvMembers.ListViewItemSorter = lvwColumnSorter;
        
        this.ButtonCancel.Text = "Cancel";
        
        this.ButtonOK.Text = "Create";
        
        this.SetAllValueChangedHandlers(this);
        
        localParent = (LUGPage)parentPage;
        
        if (localParent == null)
        {
            throw new ArgumentException("NewGroupDlg constructor: (LUGPage) parentPage == null");
        }

        this._hn = hn;
        this._plugin = (LUGPlugIn)plugin;

        ((EditDialog)this).btnApply.Visible = false;
        users = new Hashtable();
        
        this.tbGroupName.Select();
        
    }
 public ObjectAddMoreAttributesDlg(ADObjectAddDlg objectAddDlg, IPlugInContainer container, StandardPage parentPage)
     : this(container, parentPage)
 {
     this._objectAddDlg = objectAddDlg;
     InitializeComponent();
     InitializePages();
 }
    /// <summary>
    /// Gets all class attributes from the Schema template and add them to the treeview
    /// </summary>
    /// <param name="objectAddDlg"></param>
    public ObjectAddWelcomePage(ADObjectAddDlg objectAddDlg, ADUCDirectoryNode dirnode, IPlugInContainer container, StandardPage parentPage)
        : this()
    {
        this._objectAddDlg = objectAddDlg;
        this.dirnode = dirnode;
        this._container = container;
        this._parentPage = parentPage;

        if (_objectAddDlg.objectClasses != null)
        {
            if (treeView1.Nodes != null)
            {
                treeView1.Nodes.Clear();
            }

            foreach (string node in _objectAddDlg.objectClasses)
            {
                if (node != null)
                {
                    SchemaType schemaType = _objectAddDlg.schemaCache.GetSchemaTypeByObjectClass(node);
                    LdapClassType ldapClassType = schemaType as LdapClassType;
                    String[] mandatoryAttributes = ldapClassType.MandatoryAttributes;
                    TreeNode schemeNode = new TreeNode();
                    schemeNode.Text = schemaType.AttributeDisplayName;
                    schemeNode.Tag = mandatoryAttributes;
                    treeView1.Nodes.Add(schemeNode);
                    treeView1.Sort();
                }
            }
        }

        treeView1.HideSelection = true;
    }
Пример #4
0
 public ObjectSelectDlg(IPlugInContainer container, StandardPage parentPage, Hostinfo hn, IPlugIn plugin)
     : this()
 {
     this.IPlugInContainer = container;
     //this.AddPage(new DomainConnectPage(this, hn, plugin, container));
     this.AddPage(new ObjectSelectPage(this, plugin, container));
 }
Пример #5
0
        //private Hostinfo hn = null;

        #endregion

        #region Constructors

        public GroupPropertiesDlg(IPlugInContainer container, StandardPage parentPage, IPlugIn plugin)
            : base(container, parentPage)
        {
            this.plugin = plugin;
            InitializeComponent();
            InitializePages();
        }
Пример #6
0
 public ObjectSelectPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
 {
     InitializeComponent();
     this.objectSelectDlg = (ObjectSelectDlg)wizardDialog;
     this.plugin = plugin;
     this.container = container;
 }
Пример #7
0
 /// <summary>
 /// Adds all the "user"/"group" objects to the tree
 /// </summary>
 /// <param name="container"></param>
 /// <param name="parentPage"></param>
 /// <param name="plugin"></param>
 /// <param name="PageType"></param>
 public AddUsertoGroup(IPlugInContainer container, MPPage parentPage, ADUCPlugin plugin, int PageType)
 : this()
 {
     this.IPlugInContainer = container;
     _addplugin = plugin;
     _aducRootnode = _addplugin.GetPlugInNode();
     _PageType = PageType;
     
     if (_aducRootnode.Nodes.Count > 0)
     {
         ADUCDirectoryNode rootNode =
         ADUCDirectoryNode.GetDirectoryRoot(_addplugin.GetpluginContext(),            
         _addplugin.GetRootDN(),
         Resources.ADUC, typeof (ADUCPage), _addplugin);
         
         if (rootNode != null)
         {
             treeView1.Nodes.Add(rootNode);
             rootNode.Refresh();
             treeView1.ExpandAll();
         }
     }
     else
     {
         Logger.Log("The LWTreeView control does not have any nodes.");
     }
 }
Пример #8
0
 public ResetPassword(IPlugInContainer container, StandardPage parentPage, bool bPwdNeverExpires, string user)
     : this()
 {
     this.IPlugInContainer = container;
     this.bNeverExpiresPwd = bPwdNeverExpires;
     this.sUser            = user;
 }
Пример #9
0
 public ObjectAddMoreAttributesDlg(ADObjectAddDlg objectAddDlg, IPlugInContainer container, StandardPage parentPage)
     : this(container, parentPage)
 {
     this._objectAddDlg = objectAddDlg;
     InitializeComponent();
     InitializePages();
 }
Пример #10
0
        /// <summary>
        /// Adds all the "user"/"group" objects to the tree
        /// </summary>
        /// <param name="container"></param>
        /// <param name="parentPage"></param>
        /// <param name="plugin"></param>
        /// <param name="PageType"></param>
        public AddUsertoGroup(IPlugInContainer container, MPPage parentPage, ADUCPlugin plugin, int PageType)
            : this()
        {
            this.IPlugInContainer = container;
            _addplugin            = plugin;
            _aducRootnode         = _addplugin.GetPlugInNode();
            _PageType             = PageType;

            if (_aducRootnode.Nodes.Count > 0)
            {
                ADUCDirectoryNode rootNode =
                    ADUCDirectoryNode.GetDirectoryRoot(_addplugin.GetpluginContext(),
                                                       _addplugin.GetRootDN(),
                                                       Resources.ADUC, typeof(ADUCPage), _addplugin);

                if (rootNode != null)
                {
                    treeView1.Nodes.Add(rootNode);
                    rootNode.Refresh();
                    treeView1.ExpandAll();
                }
            }
            else
            {
                Logger.Log("The LWTreeView control does not have any nodes.");
            }
        }
Пример #11
0
 public ObjectSelectDlg(IPlugInContainer container, StandardPage parentPage, Hostinfo hn, IPlugIn plugin)
     : this()
 {
     this.IPlugInContainer = container;
     //this.AddPage(new DomainConnectPage(this, hn, plugin, container));
     this.AddPage(new ObjectSelectPage(this, plugin, container));
 }
Пример #12
0
        public NewGroupDlg(IPlugInContainer container, StandardPage parentPage, Hostinfo hn, IPlugIn plugin)
            : base(container, parentPage)
        {
            InitializeComponent();

            // Create an instance of a ListView column sorter and assign it
            // to the ListView control.
            lvwColumnSorter = new ListViewColumnSorter();
            this.lvMembers.ListViewItemSorter = lvwColumnSorter;

            this.ButtonCancel.Text = "Cancel";

            this.ButtonOK.Text = "Create";

            this.SetAllValueChangedHandlers(this);

            localParent = (LUGPage)parentPage;

            if (localParent == null)
            {
                throw new ArgumentException("NewGroupDlg constructor: (LUGPage) parentPage == null");
            }

            this._hn     = hn;
            this._plugin = (LUGPlugIn)plugin;

            ((EditDialog)this).btnApply.Visible = false;
            users = new Hashtable();

            this.tbGroupName.Select();
        }
Пример #13
0
 public ResetPassword(IPlugInContainer container, StandardPage parentPage, bool bPwdNeverExpires, string user)
 : this()
 {
     this.IPlugInContainer = container;
     this.bNeverExpiresPwd = bPwdNeverExpires;
     this.sUser = user;
 }
Пример #14
0
 public ObjectSelectPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
 {
     InitializeComponent();
     this.objectSelectDlg = (ObjectSelectDlg)wizardDialog;
     this.plugin          = plugin;
     this.container       = container;
 }
 //private Hostinfo hn = null;
 
 #endregion
 
 #region Constructors
 
 public GroupPropertiesDlg(IPlugInContainer container, StandardPage parentPage, IPlugIn plugin)
 : base(container, parentPage)
 {
     this.plugin = plugin;
     InitializeComponent();
     InitializePages();
 }
Пример #16
0
        /// <summary>
        /// Gets all class attributes from the Schema template and add them to the treeview
        /// </summary>
        /// <param name="objectAddDlg"></param>
        public ObjectAddWelcomePage(ADObjectAddDlg objectAddDlg, ADUCDirectoryNode dirnode, IPlugInContainer container, StandardPage parentPage)
            : this()
        {
            this._objectAddDlg = objectAddDlg;
            this.dirnode       = dirnode;
            this._container    = container;
            this._parentPage   = parentPage;

            if (_objectAddDlg.objectClasses != null)
            {
                if (treeView1.Nodes != null)
                {
                    treeView1.Nodes.Clear();
                }

                foreach (string node in _objectAddDlg.objectClasses)
                {
                    if (node != null)
                    {
                        SchemaType    schemaType          = _objectAddDlg.schemaCache.GetSchemaTypeByObjectClass(node);
                        LdapClassType ldapClassType       = schemaType as LdapClassType;
                        String[]      mandatoryAttributes = ldapClassType.MandatoryAttributes;
                        TreeNode      schemeNode          = new TreeNode();
                        schemeNode.Text = schemaType.AttributeDisplayName;
                        schemeNode.Tag  = mandatoryAttributes;
                        treeView1.Nodes.Add(schemeNode);
                        treeView1.Sort();
                    }
                }
            }

            treeView1.HideSelection = true;
        }
Пример #17
0
        public ADComputerAddDlg(IPlugInContainer container, StandardPage parentPage, ADUCDirectoryNode dirnode)
            : this()
        {
            this.IPlugInContainer = container;

            computerInfo = new ComputerInfo();
            int ret = -1;

            if (dirnode != null)
            {
                List <LdapEntry> ldapEntries = null;
                ret = dirnode.LdapContext.ListChildEntriesSynchronous
                          (dirnode.DistinguishedName,
                          LdapAPI.LDAPSCOPE.BASE,
                          "(objectClass=*)",
                          null,
                          false,
                          out ldapEntries);

                if (ldapEntries == null || ldapEntries.Count == 0)
                {
                    return;
                }

                LdapEntry ldapNextEntry = ldapEntries[0];
                //As of now we are not getting canonicalName attribute in the list because of paging issue
                //LdapValue[] attr = ldapNextEntry.GetAttributeValues("canonicalName", dirnode.LdapContext);
                //if (attr != null && attr.Length > 0)
                //    this.lblCreatein.Text = "Create in: " + attr[0].stringData;

                //As of now we are taking "DistinguishedName" and spliting and displaying it.
                string[] sData   = dirnode.DistinguishedName.Split(',');
                string   sOutput = "";
                for (int i = sData.Length - 1; i >= 0; i--)
                {
                    if (sData[i].ToString().Trim().StartsWith("DC", StringComparison.InvariantCultureIgnoreCase))
                    {
                        sOutput = sData[i].ToString().Trim().Substring(3) + "." + sOutput;
                    }
                    else if (sData[i].ToString().Trim().StartsWith("OU", StringComparison.InvariantCultureIgnoreCase) || sData[i].ToString().Trim().StartsWith("CN", StringComparison.InvariantCultureIgnoreCase))
                    {
                        sOutput += "/" + sData[i].ToString().Trim().Substring(3);
                    }
                }
                if (sOutput.EndsWith("."))
                {
                    sOutput += "/";
                }
                sOutput = sOutput.Replace("./", "/");

                this.computerInfo.DomainName = sOutput;
            }


            this.AddPage(new ComputerAddWelcomepage(this, dirnode));
            this.AddPage(new ComputerAddManagedPage(this));
            this.AddPage(new ComputerAddHostServerPage(this));
            this.AddPage(new ComputerAddFinishPage(this));
        }
Пример #18
0
        public NewShareWelcomePage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin    = plugin as FileShareManagerIPlugIn;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
Пример #19
0
 public ObjectAddFinalPage(ADObjectAddDlg objectAddDlg, IPlugInContainer container, StandardPage parentPage)
     : this()
 {
     this._objectAddDlg = objectAddDlg;
     this._container    = container;
     this._parentPage   = parentPage;
     //this.pageName = "finalnewObjectPage";
 }
 public GenericPropertiesDlg(IPlugInContainer container, StandardPage parentPage, bool IsGeneralPageReq)
 : base(container, parentPage)
 {
     InitializeComponent();
     this.Text = "{0} Properties";
     this.bIsGeneralpageReq = IsGeneralPageReq;
     InitializePages();
 }
        public NewShareWelcomePage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin = plugin as FileShareManagerIPlugIn;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
Пример #22
0
 public ADRenameDlg(IPlugInContainer container, StandardPage parentPage , string name,string objclass)
 : this()
 {
     this.IPlugInContainer = container;
     objname = name;
     RenametextBox.Text = name;
     obj_type = objclass;
 }
Пример #23
0
 public ADRenameDlg(IPlugInContainer container, StandardPage parentPage, string name, string objclass)
     : this()
 {
     this.IPlugInContainer = container;
     objname            = name;
     RenametextBox.Text = name;
     obj_type           = objclass;
 }
Пример #24
0
 public GenericPropertiesDlg(IPlugInContainer container, StandardPage parentPage, bool IsGeneralPageReq)
     : base(container, parentPage)
 {
     InitializeComponent();
     this.Text = "{0} Properties";
     this.bIsGeneralpageReq = IsGeneralPageReq;
     InitializePages();
 }
        public NewSharePermissionsPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin    = plugin;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
        public NewShareFolderSetUpPage(WizardDialog wizardDialog, IPlugIn plugin, IPlugInContainer container)
        {
            InitializeComponent();

            this.plugin = plugin;
            this.container = container;
            this.parentDlg = wizardDialog as NewShareWizardDlg;
        }
Пример #27
0
 public ADOUPropertiesDlg(IPlugInContainer container, StandardPage parentPage, ADUCPlugin plugin)
     : base(container, parentPage)
 {
     InitializeComponent();
     Text       = "{0} Properties";
     _plugin    = plugin;
     _container = container;
     InitializePages();
 }
 public DomainPropertiesDlg(IPlugInContainer container, StandardPage parentPage, ADUCPlugin plugin)
     : base(container, parentPage)
 {
     InitializeComponent();
     this.Text = "{0} Properties";
     _plugin = plugin;
     _container = container;
     InitializePages();
 }
        public ServiceRecoveryPage(IPlugInContainer container, ServiceManagerPlugin plugin, string serviceName)
            : base()
        {
            InitializeComponent();

            this.pageID = "ServiceRecoveryPage";
            this.serviceName = serviceName;
            this._plugin = plugin;
        }
Пример #30
0
 /// <summary>
 /// The preferred constructor
 /// </summary>
 /// <param name="container">Back reference to the PlugInContainer</param>
 /// <param name="el">Reference to the log being viewed</param>
 public LogPropertiesPage(IPlugInContainer container, EventLogRecord el, IPlugIn plgin, StandardPage parentPage)
     : this()
 {
     this.pageID      = "LogProperities";
     this._container  = container;
     this.el          = el;
     this._plugin     = plgin as EventlogPlugin;
     this._parentPage = parentPage;
 }
Пример #31
0
 /// <summary>
 /// The preferred constructor
 /// </summary>
 /// <param name="container">Back reference to the PlugInContainer</param>
 /// <param name="el">Reference to the log being viewed</param>
 public LogPropertiesPage(IPlugInContainer container, EventLogRecord el, IPlugIn plgin, StandardPage parentPage)
     : this()
 {
     this.pageID = "LogProperities";
     this._container = container;
     this.el = el;
     this._plugin = plgin as EventlogPlugin;
     this._parentPage = parentPage;
 }
Пример #32
0
        public ServiceRecoveryPage(IPlugInContainer container, ServiceManagerPlugin plugin, string serviceName)
            : base()
        {
            InitializeComponent();

            this.pageID      = "ServiceRecoveryPage";
            this.serviceName = serviceName;
            this._plugin     = plugin;
        }
Пример #33
0
        public UserPropertiesDlg(IPlugInContainer container, StandardPage parentPage)
            : base(container, parentPage)
        {
            Groups = new List <ListViewItem>();

            InitializeComponent();

            InitializePages();
        }
 public MultiItemPropertiesDlg(IPlugInContainer container, StandardPage parentPage, ADUCPlugin plugin,
                               List<object> ObjectCounts)
     : base(container, parentPage)
 {
     InitializeComponent();
     this.ObjectCounts = ObjectCounts;
     _plugin = plugin;
     _container = container;
     InitializePages();
 }
Пример #35
0
        public DependenciesPage(IPlugInContainer container,
                                string serviceName)
        {
            InitializeComponent();

            this.pageID = "DependenciesPage";
            SetPageTitle("DependenciesPage");

            this.serviceName = serviceName;
        }
        public override void SetPlugInInfo(IPlugInContainer container, IPlugIn pi, LACTreeNode treeNode, LWTreeView lmctreeview, CServerControl sc)
        {
            plugin = pi as ServiceManagerPlugin;

            base.SetPlugInInfo(container, pi, treeNode, lmctreeview, sc);
            bEnableActionMenu = false;
            ShowHeaderPane(true);

            Refresh();
        }
Пример #37
0
 public ADGroupPropertiesDlg(IPlugInContainer container, StandardPage parentPage, ADUCPlugin plugin, ADUCDirectoryNode dirnode)
     : base(container, parentPage)
 {
     this.Text     = "{0} Properties";
     this._dirnode = dirnode;
     InitializeComponent();
     _plugin    = plugin;
     _container = container;
     InitializePages();
 }
        public GeneralPropertyPage(ServicePropertiesDlg parentDlg, IPlugInContainer container, ServiceManagerPlugin plugin, string serviceName)
        {
            InitializeComponent();

            this.pageID = "GeneralPropertyPage";
            SetPageTitle("General");
            this.serviceName = serviceName;
            this._plugin = plugin;
            this._parentDlg = parentDlg;
        }
Пример #39
0
 public MultiItemPropertiesDlg(IPlugInContainer container, StandardPage parentPage, ADUCPlugin plugin,
                               List <object> ObjectCounts)
     : base(container, parentPage)
 {
     InitializeComponent();
     this.ObjectCounts = ObjectCounts;
     _plugin           = plugin;
     _container        = container;
     InitializePages();
 }
Пример #40
0
        public DependenciesPage(IPlugInContainer container,
                               string serviceName)
        {
            InitializeComponent();

            this.pageID = "DependenciesPage";
            SetPageTitle("DependenciesPage");

            this.serviceName = serviceName;
        }
Пример #41
0
 public UserPropertiesDlg(IPlugInContainer container, StandardPage parentPage)
 : base(container, parentPage)
 {
     Groups = new List<ListViewItem>();
     
     InitializeComponent();
     
     InitializePages();
     
 }
Пример #42
0
        public GeneralPropertyPage(ServicePropertiesDlg parentDlg, IPlugInContainer container, ServiceManagerPlugin plugin, string serviceName)
        {
            InitializeComponent();

            this.pageID = "GeneralPropertyPage";
            SetPageTitle("General");
            this.serviceName = serviceName;
            this._plugin     = plugin;
            this._parentDlg  = parentDlg;
        }
 public ADGroupPropertiesDlg(IPlugInContainer container, StandardPage parentPage, ADUCPlugin plugin,ADUCDirectoryNode dirnode)
 : base(container, parentPage)
 {
     this.Text = "{0} Properties";
     this._dirnode = dirnode;
     InitializeComponent();
     _plugin = plugin;
     _container = container;
     InitializePages();
 }
Пример #44
0
        public SharePropertiesDlg(IPlugInContainer container, StandardPage parentPage, FileShareManagerIPlugIn plugin, Hostinfo hn)
            : base(container, parentPage)
        {
            InitializeComponent();

            this.Text  = "{0} Properties";
            this._hn   = hn;
            _plugin    = plugin;
            _container = container;
            InitializePages();
        }
        public SharePropertiesDlg(IPlugInContainer container, StandardPage parentPage, FileShareManagerIPlugIn plugin, Hostinfo hn)
            : base(container, parentPage)
        {
            InitializeComponent();

            this.Text = "{0} Properties";
            this._hn = hn;
            _plugin = plugin;
            _container = container;
            InitializePages();
        }
Пример #46
0
        public virtual void SetPlugInInfo(IPlugInContainer container, IPlugIn pi)
        {
            this.container = container;
            this.pi        = pi;

            // disable if necessary
            if (ShowInDisabledState)
            {
                DisableForWindows();
            }
        }
Пример #47
0
        public override void SetPlugInInfo(IPlugInContainer container, IPlugIn pi, LACTreeNode treeNode, LWTreeView lmctreeview, CServerControl sc)
        {
            Hostinfo hn = ctx as Hostinfo;

            base.SetPlugInInfo(container, pi, treeNode, lmctreeview, sc);
            bEnableActionMenu = false;
            plugin            = pi as FileShareManagerIPlugIn;
            hn = plugin.HostInfo;

            Refresh();
        }
Пример #48
0
    public override void SetPlugInInfo(IPlugInContainer container, IPlugIn pi, LACTreeNode treeNode, LWTreeView lmctreeview, CServerControl sc)
    {
        Hostinfo hn = ctx as Hostinfo;

        base.SetPlugInInfo(container, pi, treeNode, lmctreeview, sc);
        bEnableActionMenu = false;
        plugin = pi as FileShareManagerIPlugIn;
        hn = plugin.HostInfo;

        Refresh();
    }
Пример #49
0
        public ServicePropertiesDlg(IPlugInContainer container, StandardPage parentPage,
                                    ServiceManagerPlugin plugin, string serviceName)
            : base(container, parentPage)
        {
            InitializeComponent();

            this.Text  = serviceName;
            _container = container;
            _plugin    = plugin;

            InitializePages(serviceName);
        }
        public ServicePropertiesDlg(IPlugInContainer container, StandardPage parentPage,
                                    ServiceManagerPlugin plugin, string serviceName)
                                    : base(container, parentPage)
        {
            InitializeComponent();

            this.Text = serviceName;
            _container = container;
            _plugin = plugin;

            InitializePages(serviceName);
        }
Пример #51
0
        public ADGroupAddDlg(IPlugInContainer container, StandardPage parentPage, ADUCDirectoryNode dirnode)
            : this()
        {
            int ret = -1;
            this.IPlugInContainer = container;
            this._dirnode = dirnode;
            if (dirnode != null)
            {
                List<LdapEntry> ldapEntries = null;

                ret = dirnode.LdapContext.ListChildEntriesSynchronous
                (dirnode.DistinguishedName,
                LdapAPI.LDAPSCOPE.BASE,
                "(objectClass=*)",
                null,
                false,
                out ldapEntries);

                if (ldapEntries == null || ldapEntries.Count == 0)
                {
                    return;
                }

                LdapEntry ldapNextEntry = ldapEntries[0];
                //As of now we are not getting canonicalName attribute in the list because of paging issue
                //LdapValue[] attr = ldapNextEntry.GetAttributeValues("canonicalName", dirnode.LdapContext);
                //if (attr != null && attr.Length > 0)
                //    this.lblCreatein.Text = "Create in: " + attr[0].stringData;

                //As of now we are taking "DistinguishedName" and spliting and displaying it.
                string[] sData = dirnode.DistinguishedName.Split(',');
                string sOutput = "";
                for (int i = sData.Length - 1; i >= 0; i--)
                {
                    if (sData[i].ToString().Trim().StartsWith("DC", StringComparison.InvariantCultureIgnoreCase))
                    {
                        sOutput = sData[i].ToString().Trim().Substring(3) + "." + sOutput;
                    }
                    else if (sData[i].ToString().Trim().StartsWith("OU", StringComparison.InvariantCultureIgnoreCase) || sData[i].ToString().Trim().StartsWith("CN", StringComparison.InvariantCultureIgnoreCase))
                    {
                        sOutput += "/" + sData[i].ToString().Trim().Substring(3);
                    }
                }
                if (sOutput.EndsWith("."))
                {
                    sOutput += "/";
                }
                sOutput = sOutput.Replace("./", "/");

                this.txtcreatein.Text = "Create in: " + sOutput;
            }
        }
 public EventPropertiesDlg(IPlugInContainer container, StandardPage parentPage, EventlogPlugin plugin,ListView lvEvents)
 : base(container, parentPage)
 {
     InitializeComponent();
     btnApply.Visible = false;
     btnCancel.Visible = false;
     btnOK.Location = btnApply.Location;
     this.Text = "Event Properties";
     _plugin = plugin;
     _container = container;
     _eventsListView = lvEvents;
     InitializePages();
 }
Пример #53
0
    /// <summary>
    /// Overriden constructor gets all class schema attributes from AD Schema template
    /// </summary>
    /// <param name="container"></param>
    /// <param name="parentPage"></param>
    /// <param name="text"></param>
    /// <param name="schemaCache"></param>
    public NewShareWizardDlg(IPlugInContainer container, StandardPage parentPage, IPlugIn plugin)
        : this()
    {
        this.plugin = plugin as FileShareManagerIPlugIn;
        this.shareInfo = new ShareInfo();
        shareInfo.hostName = this.plugin.HostInfo.hostName;
        sharedFolderList = new List<ShareInfo>();

        this.AddPage(new NewShareWelcomePage(this, plugin, container));
        this.AddPage(new NewShareFolderSetUpPage(this, plugin, container));
        this.AddPage(new NewSharePermissionsPage(this, plugin, container));
        this.AddPage(new NewShareFinishPage(this, plugin, container));
    }
Пример #54
0
        /// <summary>
        /// Overriden constructor gets all class schema attributes from AD Schema template
        /// </summary>
        /// <param name="container"></param>
        /// <param name="parentPage"></param>
        /// <param name="text"></param>
        /// <param name="schemaCache"></param>
        public NewShareWizardDlg(IPlugInContainer container, StandardPage parentPage, IPlugIn plugin)
            : this()
        {
            this.plugin        = plugin as FileShareManagerIPlugIn;
            this.shareInfo     = new ShareInfo();
            shareInfo.hostName = this.plugin.HostInfo.hostName;
            sharedFolderList   = new List <ShareInfo>();

            this.AddPage(new NewShareWelcomePage(this, plugin, container));
            this.AddPage(new NewShareFolderSetUpPage(this, plugin, container));
            this.AddPage(new NewSharePermissionsPage(this, plugin, container));
            this.AddPage(new NewShareFinishPage(this, plugin, container));
        }
Пример #55
0
 public EventPropertiesDlg(IPlugInContainer container, StandardPage parentPage, EventlogPlugin plugin, ListView lvEvents)
     : base(container, parentPage)
 {
     InitializeComponent();
     btnApply.Visible  = false;
     btnCancel.Visible = false;
     btnOK.Location    = btnApply.Location;
     this.Text         = "Event Properties";
     _plugin           = plugin;
     _container        = container;
     _eventsListView   = lvEvents;
     InitializePages();
 }
Пример #56
0
        public void SetData(DirectoryContext dirContext, IPlugIn plugin, IPlugInContainer container)
        {
            this.dirContext = dirContext;
            this.plugin = plugin;
            this.container = container;

            lvDomainOUs.Items.Clear();
            cbDomainOUs.Items.Add(dirContext.DomainName);
            cbDomainOUs.SelectedIndex = 0;
            ListOUChildren(dirContext.RootDN);
            sParentDN = dirContext.RootDN;
            SetNavState(false);
            RefreshlvItems();
        }
Пример #57
0
        public override void SetPlugInInfo(
            IPlugInContainer container,
            IPlugIn pi,
            LACTreeNode treeNode,
            LWTreeView lmctreeview,
            CServerControl sc
            )
        {
            base.SetPlugInInfo(container, pi, treeNode, lmctreeview, sc);
            bEnableActionMenu = false;
            plugin            = pi as FileBrowserIPlugIn;

            Refresh();
        }
Пример #58
0
        public override void SetPlugInInfo(
            IPlugInContainer container,
            IPlugIn pi,
            LACTreeNode treeNode,
            LWTreeView lmctreeview,
            CServerControl sc
            )
        {
            base.SetPlugInInfo(container, pi, treeNode, lmctreeview, sc);
            bEnableActionMenu = false;
            plugin = pi as FileBrowserIPlugIn;

            Refresh();
        }
Пример #59
0
 public NewUserDlg(IPlugInContainer container, StandardPage parentPage)
 : base(container, parentPage)
 {
     InitializeComponent();
     
     ButtonCancel.Text = "Cancel";
     ButtonOK.Text = "Create";
     SetAllValueChangedHandlers(this);
     tbFullName.MaxLength = 256;
     
     localParent = (LUGPage) parentPage;
     
     this.tbUserName.Select();
     
 }
Пример #60
0
    /// <summary>
    /// Sets the Plugin information to base
    /// List the all child nodes, then refreshes the listview with the all child treenodes.
    /// </summary>
    /// <param name="ccontainer"></param>
    /// <param name="pi"></param>
    /// <param name="treeNode"></param>
    /// <param name="lmctreeview"></param>
    public override void SetPlugInInfo(IPlugInContainer ccontainer, IPlugIn pi, LACTreeNode treeNode, LWTreeView lmctreeview, CServerControl sc)
    {
        if (treeNode.sc != null)
        {
            smallimagelist = treeNode.sc.manage.manageImageList as ImageList;
            Lagreimagelist = treeNode.sc.manage.manageLargeImageList as ImageList;
        }

        base.SetPlugInInfo(ccontainer, pi, treeNode, lmctreeview, sc);

        if (treeNode != null)
        {
            Refresh();
        }
    }