Exemplo n.º 1
0
        public void GenerateTable(string[] FileContent, DataGridView dgContent, ConquerDatFile datCrypto, bool RAWMode = false)
        {
            DataTable     dt            = null;
            DatFileConfig datFileConfig = ConquerToolsHelper.CTools.CurrentConfig.DatFilesConfig.Where(x => x.Key == datCrypto.CurrentDatFileType).FirstOrDefault().Value;

            if (RAWMode)
            {
                dt = RAWTableFromStrings(FileContent);
            }
            else
            {
                dt = TableFromStrings(FileContent, datFileConfig);
            }
            dgContent.DataSource = dt;
        }
Exemplo n.º 2
0
        public void CustomDecrypt(string filename, string filenameOutput, ConquerDatFile.DatFileType datFileType)
        {
            ConquerDatFile dc = new ConquerDatFile(filename, datFileType);

            SelectedDatFile = dc;
            DatFileConfig datFileConfig = ConquerToolsHelper.CTools.CurrentConfig.DatFilesConfig.Where(x => x.Key == dc.CurrentDatFileType).FirstOrDefault().Value;

            if (datFileConfig != null)
            {
                if (Path.GetExtension(filename) == ".txt")
                {
                    dc.Open(true);
                }
                else
                {
                    dc.Open();
                }
            }
        }
Exemplo n.º 3
0
 public ConquerTools(ConquerDatFile selectedDatFile)
 {
     SelectedDatFile = selectedDatFile;
     Init();
 }