- rssfeeder_src.zip
- RSSFeeder
- RSSBlogAPI
- RSSCommon
- RSSFeeder.sln
- RSSFeeder
- RSSFeederResources
- RSSFeederSetup
- Messages.ico
- RSSFeederSetup.vdproj
- Test
- RSSStarter
- RSSTests
- 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
{
/// <summary>
/// Summary description for NewsgatorImport.
/// </summary>
public class NewsgatorImport : System.Windows.Forms.Form
{
#region Designer
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button importNewsgatorButton;
private System.Windows.Forms.Button dontImportButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public NewsgatorImport()
{
//
// 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(NewsgatorImport));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.importNewsgatorButton = new System.Windows.Forms.Button();
this.dontImportButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.label1.Location = new System.Drawing.Point(264, 72);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(320, 23);
this.label1.TabIndex = 0;
this.label1.Text = "Newsgator Found";
//
// 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(264, 96);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(320, 112);
this.label2.TabIndex = 1;
this.label2.Text = @"I have detected newsgator settings. Looks like you are using Newsgator. Would like to import all channels and outlook folder settings from newsgator? If you do, I will be storing feeds in the same place where newsgator was storing. So, you won't have to configure anything anymore.";
//
// label3
//
this.label3.BackColor = System.Drawing.Color.Transparent;
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(264, 208);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(304, 48);
this.label3.TabIndex = 2;
this.label3.Text = "Please disable newsgator after importing. You will no longer need it to download " +
"feeds";
//
// importNewsgatorButton
//
this.importNewsgatorButton.Location = new System.Drawing.Point(328, 264);
this.importNewsgatorButton.Name = "importNewsgatorButton";
this.importNewsgatorButton.Size = new System.Drawing.Size(144, 23);
this.importNewsgatorButton.TabIndex = 3;
this.importNewsgatorButton.Text = "Use Newsgator Settings";
this.importNewsgatorButton.Click += new System.EventHandler(this.importNewsgatorButton_Click);
//
// dontImportButton
//
this.dontImportButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.dontImportButton.Location = new System.Drawing.Point(480, 264);
this.dontImportButton.Name = "dontImportButton";
this.dontImportButton.Size = new System.Drawing.Size(104, 23);
this.dontImportButton.TabIndex = 4;
this.dontImportButton.Text = "Don\'t";
this.dontImportButton.Click += new System.EventHandler(this.dontImportButton_Click);
//
// NewsgatorImport
//
this.AcceptButton = this.importNewsgatorButton;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.CancelButton = this.dontImportButton;
this.ClientSize = new System.Drawing.Size(600, 310);
this.Controls.Add(this.dontImportButton);
this.Controls.Add(this.importNewsgatorButton);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
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 = "NewsgatorImport";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Newsgator Import";
this.ResumeLayout(false);
}
#endregion
#endregion
#region Control Events
private void importNewsgatorButton_Click(object sender, System.EventArgs e)
{
importNewsgatorButton.Text = "Importing..."; importNewsgatorButton.Enabled = false;
this.Refresh();
try
{
Helpers.NewsgatorHelper.ImportNewsgator();
}
catch( Exception x )
{
MessageBox.Show( this, "Error occured while importing newsgator. No problem, we will run our own."
+ Environment.NewLine
+ x.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation );
}
this.DialogResult = DialogResult.OK;
this.Close();
}
private void dontImportButton_Click(object sender, System.EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
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.