private void Init() { // registry Registry = new RegistryHandler(); Registry.ReadConnections(); RefreshConnections(); // tooltips _linkMapperSettings.SetToolTip("Set mapper", "Set the mapper assembly settings."); _iconDeleteConnection.SetToolTip("Remove connection", "Remove connection from the connection list."); _linkRepository.SetToolTip("Set repository", "Set the QueryTalk repository.", 10); _linkOpenRepository.SetToolTip("Open repository", "Open the QueryTalk repository folder."); _panelMapperOpenRepository.SetToolTip("Open repository", "Open the QueryTalk repository folder."); _linkQueryTalkBase.SetToolTip("Create QueryTalkBase", "Create the QueryTalkBase database.\r\nIt is strongly recommended to create it as it is used in all code examples.", 20); //_linkHelp.SetToolTip("Help", "Read how to use this application"); //_linkAbout.SetToolTip("About", "About this application"); //_ctrConnStringNotification.SetToolTip("ConnectionString field", "You can also enter the connection string in the server field", 10); //_linkPull.SetToolTip("Pull", "Pull the library and other files from the server\r\n" + // "and store them in the repository.", 10); _comboDatabases.SetToolTip("Show databases", "Get the list of all databases from the SQL server."); _linkCodeExamples.SetToolTip("Code examples", "Open the demo project with code examples in the Visual Studio."); //_imageProblemsVideo.Size = new Size(151, 108); //_imageVideo.SetToolTip("Have problems?", "Learn how to use this page in 1 minute."); // watch _watch = new System.Diagnostics.Stopwatch(); _serverDatabases = new Dictionary <string, string[]>(); _comboConnection.DropDownHeight = 300; _comboDatabases.DropDownHeight = 255; _SetGoDefault(); }
internal Step2_PullUI(MainForm mainForm) { _mainForm = mainForm; _registry = new RegistryHandler(); InitializeComponent(); }
private void ReadRegistry() { Registry = new RegistryHandler(); _repositoryPath = Registry.GetRepository(); _connBuilder = Registry.GetDefaultConnection(); }