Пример #1
0
        protected virtual void OnNewService(object sender, EventArgs args)
        {
            var srvNode = new ServiceNode();

            var service = serviceFolder.CreateService();

            service.Name    = "NewService" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:sss");
            srvNode.Service = service;
            this.serviceFolder.Services.AddChild(service);
            this.Children.Add(srvNode);

            this.TreeNode.Expand();
        }
Пример #2
0
        protected virtual void OnNewService(object sender, EventArgs args)
        {
            var srvNode = new ServiceNode();

            var service = serviceFolder.CreateService();
            service.Name = "NewService" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:sss");
            srvNode.Service = service;
            this.serviceFolder.Services.AddChild(service);
            this.Children.Add(srvNode);

            this.TreeNode.Expand();
        }