public void Initialise (string server)
 {
     this.Server = server;
     //check if server is present in persistence and load the DTO
     VMCAServerDTO dto = VMCAAppEnvironment.Instance.LocalData.GetServerDTO (Server);
     if (dto == null)
         dto = VMCAServerDTO.CreateInstance ();
     Servernode = new VMCAServerNode (dto);
    
 }
示例#2
0
        async void AddServer()
        {
            try
            {
                var ServerDTO = VMCAServerDTO.CreateInstance();
                ServerDTO.Server = "";
                var node = new VMCAServerNode(ServerDTO);
                await node.DoLogin();

                if (node.ServerDTO.IsLoggedIn)
                {
                    VMCASnapInEnvironment.Instance.LocalData.AddServer(node.ServerDTO);
                    this.Children.Add(node);
                }
            }
            catch (Exception e)
            {
                MMCDlgHelper.ShowException(e);
            }
        }
示例#3
0
        void AddServerNode(VMCAServerDTO dto)
        {
            var node = new VMCAServerNode(dto);

            this.Children.Add(node);
        }
 public ServerInfoPopOverController (VMCAServerNode node, NSPopover popover) : base ("ServerInfoPopOver", NSBundle.MainBundle)
 {
     this.parentPopover = popover;
     this.serverNode = node;
 }