Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

RSS Feed Aggregator and Blogging Smart Client

, 16 Aug 2005
RSS Feed aggregator and blogging Smart Client which uses Enterprise Library, Updater Application Block, lots of XML hacks and desktop tricks. A comprehensive guide to real life hurdles of Smart Client development.
rssfeeder_src.zip
RSSFeeder
RSSBlogAPI
RSSBlogAPI.csproj.user
Web References
CommunityServer
blogservice.disco
blogservice.wsdl
Reference.map
DotText
Reference.map
simpleblogservice.disco
simpleblogservice.wsdl
RSSCommon
Helper
PropertyEditor
RSSCommon.csproj.user
RSSFeeder
Controls
docs
dropshadow.png
My Pic 7.jpg
WIndows98.jpg
Helpers
Resources
E-mail.ico
rss.ico
RSSFeeder.mdb
RSSFeeder.csproj.user
RSSStarter.exe
RSSFeederResources
PublicQueue.ico
RSSFeeder.mdb
RSSFeederResources.csproj.user
RSSFeederSetup
Messages.ico
RSSFeederSetup.vdproj
Test
RSSStarter
DummyForm.frm
DummyForm.frx
MainModule.bas
RSSStarter.exe
RSSStarter.vbp
RSSStarter.vbw
RSSTests
App.ico
RSSTests.csproj.user
Thirdparty
AxInterop.DHTMLEDLib.dll
AxInterop.SHDocVw.dll
Eyefinder.dll
GotDotNet.Exslt.dll
HttpDownloader.dll
Interop.DHTMLEDLib.dll
Interop.SHDocVw.dll
Interop.WindowsInstaller.dll
Microsoft.ApplicationBlocks.Updater.ActivationProcessors.dll
Microsoft.ApplicationBlocks.Updater.dll
Microsoft.ApplicationBlocks.Updater.Downloaders.dll
Microsoft.Practices.EnterpriseLibrary.Caching.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Security.Cache.CachingStore.dll
Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll
Microsoft.Practices.EnterpriseLibrary.Security.dll
NotifyIconBalloon.dll
SandBar.dll
SandDock.dll
SgmlReaderDll.dll
// Copyright � 2005 by Omar Al Zabir. All rights are reserved.
// 
// If you like this code then feel free to go ahead and use it.
// The only thing I ask is that you don't remove or alter my copyright notice.
//
// Your use of this software is entirely at your own risk. I make no claims or
// warrantees about the reliability or fitness of this code for any particular purpose.
// If you make changes or additions to this code please mark your code as being yours.
// 
// website http://www.oazabir.com, email OmarAlZabir@gmail.com, msn oazabir@hotmail.com

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace RSSFeeder
{
	using RSSCommon;
	using RSSCommon.Helper;

	/// <summary>
	/// Summary description for StartupWizard.
	/// </summary>
	public class StartupWizard : System.Windows.Forms.Form
	{
		#region Designer

		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.CheckBox outlookSyncCheckBox;
		private System.Windows.Forms.Button selectBaseFolderButton;
		private System.Windows.Forms.Button nextButton;
		private System.Windows.Forms.Label baseFolderDescriptionLabel;
		private System.Windows.Forms.Label selectedFolderNameLabel;
		private System.Windows.Forms.Panel step1Panel;
		private System.Windows.Forms.Panel step2Panel;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Button finishButton;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public StartupWizard()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(StartupWizard));
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.outlookSyncCheckBox = new System.Windows.Forms.CheckBox();
			this.selectBaseFolderButton = new System.Windows.Forms.Button();
			this.baseFolderDescriptionLabel = new System.Windows.Forms.Label();
			this.nextButton = new System.Windows.Forms.Button();
			this.step1Panel = new System.Windows.Forms.Panel();
			this.selectedFolderNameLabel = new System.Windows.Forms.Label();
			this.step2Panel = new System.Windows.Forms.Panel();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.finishButton = new System.Windows.Forms.Button();
			this.step1Panel.SuspendLayout();
			this.step2Panel.SuspendLayout();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.BackColor = System.Drawing.Color.Transparent;
			this.label1.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(309, 20);
			this.label1.TabIndex = 0;
			this.label1.Text = "Welcome, let\'s get started configuring RSS Feeder";
			// 
			// label2
			// 
			this.label2.BackColor = System.Drawing.Color.Transparent;
			this.label2.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label2.Location = new System.Drawing.Point(8, 32);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(296, 48);
			this.label2.TabIndex = 1;
			this.label2.Text = "First, please specify whether you need RSS feeds to be stored in outlook";
			// 
			// outlookSyncCheckBox
			// 
			this.outlookSyncCheckBox.BackColor = System.Drawing.Color.Transparent;
			this.outlookSyncCheckBox.Checked = true;
			this.outlookSyncCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
			this.outlookSyncCheckBox.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.outlookSyncCheckBox.Location = new System.Drawing.Point(40, 80);
			this.outlookSyncCheckBox.Name = "outlookSyncCheckBox";
			this.outlookSyncCheckBox.Size = new System.Drawing.Size(256, 16);
			this.outlookSyncCheckBox.TabIndex = 2;
			this.outlookSyncCheckBox.Text = "Yes, Store RSS Feeds in Outlook";
			this.outlookSyncCheckBox.CheckedChanged += new System.EventHandler(this.outlookSyncCheckBox_CheckedChanged);
			// 
			// selectBaseFolderButton
			// 
			this.selectBaseFolderButton.BackColor = System.Drawing.SystemColors.Control;
			this.selectBaseFolderButton.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.selectBaseFolderButton.Location = new System.Drawing.Point(72, 176);
			this.selectBaseFolderButton.Name = "selectBaseFolderButton";
			this.selectBaseFolderButton.Size = new System.Drawing.Size(152, 24);
			this.selectBaseFolderButton.TabIndex = 3;
			this.selectBaseFolderButton.Text = "Select base folder...";
			this.selectBaseFolderButton.Click += new System.EventHandler(this.selectBaseFolderButton_Click);
			// 
			// baseFolderDescriptionLabel
			// 
			this.baseFolderDescriptionLabel.BackColor = System.Drawing.Color.Transparent;
			this.baseFolderDescriptionLabel.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.baseFolderDescriptionLabel.Location = new System.Drawing.Point(8, 104);
			this.baseFolderDescriptionLabel.Name = "baseFolderDescriptionLabel";
			this.baseFolderDescriptionLabel.Size = new System.Drawing.Size(288, 64);
			this.baseFolderDescriptionLabel.TabIndex = 4;
			this.baseFolderDescriptionLabel.Text = "Please select a folder in outlook which will be used as a base folder for all cha" +
				"nnel folders. Each channel will be added as a subfolder under this base folder";
			// 
			// nextButton
			// 
			this.nextButton.BackColor = System.Drawing.SystemColors.Control;
			this.nextButton.Location = new System.Drawing.Point(232, 224);
			this.nextButton.Name = "nextButton";
			this.nextButton.Size = new System.Drawing.Size(80, 24);
			this.nextButton.TabIndex = 5;
			this.nextButton.Text = "Next >";
			this.nextButton.Click += new System.EventHandler(this.nextButton_Click);
			// 
			// step1Panel
			// 
			this.step1Panel.BackColor = System.Drawing.Color.Transparent;
			this.step1Panel.Controls.Add(this.baseFolderDescriptionLabel);
			this.step1Panel.Controls.Add(this.outlookSyncCheckBox);
			this.step1Panel.Controls.Add(this.nextButton);
			this.step1Panel.Controls.Add(this.label2);
			this.step1Panel.Controls.Add(this.selectBaseFolderButton);
			this.step1Panel.Controls.Add(this.label1);
			this.step1Panel.Controls.Add(this.selectedFolderNameLabel);
			this.step1Panel.Location = new System.Drawing.Point(272, 64);
			this.step1Panel.Name = "step1Panel";
			this.step1Panel.Size = new System.Drawing.Size(312, 248);
			this.step1Panel.TabIndex = 6;
			// 
			// selectedFolderNameLabel
			// 
			this.selectedFolderNameLabel.AutoSize = true;
			this.selectedFolderNameLabel.BackColor = System.Drawing.Color.Transparent;
			this.selectedFolderNameLabel.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.selectedFolderNameLabel.Location = new System.Drawing.Point(8, 208);
			this.selectedFolderNameLabel.Name = "selectedFolderNameLabel";
			this.selectedFolderNameLabel.Size = new System.Drawing.Size(129, 20);
			this.selectedFolderNameLabel.TabIndex = 6;
			this.selectedFolderNameLabel.Text = "(No Folder Selected)";
			// 
			// step2Panel
			// 
			this.step2Panel.BackColor = System.Drawing.Color.Transparent;
			this.step2Panel.Controls.Add(this.label4);
			this.step2Panel.Controls.Add(this.label3);
			this.step2Panel.Controls.Add(this.pictureBox1);
			this.step2Panel.Controls.Add(this.finishButton);
			this.step2Panel.Location = new System.Drawing.Point(272, 64);
			this.step2Panel.Name = "step2Panel";
			this.step2Panel.Size = new System.Drawing.Size(312, 248);
			this.step2Panel.TabIndex = 8;
			this.step2Panel.Visible = false;
			// 
			// label4
			// 
			this.label4.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label4.Location = new System.Drawing.Point(0, 144);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(296, 23);
			this.label4.TabIndex = 8;
			this.label4.Text = "Click on this icon to launch it anytime.";
			// 
			// label3
			// 
			this.label3.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label3.Location = new System.Drawing.Point(0, 16);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(296, 23);
			this.label3.TabIndex = 7;
			this.label3.Text = "RSS Feeder Icon will be in the task bar";
			// 
			// pictureBox1
			// 
			this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
			this.pictureBox1.Location = new System.Drawing.Point(8, 48);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(304, 88);
			this.pictureBox1.TabIndex = 6;
			this.pictureBox1.TabStop = false;
			// 
			// finishButton
			// 
			this.finishButton.BackColor = System.Drawing.SystemColors.Control;
			this.finishButton.Location = new System.Drawing.Point(232, 224);
			this.finishButton.Name = "finishButton";
			this.finishButton.Size = new System.Drawing.Size(80, 24);
			this.finishButton.TabIndex = 5;
			this.finishButton.Text = "Finish";
			this.finishButton.Click += new System.EventHandler(this.finishButton_Click);
			// 
			// StartupWizard
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(602, 328);
			this.Controls.Add(this.step1Panel);
			this.Controls.Add(this.step2Panel);
			this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.Name = "StartupWizard";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "RSS Feeder - Getting Started";
			this.step1Panel.ResumeLayout(false);
			this.step2Panel.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		#endregion

		#region Private Methods

		private void Proceed()
		{
			if( Configuration.Instance.SyncWithOutlook && 0 == Configuration.Instance.OutlookBaseFolder.Length )
			{
				MessageBox.Show( this, "Please select a base folder for outlook synchronization", "Error", 
					MessageBoxButtons.OK, MessageBoxIcon.Exclamation );

				return;
			}

			step1Panel.Visible = false;
			step2Panel.Visible = true;
		}

		#endregion

		#region Control Events

		private void outlookSyncCheckBox_CheckedChanged(object sender, System.EventArgs e)
		{
			selectedFolderNameLabel.Visible = 
				selectBaseFolderButton.Visible = 
				baseFolderDescriptionLabel.Visible = 
				Configuration.Instance.SyncWithOutlook =
				outlookSyncCheckBox.Checked;
		}

		
		private void selectBaseFolderButton_Click(object sender, System.EventArgs e)
		{
			string path = OutlookHelper.SelectFolderPath();

			if( null != path )
			{
				Configuration.Instance.OutlookBaseFolder = path;

				selectedFolderNameLabel.Text = path;

				base.Activate();
			}
			else
			{
				MessageBox.Show( this, "You did not select any folder. If you do not want Outlook integration, check off the check box",
					"Outlook", MessageBoxButtons.OK, MessageBoxIcon.Warning );
			}
		}

		private void nextButton_Click(object sender, System.EventArgs e)
		{
			this.Proceed();
		}

		
		private void finishButton_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		#endregion

	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


| Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 16 Aug 2005
Article Copyright 2005 by Omar Al Zabir
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid