/// <summary>
        /// Gets the type of the image on node.
        /// </summary>
        /// <returns>The image on node type.</returns>
        /// <param name="datasource">Datasource.</param>
        /// <param name="row">Row.</param>
        /// <param name="ob">Ob.</param>
        private NSImage GetImageOnNodeType(NodeDataSource datasource, nint row, VMPSCHighAvailabilityMainWindowController ob)
        {
            var collection = datasource.Entries;
            var isInfra    = false;

            if (collection != null)
            {
                var item = collection [(int)row];
                isInfra = (item.NodeType == VMPSCHighAvailability.Common.NodeType.Infrastructure);
            }
            return(isInfra
                                ? _ob.CachedImages [(int)ImageIndex.Infrastructure]
                                        : _ob.CachedImages [(int)ImageIndex.Management]);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="VMPSCHighAvailability.UI.MonitorTableViewDelegate"/> class.
 /// </summary>
 /// <param name="controller">Controller.</param>
 public MainTableViewDelegate(MainTableController controller, VMPSCHighAvailabilityMainWindowController ob)
 {
     _controller = controller;
     _ob         = ob;
 }
Beispiel #3
0
 public OutlineDelegate(VMPSCHighAvailabilityMainWindowController ob)
 {
     this.ob = ob;
 }