Exemple #1
0
 public void AddRange(OutlookBarButtonCollection items)
 {
     foreach (OutlookBarButton item in items)
     {
         this.Add(item);
     }
 }
Exemple #2
0
 /// <summary></summary>
 protected override void Dispose(bool disposing)
 {
     Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType() + ". ****** ");
     if (disposing && !IsDisposed)
     {
         if (m_buttons != null)
         {
             for (int i = 0; i < m_buttons.Count; i++)
             {
                 m_buttons[i].Dispose();
             }
             m_buttons.Clear();
         }
         if (m_toolTip != null)
         {
             m_toolTip.Dispose();
         }
         if (components != null)
         {
             components.Dispose();
         }
     }
     m_buttons = null;
     m_toolTip = null;
     base.Dispose(disposing);
 }
Exemple #3
0
 /// <summary></summary>
 public OutlookBar()
 {
     SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     SetStyle(ControlStyles.ResizeRedraw, true);
     m_buttons = new OutlookBarButtonCollection(this);
     Font      = new Font(SystemInformation.MenuFont, FontStyle.Bold);
 }
 public void SetUp()
 {
     _outlookBar = new OutlookBar();
     _tab1       = new OutlookBarButton("tab1", null);
     _tab2       = new OutlookBarButton("tab2", null);
     _tab3       = new OutlookBarButton("tab3", null);
     _tabs       = new OutlookBarButtonCollection(_outlookBar);
     _tabs.Add(_tab1);
     _tabs.Add(_tab2);
     _tabs.Add(_tab3);
 }
		public void SetUp()
		{
			_outlookBar = new OutlookBar();
			_tab1 = new OutlookBarButton("tab1", null);
			_tab2 = new OutlookBarButton("tab2", null);
			_tab3 = new OutlookBarButton("tab3", null);
			_tabs = new OutlookBarButtonCollection(_outlookBar);
			_tabs.Add(_tab1);
			_tabs.Add(_tab2);
			_tabs.Add(_tab3);
		}
Exemple #6
0
        /// <summary></summary>
        public OutlookBar()
        {
            if (Platform.IsMono)
            {
                // TODO-Linux: FWNX-459
                m_renderer = Renderer.Outlook2003;
            }
            else
            {
                // This choice seems arbitrary, but it gives highlighting and coloring
                // similar to FW6.0
                m_renderer = Renderer.Outlook2007;
            }

            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            m_buttons = new OutlookBarButtonCollection(this);
            Font      = new Font(SystemInformation.MenuFont, FontStyle.Bold);
        }
		/// <summary>
		/// Create a navpane options dialog, and populate it with tabs.
		/// The collection of tabs given by the caller will be manipulated by this dialog.
		/// </summary>
		public NavPaneOptionsDlg(OutlookBarButtonCollection tabs)
		{
			InitializeComponent();

			// No tab is selected, so Up and Down should be disabled
			btn_Up.Enabled = false;
			btn_Down.Enabled = false;

			tabListBox.SelectedIndexChanged += tabListBox_SelectedIndexChanged;
			tabListBox.ItemCheck += HandleTabListBoxItemCheck;

			if (tabs == null)
				return;

			Tabs = tabs;

			BackupTabs();

			FillList();
		}
        /// <summary>
        /// Create a navpane options dialog, and populate it with tabs.
        /// The collection of tabs given by the caller will be manipulated by this dialog.
        /// </summary>
        public NavPaneOptionsDlg(OutlookBarButtonCollection tabs)
        {
            InitializeComponent();

            // No tab is selected, so Up and Down should be disabled
            btn_Up.Enabled   = false;
            btn_Down.Enabled = false;

            tabListBox.SelectedIndexChanged += tabListBox_SelectedIndexChanged;
            tabListBox.ItemCheck            += HandleTabListBoxItemCheck;

            if (tabs == null)
            {
                return;
            }

            Tabs = tabs;

            BackupTabs();

            FillList();
        }
		public void AddRange(OutlookBarButtonCollection items)
		{
			foreach (OutlookBarButton item in items)
				this.Add(item);
		}