예제 #1
0
 private IconsPane(Microsoft.Office.Tools.CustomTaskPane _tPane)
 {
     InitializeComponent();
     StringSetter.setPane(this);
     _inst = this;
     setSysPane();
 }
예제 #2
0
 public void RefreshAll()
 {
     DocumentSelectionChange();
     StringSetter.setStringAll(MasterObject, "tip");
     StringSetter.setStringAll(MasterObject, "label");
     StringSetter.setGroupNames(MasterObject); //these are the ribbon groups labels
 }
예제 #3
0
        public Form_CurrencyConverter(WooTable _ribbon, double _value)
        {
            InitializeComponent();

            StringSetter.LocalizeMe((Form)this);

            _cconvert = CurrencyConverter.CurrencyConverter_getInstance;
            _master   = _ribbon;
            _val      = _value;
            Form_CurrencyConverter_text_risk.Text = Properties.Settings.Default.Curr_Risk.ToString();
        }
예제 #4
0
        private void Form_Settings_Load(object sender, EventArgs e)
        {
            try
            {
                StringSetter.LocalizeMe((Form)this);

                Form_Settings_check_ModifyStatusBar.Checked = Properties.Settings.Default.StatusBarUpdate;
                Form_Settings_check_ShowMin.Checked         = Properties.Settings.Default.Show_Min;
                Form_Settings_check_ShowMax.Checked         = Properties.Settings.Default.Show_Max;
                Form_Settings_check_ShowMedian.Checked      = Properties.Settings.Default.Show_Median;
                Form_Settings_check_ShowMin.Enabled         = Properties.Settings.Default.StatusBarUpdate;
                Form_Settings_check_ShowMax.Enabled         = Properties.Settings.Default.StatusBarUpdate;
                Form_Settings_check_ShowMedian.Enabled      = Properties.Settings.Default.StatusBarUpdate;
                Form_Settings_combo_Provider.Text           = Properties.Settings.Default.Curr_Provider;
                Form_Settings_text_Ratio.Text               = Properties.Settings.Default.Curr_Risk.ToString();
                Form_Settings_check_DialogOnMath.Checked    = Properties.Settings.Default.DialogOnMath;
                Form_Settings_check_ReplaceNLine.Checked    = Properties.Settings.Default.XLSNewLine;
                Form_Settings_combo_OracleDataLocation.Text = Properties.Settings.Default.OracleDataLocation;
                //Form_Settings_check_DialogOnMath.Enabled = Properties.Settings.Default.StatusBarUpdate;

                Form_Settings_combo_lang.Items.Clear();
                foreach (string _str in fcie.Localizations("Labels"))
                {
                    Form_Settings_combo_lang.Items.Add(_str);
                }
                Form_Settings_combo_lang.Text = Properties.Settings.Default.CultureString + " (" + Properties.Settings.Default.Culture + ")";

                //Oracle login and password
                Tuple <string, string> OracleLogin = PasswordManager.GetPassword(Properties.Settings.Default.WooTable_OracleData);
                Form_Settings_text_OracleDataUsername.Text = OracleLogin.Item1;
                Form_Settings_text_OracleDataPassword.Text = OracleLogin.Item2;
            }
            catch (Exception E)
            {
                System.Windows.Forms.MessageBox.Show("Error: property could not be set. Error message: " + E.Message, "WooTable .::. Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
            }
        }
예제 #5
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;
            }
        }
예제 #6
0
 private void Form_NumberFormat_Load(object sender, EventArgs e)
 {
     StringSetter.LocalizeMe((Form)this);
     StringSetter.LocalizeGrid(Form_NumberFormat_grid_Formats);
 }
예제 #7
0
 public TablesPane(Microsoft.Office.Tools.CustomTaskPane _tPane)
 {
     InitializeComponent();
     StringSetter.setPane(this);
     _TablesPane = _tPane;
 }
예제 #8
0
 private void Form_NewTable_Load(object sender, EventArgs e)
 {
     StringSetter.LocalizeMe((Form)this);
 }