Esempio n. 1
0
        public void InvokeProcessStopped(ProcessEventArgs args)
        {
            ProcessStoppedHandler handler = ProcessStopped;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Esempio n. 2
0
 /// 
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="proSettings">Project's settings</param>
 /// <param name="ts">Target's settings</param>
 /// <param name="tabInt">Reference to TabPage Interface</param>
 public TargetUpload(ProjectSettings proSettings, TargetSettings ts, TabPageInterface tabInt)
 {
     _proSettings = proSettings;
       _strProName = proSettings.ProjectName;
       _tSettings = ts;
       DirectoryInfo d = new DirectoryInfo(proSettings.SourcePath);
       _numDirectorySize = this.dirSize(d);                        //Finds size of the directory
       WputOutput += new WputOutputHandler(tabInt.OnUpdateProgress);
       ProcessStop += new ProcessStoppedHandler(tabInt.OnProcessStopEvent);
       ProcessError += new ProcessErrorHandler(tabInt.OnProcessErrorEvent);
       _strTargetServer = _tSettings.TargetServer;
 }
Esempio n. 3
0
        ///
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="proSettings">Project's settings</param>
        /// <param name="ts">Target's settings</param>
        /// <param name="tabInt">Reference to TabPage Interface</param>
        public TargetUpload(ProjectSettings proSettings, TargetSettings ts, TabPageInterface tabInt)
        {
            _proSettings = proSettings;
            _strProName  = proSettings.ProjectName;
            _tSettings   = ts;
            DirectoryInfo d = new DirectoryInfo(proSettings.SourcePath);

            _numDirectorySize = this.dirSize(d);                  //Finds size of the directory
            WputOutput       += new WputOutputHandler(tabInt.OnUpdateProgress);
            ProcessStop      += new ProcessStoppedHandler(tabInt.OnProcessStopEvent);
            ProcessError     += new ProcessErrorHandler(tabInt.OnProcessErrorEvent);
            _strTargetServer  = _tSettings.TargetServer;
        }