public EzScriptForm() { InitializeComponent(); // Application Name string sApplication = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.ToString(); // Assembly version string sAppVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); lblDevnfo.Text = sApplication + " " + sAppVersion + " by Yogeesha Naik "; // Bind AuthTypes dropdown Enum.GetValues(typeof(AuthTypes)).Cast <AuthTypes>().ForEach((s) => cboAuthTypes.Items.Add(s)); cboAuthTypes.SelectedIndex = 0; #region background worker initialization backgroundWorkerExample.ProgressChanged += new ProgressChangedEventHandler(backgroundWorkerExample_ProgressChanged); backgroundWorkerExample.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerExample_RunWorkerCompleted); helper = new BWHelper(backgroundWorkerExample); helper.TimeLeft.ValueChanged += new ValueChangedDelegate <TimeSpan>(TimeLeft_ValueChanged); #endregion background worker initialization #region Trace Listener Initialization TraceListener debugListener = new ControlTraceListener(rtbInfo); //Debug.Listeners.Add(debugListener); Trace.Listeners.Add(debugListener); #endregion Trace Listener Initialization dtpFrom.Value = DateTime.Today.AddDays(-1); }
public frmExplorer() { InitializeComponent(); helper = new BWHelper(backgroundWorkerExample); CreateHeadersAndFillListView(); this.lwFilesAndFolders.ItemActivate += new System.EventHandler(this.lwFilesAndFolders_ItemActivate); }