Beispiel #1
0
        private void closeCoffeeList_Click(object sender, EventArgs e)
        {
            // 清除并隐藏列表框。
            this._coffeeList.Items.Clear();
            this._coffeeGroup.Visible = false;

            // 令外接程序服务功能区按钮再次不可见。
            UserInterfaceContainer uiContainer =
                Globals.ThisAddIn._uiElements.GetUIContainerForUserControl(
                    this);

            uiContainer.HideRibbonControl(_mailServiceGroup);
        }
Beispiel #2
0
        private void closeCoffeeList_Click(object sender, EventArgs e)
        {
            // Clear and hide the listbox.
            this._coffeeList.Items.Clear();
            this._coffeeGroup.Visible = false;

            // Make the add-in service ribbon buttons invisible again.
            UserInterfaceContainer uiContainer =
                Globals.ThisAddIn._uiElements.GetUIContainerForUserControl(
                    this);

            uiContainer.HideRibbonControl(_mailServiceGroup);
        }