Exemplo n.º 1
0
        protected override void OnAdd()
        {
            NSOpenPanel panel = NSOpenPanel.OpenPanel;

            panel.CanChooseFiles          = false;
            panel.CanChooseDirectories    = true;
            panel.AllowsMultipleSelection = false;
            panel.BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo(new NSString(""), new NSString(iOption.Description), iView.Window, ChangeDidEnd, IntPtr.Zero);
        }
Exemplo n.º 2
0
        protected override void ActionEventChange(Id aSender)
        {
            NSOpenPanel panel = NSOpenPanel.OpenPanel;

            panel.CanChooseFiles          = false;
            panel.CanChooseDirectories    = true;
            panel.AllowsMultipleSelection = false;
            panel.BeginSheetForDirectoryFileModalForWindowModalDelegateDidEndSelectorContextInfo(new NSString(iOption.Value), new NSString("Untitled"), iView.Window, ChangeDidEnd, IntPtr.Zero);
        }