ProcessStartInfo.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. //
  2. // System.Diagnostics.ProcessStartInfo.cs
  3. //
  4. // Authors:
  5. // Dick Porter ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc. http://www.ximian.com
  8. //
  9. using System.Collections.Specialized;
  10. namespace System.Diagnostics {
  11. public sealed class ProcessStartInfo {
  12. public ProcessStartInfo() {
  13. }
  14. public ProcessStartInfo(string filename) {
  15. this.filename=filename;
  16. }
  17. public ProcessStartInfo(string filename, string arguments) {
  18. this.filename=filename;
  19. this.arguments=arguments;
  20. }
  21. private string arguments="";
  22. public string Arguments {
  23. get {
  24. return(arguments);
  25. }
  26. set {
  27. arguments=value;
  28. }
  29. }
  30. private bool create_no_window=false;
  31. public bool CreateNoWindow {
  32. get {
  33. return(create_no_window);
  34. }
  35. set {
  36. create_no_window=value;
  37. }
  38. }
  39. [MonoTODO("Need to read the env block somehow")]
  40. public StringDictionary EnvironmentVariables {
  41. get {
  42. throw new NotImplementedException();
  43. }
  44. }
  45. private bool error_dialog=false;
  46. public bool ErrorDialog {
  47. get {
  48. return(error_dialog);
  49. }
  50. set {
  51. error_dialog=value;
  52. }
  53. }
  54. private IntPtr error_dialog_parent_handle=(IntPtr)0;
  55. public IntPtr ErrorDialogParentHandle {
  56. get {
  57. return(error_dialog_parent_handle);
  58. }
  59. set {
  60. error_dialog_parent_handle=value;
  61. }
  62. }
  63. private string filename="";
  64. public string FileName {
  65. get {
  66. return(filename);
  67. }
  68. set {
  69. filename=value;
  70. }
  71. }
  72. private bool redirect_standard_error=false;
  73. public bool RedirectStandardError {
  74. get {
  75. return(redirect_standard_error);
  76. }
  77. set {
  78. redirect_standard_error=value;
  79. }
  80. }
  81. private bool redirect_standard_input=false;
  82. public bool RedirectStandardInput {
  83. get {
  84. return(redirect_standard_input);
  85. }
  86. set {
  87. redirect_standard_input=value;
  88. }
  89. }
  90. private bool redirect_standard_output=false;
  91. public bool RedirectStandardOutput {
  92. get {
  93. return(redirect_standard_output);
  94. }
  95. set {
  96. redirect_standard_output=value;
  97. }
  98. }
  99. private bool use_shell_execute=true;
  100. public bool UseShellExecute {
  101. get {
  102. return(use_shell_execute);
  103. }
  104. set {
  105. use_shell_execute=value;
  106. }
  107. }
  108. private string verb="";
  109. public string Verb {
  110. get {
  111. return(verb);
  112. }
  113. set {
  114. verb=value;
  115. }
  116. }
  117. [MonoTODO]
  118. public string[] Verbs {
  119. get {
  120. return(null);
  121. }
  122. }
  123. private ProcessWindowStyle window_style=ProcessWindowStyle.Normal;
  124. public ProcessWindowStyle WindowStyle {
  125. get {
  126. return(window_style);
  127. }
  128. set {
  129. window_style=value;
  130. }
  131. }
  132. private string working_directory="";
  133. public string WorkingDirectory {
  134. get {
  135. return(working_directory);
  136. }
  137. set {
  138. working_directory=value;
  139. }
  140. }
  141. }
  142. }