Пример #1
0
        /// <summary>
        /// Trigger the Aktive Job Changed Event
        /// </summary>
        /// <param name="job"></param>
        private void triggerAktiveJobChangedEvent(Simulation_Job job)
        {
            AktiveJobChangedEventArgs myArgument = new AktiveJobChangedEventArgs();

            myArgument.Job = job;
            aktiveJobChanged(myArgument);
        }
Пример #2
0
 protected virtual void aktiveJobChanged(AktiveJobChangedEventArgs e)
 {
     if (AktiveJobChanged != null)
     {
         AktiveJobChanged(this, e);
     }
 }
Пример #3
0
 /// <summary>
 /// Eventhandler for new Jobs active
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void aktiveJobChanged(object sender, AktiveJobChangedEventArgs e)
 {
     this.Dispatcher.Invoke(DispatcherPriority.Normal, new System.Windows.Threading.DispatcherOperationCallback(delegate
     {
         // Update the UI via a function
         highlightDataGridRow(e.Job);
         return(null);
     }), null);
 }