Ejemplo n.º 1
0
 public void RefreshAll()
 {
     DocumentSelectionChange();
     StringSetter.setStringAll(MasterObject, "tip");
     StringSetter.setStringAll(MasterObject, "label");
     StringSetter.setGroupNames(MasterObject); //these are the ribbon groups labels
 }
Ejemplo n.º 2
0
        private Resident(WooTable _MasterObject)
        {
            try
            {
                ThisApp = Globals.ThisAddIn.Application;
                setMasterObject(_MasterObject);

                try
                {
                    if (Properties.Settings.Default.Culture == "")
                    {
                        Properties.Settings.Default.Culture       = Thread.CurrentThread.CurrentUICulture.Name;
                        Properties.Settings.Default.CultureString = Thread.CurrentThread.CurrentUICulture.NativeName;
                    }
                    Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(Properties.Settings.Default.Culture);
                }
                catch
                {
                    Properties.Settings.Default.Culture       = Thread.CurrentThread.CurrentUICulture.Name;
                    Properties.Settings.Default.CultureString = Thread.CurrentThread.CurrentUICulture.NativeName;
                    Thread.CurrentThread.CurrentUICulture     = CultureInfo.GetCultureInfo(Thread.CurrentThread.CurrentUICulture.Name);
                }

                StringSetter.setStringAll(MasterObject, "tip");
                StringSetter.setStringAll(MasterObject, "label");
                StringSetter.setGroupNames(MasterObject); //these are the ribbon groups labels

                // start up
                Startup();
            }
            catch (Exception E)
            {
                System.Windows.Forms.MessageBox.Show("Could not initialize the resident service: " + E.Message + ". Am stopping it.", "WooTable .::. Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
                _inst = null;
            }
        }