Пример #1
0
        public void Execute()
        {
            if (InputStreamOne == null || InputStreamTwo == null)
            {
                return;
            }

            using (CStreamReader reader1 = InputStreamOne.CreateReader(), reader2 = InputStreamTwo.CreateReader())
            {
                outputStreamWriter = new CStreamWriter();
                EventsHelper.PropertyChanged(PropertyChanged, this, "OutputStream");

                int    bytesRead;
                byte[] buffer = new byte[1024];

                // Input One
                while ((bytesRead = reader1.Read(buffer)) > 0)
                {
                    outputStreamWriter.Write(buffer, 0, bytesRead);
                }
                // Input Two
                while ((bytesRead = reader2.Read(buffer)) > 0)
                {
                    outputStreamWriter.Write(buffer, 0, bytesRead);
                }

                outputStreamWriter.Close();
            }
        }
Пример #2
0
 public void OnPropertyChanged(string name)
 {
     if (PropertyChanged != null)
     {
         EventsHelper.PropertyChanged(PropertyChanged, this, new PropertyChangedEventArgs(name));
     }
 }
Пример #3
0
 public void OnPropertyChanged(string name)
 {
     if (PropertyChanged != null && PluginIsRunning == false)
     {
         EventsHelper.PropertyChanged(PropertyChanged, this, new PropertyChangedEventArgs(name));
     }
 }
Пример #4
0
 private void OnPropertyChanged(string propertyName)
 {
     EventsHelper.PropertyChanged(PropertyChanged, this, propertyName);
 }
Пример #5
0
 private void OnPropertyChanged(string name)
 {
     EventsHelper.PropertyChanged(PropertyChanged, this, new PropertyChangedEventArgs(name));
 }
Пример #6
0
 private void OnPropertyChange(String propertyname)
 {
     EventsHelper.PropertyChanged(PropertyChanged, this, new PropertyChangedEventArgs(propertyname));
 }
 private void OnPropertyChanges(string p)
 {
     EventsHelper.PropertyChanged(PropertyChanged, this, p);
 }
Пример #8
0
 public void RaisePropertyChanged(string name)
 {
     EventsHelper.PropertyChanged(PropertyChanged, this, new PropertyChangedEventArgs(name));
 }
Пример #9
0
 protected void OnPropertyChanged([CallerMemberName] string name = "")
 {
     EventsHelper.PropertyChanged(PropertyChanged, this, new PropertyChangedEventArgs(name));
 }