/// <summary> /// Initializes a new instance of the <see cref="MenuBand"/> class. /// </summary> public MenuBand(string caption, int index, OutlookMenu menu) { BackColor = Color.LightBlue; AutoScroll = false; this.Caption = caption; this.index = index; this.parent = menu; }
/// <summary> /// Initializes a new instance of the <see cref="MenuBand"/> class. /// </summary> public MenuBand(string caption, int index,OutlookMenu menu) { BackColor=Color.LightBlue; AutoScroll=false; this.Caption = caption; this.index = index; this.parent = menu; }
void btn_Click(object sender, EventArgs e) { Button btn = (Button)sender; OutlookMenu menu = btn.Parent.Parent as OutlookMenu; if (menu != null) { menu.SelectedIndex = int.Parse(btn.Tag.ToString()); } //throw new Exception("The method or operation is not implemented."); }