public static async void TestGetObjects() { DbObjects dbo = new DbObjects(""); Console.WriteLine("Starting search..."); Task searchTask = dbo.SearchAsync("1"); await searchTask; Console.WriteLine("After search"); }
//Stages stage = Stages.CHOOSE_PATH; // private enum Stages { CHOOSE_PATH, CHOOSE_OBJECT, SHOW_DIF }; public fmMain() { InitializeComponent(); //cbObjects.Text = "Test"; cbFolder.Items.Add(@"f:\Projects\dotNet\CheckDif\CheckDifDb\"); //cbFolder.Items.Add(@"f:\Temp\Files"); cbConnStr.Items.Add(Settings.ConnStr); cbConnStr.SelectedIndex = 0; tbWinMergePath.Text = Settings.WinMergePath; //Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + @"\WinMerge\WinMergeU.exe"; dbo = new DbObjects(Settings.ConnStr); fo = new FileObjects(); //Settings.ConnStr = CONN_STR_LOCAL; //SetStage(Stages.CHOOSE_PATH); }