Ejemplo n.º 1
0
        private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
        {
            log4net.Config.XmlConfigurator.Configure();
            System.Threading.Thread.CurrentThread.CurrentCulture   = new System.Globalization.CultureInfo("ja-JP");
            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ja-JP");
            m_mailgo = new MailGoPG(Globals.ThisAddIn.Application);
            MailGoPG mailGO = (MailGoPG)m_mailgo;

            mailGO.cmdMailGO = this.cmdMailGO;
            mailGO.cmdOption = this.cmdOption;
            m_mailgo.Startup();

            this.cmdMailGO.Label     = "MailGO  -  オン";
            this.cmdMailGO.ScreenTip = "オフにする";
            this.cmdOption.Label     = "オプション";
            this.cmdOption.ScreenTip = "オプション";

            Globals.ThisAddIn.Application.ItemSend += new Outlook.ApplicationEvents_11_ItemSendEventHandler(app_ItemSend);

            try
            {
                //this.group1.Label = String.Format(
                //this.group1.Label, "IT");
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 2
0
        private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
        {
            log4net.Config.XmlConfigurator.Configure();
            m_mailgo = new MailGoPG(Globals.ThisAddIn.Application);
            MailGoPG mailGO = (MailGoPG)m_mailgo;

            mailGO.cmdMailGO = this.cmdMailGO;
            mailGO.cmdOption = this.cmdOption;
            m_mailgo.Startup();
            Globals.ThisAddIn.Application.ItemSend += new Outlook.ApplicationEvents_11_ItemSendEventHandler(app_ItemSend);

            try
            {
                //this.group1.Label = String.Format(
                //this.group1.Label, "IT");
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }