예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
        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.");
        }