private void CloseConnection ()
        {
            try {
                bool isClosed = true; //TODO - replace with close connection API calls
                if (isClosed) {
                    Servernode.IsLoggedIn = false;
                    outlineViewDataSource.RootNode.Children.Clear ();
                    outlineViewDataSource = null;
                    splitViewController.MainOutlineView.DataSource = null;
                    splitViewController.MainTableView.DataSource = null;
                    this.LoggedInLabel.StringValue = "";
                    splitViewController.MainOutlineView.OutlineTableColumn.HeaderCell.Title = "";
                    RemoveTableColumns ();

                    NSNotificationCenter.DefaultCenter.PostNotificationName ("ReloadOutlineView", this);
                    NSNotificationCenter.DefaultCenter.PostNotificationName ("ReloadTableView", this);
                    SetToolBarState (false);
                }
            } catch (Exception ex) {
                UIErrorHelper.ShowAlert ("", ex.Message);
            }
        }
        public void InitialiseViews ()
        {
            try {
                Servernode.IsLoggedIn = true;
                AppDelegate appDelegate = NSApplication.SharedApplication.Delegate as AppDelegate;
                appDelegate.OpenConnectionMenuItem.Hidden = true;

                //assign datasources and prepare TableView and OutlineView
                outlineViewDataSource = new OutlineViewDataSource (new VecsStoresNode (Servernode));
                splitViewController.MainOutlineView.DataSource = outlineViewDataSource;
                splitViewController.MainOutlineView.Activated += OnOutlineViewActivated;
                splitViewController.MainOutlineView.SelectionDidChange += OnOutlineViewActivated;
                splitViewController.MainOutlineView.OutlineTableColumn.DataCell = new NSBrowserCell ();
                this.LoggedInLabel.StringValue = "Logged in : " + Servernode.ServerDTO.UserName;
                splitViewController.MainOutlineView.OutlineTableColumn.HeaderCell.Title = "Connected to " + Servernode.ServerDTO.Server;

                SetToolBarState (true);

                VMCertStoreSnapInEnvironment.Instance.LocalData.AddServer (Servernode.ServerDTO.Server);

                //Assign delegates
                splitViewController.MainOutlineView.Delegate = new OutlineDelegate (this);
                splitViewController.MainTableView.Delegate = new TableDelegate (this);
            } catch (Exception e) {
                UIErrorHelper.ShowAlert (e.Message, "Alert");
            }
        }