Inheritance: System.Windows.Forms.Form
        /// <summary>
        /// Ctor that explicitly picks a data processing class
        /// </summary>
        /// <param name="formInstance">Form instance. Required for writing log messages (on UI thread)</param>
        /// <param name="dataFlowNetworkObj">Data processing class object</param>
        public FileProcessor(DIXFRecurringJobsProcessor formInstance, DataFlowNetworkStrategy dataFlowNetworkObj)
        {
            // Form context
            this.form = formInstance;

            this.DataNetworkStrategy = dataFlowNetworkObj;
        }
        /// <summary>
        /// Ctor that explicitly picks a data processing class
        /// </summary>
        /// <param name="formInstance">Form instance. Required for writing log messages (on UI thread)</param>
        /// <param name="dataFlowNetworkObj">Data processing class object</param>
        public FileProcessor(DIXFRecurringJobsProcessor formInstance, DataFlowNetworkStrategy dataFlowNetworkObj)
        {
            // Form context
            this.form = formInstance;

            this.DataNetworkStrategy = dataFlowNetworkObj;
        }
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="formInstance">Form instance. Required for writing log messages (on UI thread)</param>
        public FileProcessor(DIXFRecurringJobsProcessor formInstance)
        {
            // Form context
            this.form = formInstance;

            // Set data processing class
            this.DataNetworkStrategy = new DefaultDataFlowNetwork(this.form);
        }
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="formInstance">Form instance. Required for writing log messages (on UI thread)</param>
        public FileProcessor(DIXFRecurringJobsProcessor formInstance)
        {
            // Form context
            this.form = formInstance;

            // Set data processing class
            this.DataNetworkStrategy = new DefaultDataFlowNetwork(this.form);
        }
 private void INfade_Tick(object sender, EventArgs e)
 {
     if (this.Opacity == 0)
     {
         INfade.Enabled = false;
         DIXFRecurringJobsProcessor DIXFRecurring = new DIXFRecurringJobsProcessor();
         DIXFRecurring.Show();
         this.Hide();
         return;
     }
     this.Opacity -= 0.01;
 }
Ejemplo n.º 6
0
 private void INfade_Tick(object sender, EventArgs e)
 {
     if (this.Opacity == 0)
     {
         INfade.Enabled = false;
         DIXFRecurringJobsProcessor DIXFRecurring = new DIXFRecurringJobsProcessor();
         DIXFRecurring.Show();
         this.Hide();
         return;
     }
     this.Opacity -= 0.01;
 }
        public DefaultDataFlowNetwork(DIXFRecurringJobsProcessor formInstance): base(formInstance)
        {
            // Init queues
            InputQueue = new ConcurrentQueue<ClientDataMessage>();

            InprocessQueue = new ConcurrentQueue<ClientDataMessage> ();

            EnqueuedJobs = new ConcurrentDictionary<string, ClientDataMessage>();

            // Init timer
            statusPoller = new System.Timers.Timer(Settings.StatusPollingInterval);
            statusPoller.Elapsed += async (sender, e) => await StatusPollerElapsed(sender, e);
            statusPoller.Start();
        }
Ejemplo n.º 8
0
        public DefaultDataFlowNetwork(DIXFRecurringJobsProcessor formInstance) : base(formInstance)
        {
            // Init queues
            InputQueue = new ConcurrentQueue <ClientDataMessage>();

            InprocessQueue = new ConcurrentQueue <ClientDataMessage> ();

            EnqueuedJobs = new ConcurrentDictionary <string, ClientDataMessage>();

            // Init timer
            statusPoller          = new System.Timers.Timer(Settings.StatusPollingInterval);
            statusPoller.Elapsed += async(sender, e) => await StatusPollerElapsed(sender, e);

            statusPoller.Start();
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="view">Form object</param>
 public DataFlowNetworkStrategy(DIXFRecurringJobsProcessor view)
 {
     this.formInstance = view;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="view">Form object</param>
 public DataFlowNetworkStrategy(DIXFRecurringJobsProcessor view)
 {
     this.formInstance = view;
 }