2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Windows.Forms;
11 namespace SeciControls
13 public partial class Menu : UserControl
25 public Boolean
LogInEnabled {
get {
return logInToolStripMenuItem.Enabled; } set { logInToolStripMenuItem.Enabled = value; } }
26 public Boolean
LogOutEnabled {
get {
return logOutToolStripMenuItem.Enabled; } set { logOutToolStripMenuItem.Enabled = value; } }
99 recentConfigurationsToolStripMenuItem.DropDownItems.Clear();
101 if (recent.Count > 0)
103 for (
int i = 0; i < recent.Count; ++i)
105 if (!String.IsNullOrEmpty(recent[i]))
107 ToolStripMenuItem temp =
new ToolStripMenuItem();
108 temp.Name = recent[i];
109 temp.Text = recent[i];
111 recentConfigurationsToolStripMenuItem.DropDownItems.Add(temp);
115 recentConfigurationsToolStripMenuItem.Visible =
true;
119 recentConfigurationsToolStripMenuItem.Visible =
false;