/// ------------------------------------------------------------------------------------ /// <summary> /// Displays a dialog that allows the user to choose an FW language project. /// </summary> /// ------------------------------------------------------------------------------------ public bool ShowOpenProject(Form owner, ref Rectangle dialogBounds, ref int dialogSplitterPos, out string name, out string server) { Common.COMInterfaces.Icu.InitIcuDataDir(); RegistryHelper.ProductName = "FieldWorks"; // inorder to find correct Registry keys using (var dlg = new ChooseLangProjectDialog(dialogBounds, dialogSplitterPos)) { if (dlg.ShowDialog(owner) == DialogResult.OK) { name = dlg.Project; server = dlg.Server; dialogBounds = dlg.Bounds; dialogSplitterPos = dlg.SplitterPosition; return(true); } } name = null; server = null; return(false); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Displays a dialog that allows the user to choose an FW language project. /// </summary> /// ------------------------------------------------------------------------------------ public bool ShowOpenProject(Form owner, ref Rectangle dialogBounds, ref int dialogSplitterPos, out string name, out string server) { FwRegistryHelper.Initialize(); FwUtils.InitializeIcu(); using (var dlg = new ChooseLangProjectDialog(dialogBounds, dialogSplitterPos)) { if (dlg.ShowDialog(owner) == DialogResult.OK) { name = dlg.Project; server = null; dialogBounds = dlg.Bounds; dialogSplitterPos = dlg.SplitterPosition; return(true); } } name = null; server = null; return(false); }