public FindArrayItemsDesigner() { InitializeComponent(); //Create Default Storage Folders (if needed) DesignUtils.CreateStorageTextToolboxFolders(); }
public ReadTextFileEncondigDesigner() { InitializeComponent(); //Create Default Storage Folders (if needed) DesignUtils.CreateStorageTextToolboxFolders(); }
public RemoveEmptyRowsDesigner() { InitializeComponent(); //Create Default Storage Folders (if needed) DesignUtils.CreateStorageTextToolboxFolders(); }
public TextApplicationScopeDesigner() { InitializeComponent(); string FilePath; //Create Default Storage Folders (if needed) DesignUtils.CreateStorageTextToolboxFolders(); #region hidden ////CurrentFileUpdated //string CurrentFile = ReturnCurrentFile(); ////Case there is a file //if (CurrentFile != null) //{ // //CurrentFile // FilePath = Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFile.txt"; // //Case file does not exist, create it! // if (File.Exists(FilePath) == false) // { // System.IO.File.WriteAllText(FilePath, "0"); // } // else // { // //Read CurrentFile Text File // string txtCurrentFile = System.IO.File.ReadAllText(FilePath); // //Case Both Matches // if (String.Equals(txtCurrentFile, CurrentFile)==true) // { // //Write to Text File: Updated Neeeded // System.IO.File.WriteAllText(Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFileUpdated.txt", "-1"); // //Set Warning Button Hidden // btnWarning.Visibility = Visibility.Hidden; // } // else // { // //Check if File Exists // if (File.Exists(CurrentFile) == true) // { // //Write to Text File: Updated Neeeded // System.IO.File.WriteAllText(FilePath, CurrentFile); // //Write to Text File: Updated Neeeded // System.IO.File.WriteAllText(Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFileUpdated.txt", "-1"); // } // else // { // //Write to Text File: Updated Neeeded // System.IO.File.WriteAllText(Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFileUpdated.txt", "0"); // //Set Warning Button Visible // btnWarning.Visibility = Visibility.Visible; // } // } // } //} #endregion //Write to Text File: Updated Neeeded System.IO.File.WriteAllText(Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFileUpdated.txt", "0"); //CurrentFile FilePath = Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFile.txt"; //Case file does not exist, create it! if (File.Exists(FilePath) == false) { System.IO.File.WriteAllText(FilePath, "0"); } //Current File IDText FilePath = Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFileIDText.txt"; //Case file does not exist, create it! if (File.Exists(FilePath) == false) { System.IO.File.WriteAllText(Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFileIDText.txt", "0"); System.IO.File.WriteAllText(Directory.GetCurrentDirectory() + "/StorageTextToolbox/Infos/0.txt", "0"); } }