Пример #1
0
		private void OnFolderBrowserControlClicked(object sender, EventArgs e)
		{
#if __MonoCS__
			MessageBox.Show("FolderBrowserControl not supported on Linux");
#else
			using (var form = new Form())
			{
				var browser = new Palaso.UI.WindowsForms.FolderBrowserControl.FolderBrowserControl();
				browser.Location = new Point(0, 0);
				browser.Width = form.ClientSize.Width;
				browser.Height = form.ClientSize.Height;
				browser.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left |
								AnchorStyles.Right;
				browser.ShowOnlyMappedDrives = false;
				browser.ShowAddressbar = true;
				form.Controls.Add(browser);
				form.ShowDialog();
			}
#endif
		}
Пример #2
0
        private void OnFolderBrowserControlClicked(object sender, EventArgs e)
        {
#if __MonoCS__
            MessageBox.Show("FolderBrowserControl not supported on Linux");
#else
            using (var form = new Form())
            {
                var browser = new Palaso.UI.WindowsForms.FolderBrowserControl.FolderBrowserControl();
                browser.Location = new Point(0, 0);
                browser.Width    = form.ClientSize.Width;
                browser.Height   = form.ClientSize.Height;
                browser.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left |
                                   AnchorStyles.Right;
                browser.ShowOnlyMappedDrives = false;
                browser.ShowAddressbar       = true;
                form.Controls.Add(browser);
                form.ShowDialog();
            }
#endif
        }