private void LoadCharacterSets(SharedControls.Controls.TextBlock textBlock) { cmbCharacterSet.Items.Clear(); if (textBlock != null) { string[] lines = textBlock.StringBlock.Replace("\n", "").Trim().Split('\r'); foreach (string s in lines) { if (String.IsNullOrEmpty(s)) { continue; } cmbCharacterSet.Items.Add(s); } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UpdateBackupReplication)); this.pumNotifyIcon = new System.Windows.Forms.ContextMenuStrip(this.components); this.menuRunAsAppConfigure = new System.Windows.Forms.ToolStripMenuItem(); this.menuRunAsAppConsole = new System.Windows.Forms.ToolStripMenuItem(); this.menuRunAsAppSeperator = new System.Windows.Forms.ToolStripSeparator(); this.menuRunAsAppClose = new System.Windows.Forms.ToolStripMenuItem(); this.notifyRunAsApp = new System.Windows.Forms.NotifyIcon(this.components); this.versionMaster401 = new SharedControls.Controls.TextBlock(); this.versionMaster402 = new SharedControls.Controls.TextBlock(); this.versionMaster404 = new SharedControls.Controls.TextBlock(); this.versionMaster407 = new SharedControls.Controls.TextBlock(); this.pumNotifyIcon.SuspendLayout(); // // pumNotifyIcon // this.pumNotifyIcon.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuRunAsAppConfigure, this.menuRunAsAppConsole, this.menuRunAsAppSeperator, this.menuRunAsAppClose }); this.pumNotifyIcon.Name = "pumNotifyIcon"; this.pumNotifyIcon.Size = new System.Drawing.Size(158, 76); // // menuRunAsAppConfigure // this.menuRunAsAppConfigure.Name = "menuRunAsAppConfigure"; this.menuRunAsAppConfigure.Size = new System.Drawing.Size(127, 22); this.menuRunAsAppConfigure.Text = "Configure"; this.menuRunAsAppConfigure.Click += new System.EventHandler(this.menuRunAsAppConfigure_Click); // // menuRunAsAppConsole // this.menuRunAsAppConsole.Name = "menuRunAsAppConsole"; this.menuRunAsAppConsole.Size = new System.Drawing.Size(157, 22); this.menuRunAsAppConsole.Text = "Service Console"; this.menuRunAsAppConsole.Click += new System.EventHandler(this.menuRunAsAppConsole_Click); // // menuRunAsAppSeperator // this.menuRunAsAppSeperator.Name = "menuRunAsAppSeperator"; this.menuRunAsAppSeperator.Size = new System.Drawing.Size(127, 22); // // menuRunAsAppClose // this.menuRunAsAppClose.Name = "menuRunAsAppClose"; this.menuRunAsAppClose.Size = new System.Drawing.Size(127, 22); this.menuRunAsAppClose.Text = "Close"; this.menuRunAsAppClose.Click += new System.EventHandler(this.menuRunAsAppClose_Click); // // notifyRunAsApp // this.notifyRunAsApp.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyRunAsApp.Icon"))); this.notifyRunAsApp.Text = "Firebird Replication Engine"; this.notifyRunAsApp.DoubleClick += new System.EventHandler(this.notifyRunAsApp_DoubleClick); // // versionMaster401 // this.versionMaster401.StringBlock = resources.GetString("versionMaster401.StringBlock"); // // versionMaster402 // this.versionMaster402.StringBlock = resources.GetString("versionMaster402.StringBlock"); // // versionMaster404 // this.versionMaster404.StringBlock = resources.GetString("versionMaster404.StringBlock"); // // versionMaster407 // this.versionMaster407.StringBlock = resources.GetString("versionMaster407.StringBlock"); // // UpdateBackupReplication // this.AutoLog = false; this.ServiceName = "Firebird Replication Engine"; this.pumNotifyIcon.ResumeLayout(false); }