public override void AwakeFromNib () { base.AwakeFromNib (); //load resources secretKeysIcon = NSImage.ImageNamed ("SecretKeys16.png"); privateEntityIcon = NSImage.ImageNamed ("Privateentity_16x16.png"); storeIcon = NSImage.ImageNamed ("certificate-store.png"); storesIcon = NSImage.ImageNamed ("vecsStore_16x16.png"); trustedCertsIcon = NSImage.ImageNamed ("TrustedCerts.png"); genericIcon = NSImage.ImageNamed ("object.png"); SetToolBarState (false); (NSApplication.SharedApplication.Delegate as AppDelegate).OpenConnectionMenuItem.Hidden = true; //Load SplitView splitViewController = new SplitViewMMCController (); splitViewController.MainOutlineView = new OutlineView (); splitViewController.MainTableView = new VMCertStoreTableView (); this.CustomView.AddSubview (splitViewController.View); //Notifications for OutlineView and Tableview to reload NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"ReloadOutlineView", ReloadOutlineView); NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"ReloadTableView", ReloadTableView); NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"ReloadServerData", RefreshDataFromServer); }
public override void AwakeFromNib () { base.AwakeFromNib (); //load resources genericIcon = NSImage.ImageNamed ("object.png"); caIcon = NSImage.ImageNamed ("certificate-authority.png"); expiredCertIcon = NSImage.ImageNamed ("Certificate_silver.png"); revokedCertIcon = NSImage.ImageNamed ("certificate-revoke.png"); ActiveCertIcon = NSImage.ImageNamed ("Certificate_gold.png"); CertIcon = NSImage.ImageNamed ("certificate.png"); KeyPairIcon = NSImage.ImageNamed ("KeyPair.png"); Window.SetContentBorderThickness (24, NSRectEdge.MinYEdge); SetToolBarState (false); //Load SplitView splitViewController = new SplitViewMMCController (); splitViewController.MainOutlineView = new OutlineView (); splitViewController.MainTableView = new VMCATableView (); this.ContainerView.AddSubview (splitViewController.View); //Notifications for OutlineView and Tableview to reload NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"ReloadOutlineView", ReloadOutlineView); NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"ReloadTableView", ReloadTableView); NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"ReloadAll", ReloadAll); }
public override void AwakeFromNib () { base.AwakeFromNib (); try { Window.SetContentBorderThickness (24, NSRectEdge.MinYEdge); VMDirSnapInEnvironment.Instance.MainWindow = this.Window; //Load SplitView splitViewController = new SplitViewMMCController (); splitViewController.MainOutlineView = new OutlineView (); splitViewController.MainTableView = new VMDirTableView (); this.ContainerView.AddSubview (splitViewController.View); SetToolBarState (false); (NSApplication.SharedApplication.Delegate as AppDelegate).OpenConnectionMenuITem.Hidden = true; //Notifications for OutlineView and Tableview to reload ReloadOutlineViewNotificationObject = NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"ReloadOutlineView", ReloadOutlineView); ReloadTableViewNotificationObject = NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"ReloadTableView", ReloadTableView); CloseNotificationObject = NSNotificationCenter.DefaultCenter.AddObserver ((NSString)"CloseApplication", OnCloseConnectionNotificationReceived); } catch (Exception e) { System.Diagnostics.Debug.WriteLine ("Error : " + e.Message); UIErrorHelper.ShowAlert ("", e.Message); } }