/// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void initialize()
        {
            this.common = new Common();

            ((System.ComponentModel.ISupportInitialize)(this.common.FileMonitor)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.common.EventLog)).BeginInit();

            //
            // _fileMonitor
            //
            this.common.FileMonitor.EnableRaisingEvents = true;
            this.common.FileMonitor.NotifyFilter = ((System.IO.NotifyFilters)((((((System.IO.NotifyFilters.FileName | System.IO.NotifyFilters.DirectoryName)
                        | System.IO.NotifyFilters.Attributes)
                        | System.IO.NotifyFilters.Size)
                        | System.IO.NotifyFilters.LastWrite)
                        | System.IO.NotifyFilters.CreationTime)));
            this.common.FileMonitor.Changed += new System.IO.FileSystemEventHandler(this.common.FileMonitor_OnChanged);
            this.common.FileMonitor.Created += new System.IO.FileSystemEventHandler(this.common.FileMonitor_OnChanged);
            this.common.FileMonitor.Deleted += new System.IO.FileSystemEventHandler(this.common.FileMonitor_OnChanged);
            this.common.FileMonitor.Error += new System.IO.ErrorEventHandler(this.common.FileMonitor_OnError);
            this.common.FileMonitor.Renamed += new System.IO.RenamedEventHandler(this.common.FileMonitor_OnRenamed);

            //
            // WindowsAzure_FileBackup
            //
            this.CanPauseAndContinue = true;
            this.CanShutdown = true;
            this.ServiceName = ConfigurationManager.AppSettings.Get("ServiceName").ToString();

            ((System.ComponentModel.ISupportInitialize)(this.common.FileMonitor)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.common.EventLog)).EndInit();
        }
        private void initialize()
        {
            this.common = new Common();

            this.PrepareBackupButton.Enabled = false;
            this.GetBackupInfoButton.Enabled = false;
            this.SubmitFullActionButton.Enabled = false;

            StorageConnectionMode connectionMode = Common.WindowsAzureConnectionMode;

            this.StorageAccountNameTB.Text = Common.WindowsAzureStorageAccountName;
            this.StorageAccountKeyTB.Text = Common.WindowsAzureStorageAccountKey;
            this.BackupContainerNameTB.Text = Common.WindowsAzureStorageBlobContainerName;
            this.BackupLocalPathTB.Text = Common.WindowsAzureFileBackupRootDir;
            this.RecoveryLocalPathTB.Text = Common.WindowsAzureFileRecoveryRootDir;

            this.StorageAccountNameTB.Tag = !String.IsNullOrEmpty(this.StorageAccountNameTB.Text);
            this.StorageAccountKeyTB.Tag = !String.IsNullOrEmpty(this.StorageAccountKeyTB.Text);
            this.BackupContainerNameTB.Tag = !String.IsNullOrEmpty(this.BackupContainerNameTB.Text);
            this.BackupLocalPathTB.Tag = !String.IsNullOrEmpty(this.BackupLocalPathTB.Text);
            this.RecoveryLocalPathTB.Tag = !String.IsNullOrEmpty(this.RecoveryLocalPathTB.Text);

            this.StorageAccountNameTB.Validating += new System.ComponentModel.CancelEventHandler(storageAccountNameTB_Validating);
            this.StorageAccountKeyTB.Validating += new System.ComponentModel.CancelEventHandler(storageAccountKeyTB_Validating);
            this.BackupContainerNameTB.Validating += new System.ComponentModel.CancelEventHandler(backupContainerNameTB_Validating);
            this.BackupLocalPathTB.Validating += new System.ComponentModel.CancelEventHandler(backupLocalPathTB_Validating);
            this.RecoveryLocalPathTB.Validating += new System.ComponentModel.CancelEventHandler(recoveryLocalPathTB_Validating);

            this.StorageAccountNameTB.TextChanged += new System.EventHandler(this.txtBox_TextChanged);
            this.StorageAccountKeyTB.TextChanged += new System.EventHandler(this.txtBox_TextChanged);
            this.BackupContainerNameTB.TextChanged += new System.EventHandler(this.txtBox_TextChanged);
            this.BackupLocalPathTB.TextChanged += new System.EventHandler(this.txtBox_TextChanged);
            this.RecoveryLocalPathTB.TextChanged += new System.EventHandler(this.txtBox_TextChanged);

            System.OperatingSystem osInfo = System.Environment.OSVersion;
            System.Version osVersion = System.Environment.OSVersion.Version;

            this.ConnectionModeCloudRB.Checked = false;
            this.ConnectionModeLocalRB.Enabled = false;
            if (osInfo.Platform == PlatformID.Win32NT && osVersion.Major == 6)
            {
                this.ConnectionModeLocalRB.Enabled = true;

                if (StorageConnectionMode.Cloud == connectionMode)
                {
                    this.ConnectionModeCloudRB.Checked = true;
                }
                else
                {
                    this.ConnectionModeLocalRB.Checked = true;
                }
            }
            else
            {
                this.ConnectionModeCloudRB.Checked = true;
                this.ConnectionModeCloudRB.Enabled = false;
            }

            this.validateAll();

            this.getServiceStatus();
        }