Esempio n. 1
0
 private void reloadToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LoadFiles();
     Lines.Clear();
     CompareFiles.Exec(Lines, File1, File2);
     DisplayCompareFiles();
 }
Esempio n. 2
0
        private void wMain_Load(object sender, EventArgs e)
        {
            DataModul.GetInstance().InitDataModul("FileSync");
            DataModul.GetInstance().LoadConfig();

            //ToDo: Basics.ReadFormPos(DataModul.GetInstance().IniFileName, this);

            lineNumbersToolStripMenuItem.SelectedIndex = DataModul.GetInstance().LineNumbers;
            blackWhiteToolStripMenuItem.Checked        = DataModul.GetInstance().BlackWhite;
            reloadFilesToolStripMenuItem.Checked       = DataModul.GetInstance().ReloadFiles;

            //ToDo: Options

            //
            // - - -  - - -

            listBox.Items[0] = "";
            listBox.Items[1] = "";

            wMain_Resize(sender, e);

            //
            // - - -  - - -

            if (System.IO.File.Exists(FileName1) &&
                System.IO.File.Exists(FileName2))
            {
            }
            else
            {
                FileName1 = DataModul.GetInstance().FileName1;
                FileName2 = DataModul.GetInstance().FileName2;

                //FileName1 = @"D:\Software\V9.00\Projets\Kiosk\Sources.CF1\Kiosk.ini";
                //FileName2 = @"E:\Software\___\Projets\Kiosk\Sources.CF1\Kiosk.ini";

                //FileName1 = @"L:\CESetup\BuildTimeStamp.cs";
                //FileName2 = @"L:\CESetup.CE\BuildTimeStamp.cs";
            };

            if (reloadFilesToolStripMenuItem.Checked)
            {
                LoadFiles();
            }
            else
            {
            };

            //
            // - - -  - - -

            CompareFiles.Exec(Lines, File1, File2);

            //
            // - - -  - - -

            DisplayCompareFiles();

            // PatchListView( listView );
        }