示例#1
0
		public FileSelectionDialog (string title, FileSelectionEventHandler fileSelectedHandler) 
		{
			if(fileSelectedHandler == null)
				throw new Exception ("FileSelectionDialog fileSelectedHandler is null");

			caption = title;
			fh = fileSelectedHandler;

			Show ();
		}
示例#2
0
		public FileSelectionDialog (string title, FileSelectionEventHandler fileSelectedHandler) 
		{
			window = new FileSelection (title);
			window.OkButton.Clicked += new EventHandler (OnFileSelectionOk);
			window.CancelButton.Clicked += new EventHandler (OnFileSelectionCancel);
			if(fileSelectedHandler == null)
				throw new Exception ("FileSelectionDialog fileSelectedHandler is null");
			fh = fileSelectedHandler;

			window.ShowAll ();
		}
示例#3
0
        public FileSelectionDialog(string title, FileSelectionEventHandler fileSelectedHandler)
        {
            if (fileSelectedHandler == null)
            {
                throw new Exception("FileSelectionDialog fileSelectedHandler is null");
            }

            caption = title;
            fh      = fileSelectedHandler;

            Show();
        }
示例#4
0
        public FileSelectionDialog(string title, FileSelectionEventHandler fileSelectedHandler)
        {
            window = new FileSelection(title);
            window.OkButton.Clicked     += new EventHandler(OnFileSelectionOk);
            window.CancelButton.Clicked += new EventHandler(OnFileSelectionCancel);
            if (fileSelectedHandler == null)
            {
                throw new Exception("FileSelectionDialog fileSelectedHandler is null");
            }
            fh = fileSelectedHandler;

            window.ShowAll();
        }