public MainForm() { InitializeComponent(); client = new Client(); this.inputPanel = new InputPanel(); inputPanel.EnabledChanged += new EventHandler(inputPanel_EnabledChanged); this.Menu = new MainMenu(); BuildMenuItems(); SetCommentPanelVisibility(false); client.CommentSent = (status => { this.BeginInvoke(new Action<bool>(CommentSent), status); }); }
public ChannelSelectForm(Client client) { InitializeComponent(); this.Closing += new CancelEventHandler(ChannelSelectForm_Closing); this.client = client; this.Menu = new MainMenu(); miLeftSoftKey = new MenuItem { Text = "更新", Enabled = true }; miLeftSoftKey.Click += new EventHandler(miLeftSoftKey_Click); miRightSoftKey = new MenuItem { Text = "終了", Enabled = true }; miRightSoftKey.Click += new EventHandler(miRightSoftKey_Click); this.Menu.MenuItems.Add(miLeftSoftKey); this.Menu.MenuItems.Add(miRightSoftKey); this.channelList1.SelectedIndexChanged += new EventHandler(channelList1_SelectedIndexChanged); }