diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-03 17:49:38 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-03 17:49:38 +0300 |
| commit | 33a7f16d7f6f7d0be58fb5ac77dcb84934114d48 (patch) | |
| tree | a5c95ab604286fba833d2d5cd4bd2f32d79e69fe /Software/Visual_Studio/Utilities/Tango.Stubs.UI/Examples/WriteToFile.cs | |
| parent | 39c49d522d68a591d60aecdeab8149f1bb04415c (diff) | |
| download | Tango-33a7f16d7f6f7d0be58fb5ac77dcb84934114d48.tar.gz Tango-33a7f16d7f6f7d0be58fb5ac77dcb84934114d48.zip | |
Embedded StubsView in Stubs UI.
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.Stubs.UI/Examples/WriteToFile.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.Stubs.UI/Examples/WriteToFile.cs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.Stubs.UI/Examples/WriteToFile.cs b/Software/Visual_Studio/Utilities/Tango.Stubs.UI/Examples/WriteToFile.cs deleted file mode 100644 index 1d580fd5d..000000000 --- a/Software/Visual_Studio/Utilities/Tango.Stubs.UI/Examples/WriteToFile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Text; -using System.Linq; -using System.Drawing; -using System.Diagnostics; -using System.Windows.Forms; -using System.Threading; -using System.Threading.Tasks; -using System.Collections.Generic; -using Tango.PMR.Stubs; -using Tango.Stubs.UI; - -private const string FILE_PATH = "D:\\logFile.txt"; - -public void OnExecute(StubManager stubManager) -{ - //This will overwrite existing file. - stubManager.WriteToFile(FILE_PATH, "Writing to file..."); - - for (int i = 0; i < 10; i++) - { - //This will append the contents to the end of the file. - stubManager.AppendToFile(FILE_PATH, i.ToString() + " Some text..."); - } - - stubManager.AppendToFile(FILE_PATH, "Done"); - - stubManager.WriteLine("Done writing to the file."); -}
\ No newline at end of file |
