示例#1
0
        //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);
        }
示例#2
0
        public static async void TestFiles()
        {
            FileObjects dbo = new FileObjects();

            Console.WriteLine("Starting search...");

            /*
             * //Поиск файлов, в которых содержится определение объекта
             * Task searchTask = dbo.SearchAsync(@"f:\Temp\Files",
             *  //"[sys].[sp_add_agent_parameter]"
             *  "[sys].[sp_add_agent_profile]"
             *  );
             * await searchTask;
             *
             * Console.WriteLine("After search");
             *
             * List<string> files = dbo.Files;
             * if (files != null)
             * {
             *  foreach (String s in files)
             *      Console.WriteLine(s);
             * }
             */
        }