Example #1
0
        private void Set_Main_Menu_Text(IStandard_Messages_Translate standard_Messages)
        {
            // \Main_Menu.xml

            File         = standard_Messages.Translate("File");
            View         = standard_Messages.Translate("View");
            Edit         = standard_Messages.Translate("Edit");
            Help         = standard_Messages.Translate("Help");
            New_Window   = standard_Messages.Translate("New_Window");
            Options      = standard_Messages.Translate("Options");
            Close_Window = standard_Messages.Translate("Close_Window");
            Standard     = standard_Messages.Translate("Standard");
            Scientific   = standard_Messages.Translate("Scientific");

            On_Properties_Change(new string[] {
                "File",
                "View",
                "Edit",
                "Help",
                "New_Window",
                "Options",
                "Close_Window",
                "Standard",
                "Scientific"
            });
        }
        private void Set_General_Options_Texts(IStandard_Messages_Translate standard_Messages)
        {
            Language_Name       = standard_Messages.Translate("Language");
            Font_Size_Type_Name = standard_Messages.Translate("Font_Size_Type");

            On_Properties_Change(new string[]
            {
                "Language_Name",
                "Font_Size_Type_Name"
            });
        }
Example #3
0
        private void Set_Calculator_annihilator_Text(IStandard_Messages_Translate standard_Messages)
        {
            // \Calculator_Annihilator.xml

            Title = standard_Messages.Translate("Title");
            Single_Calculations  = standard_Messages.Translate("Single_Calculations");
            Complex_Calculations = standard_Messages.Translate("Complex_Calculations");

            On_Properties_Change(new string[] {
                "Title",
                "Single_Calculations",
                "Complex_Calculations"
            });
        }
        private void Set_Buttons_Texts(IStandard_Messages_Translate standard_Messages)
        {
            Apply_All_Windows = standard_Messages.Translate("Apply_All_Windows");
            Ok     = standard_Messages.Translate("Ok");
            Cancel = standard_Messages.Translate("Cancel");
            Apply  = standard_Messages.Translate("Apply");

            On_Properties_Change(new string[]
            {
                "Apply_All_Windows",
                "Ok",
                "Cancel",
                "Apply"
            });
        }
 /// <summary>
 /// Sets texts for list_Item in Font_Size_Items_List.
 /// </summary>
 internal override void Set_Item_Text(IStandard_Messages_Translate Standard_Messages)
 {
     foreach (Font_Size_List_Item list_Item in Font_Size_Items_List)
     {
         list_Item.Set_Font_Size_Name(
             Standard_Messages.Translate(list_Item.Font_Size.ToString() + "_Font_Size"));
     }
 }
Example #6
0
        /// <summary>
        /// Constructs item for given Language.
        /// </summary>
        internal Langauge_List_Items(IStandard_Messages_Translate Standard_Messages, Languages _Language)
        {
            Language = _Language;

            Language_Name = Standard_Messages.Translate(Language.ToString() + "_Native");

            Language_Flag_Uri = AppDomain.CurrentDomain.BaseDirectory + @"Library\Images\Language_Flags\" + Language.ToString() + "_Flag.png";
        }
 /// <summary>
 /// Sets texts for list_Item in Number_Notation_Items_List.
 /// </summary>
 public void Set_Number_Notation_Texts(IStandard_Messages_Translate standard_Messages)
 {
     foreach (Number_Notation_List_Item list_Item in Number_Notation_List_Items_List)
     {
         list_Item.Set_Number_Notation_Name(
             standard_Messages.Translate(list_Item.Number_Notation.ToString() + "_Notation"));
     }
 }
Example #8
0
        /// <summary>
        /// Constructs item for given Font_Size.
        /// </summary>
        internal Font_Size_List_Item(IStandard_Messages_Translate Standard_Messages, Font_Size_Type _Font_Size)
        {
            Font_Size = _Font_Size;

            Font_Size_Name = Standard_Messages.Translate(Font_Size.ToString() + "_Font_Size");

            Font_Size_Symbol_Uri = AppDomain.CurrentDomain.BaseDirectory + @"Library\Image\Font_Size\" + Font_Size.ToString() + "_Flag.png";
        }
        private void Set_Calculator_Options_Text(IStandard_Messages_Translate standard_Messages)
        {
            Number_Notation_Type = standard_Messages.Translate("Number_Notation_Type");
            Numeral_System_Type  = standard_Messages.Translate("Numeral_System_Type");
            Comma_Symbol         = standard_Messages.Translate("Comma_Symbol");
            Mode_Calculator      = standard_Messages.Translate("Mode_Calculator");
            Method_Calculation   = standard_Messages.Translate("Method_Calculation");

            On_Properties_Change(new string[]
            {
                "Number_Notation_Type",
                "Numeral_System_Type",
                "Comma_Symbol",
                "Mode_Calculator",
                "Method_Calculation"
            });
        }
Example #10
0
        public static string Numeral_System_Dictionary_Name(sbyte numeral_System_Code, IStandard_Messages_Translate standard_Messages)
        {
            if (numeral_System_Code > 0 && numeral_System_Code < 65)
            {
                return(standard_Messages.Translate("N-Base_Numeral_System",
                                                   new string[] { numeral_System_Code.ToString() }));
            }

            switch (numeral_System_Code)
            {
            case -2:
                return(standard_Messages.Translate("Negabinary_Numeral_System"));

            case -3:
                return(standard_Messages.Translate("Balanced_Ternary_Numeral_System"));
            }

            return(standard_Messages.Translate("Unknown_Numeral_System"));
        }
Example #11
0
        /// <summary>
        /// Constructs item for given Number_Notation.
        /// </summary>
        internal Number_Notation_List_Item(IStandard_Messages_Translate Standard_Messages, Number_Notation _Number_Notation)
        {
            Number_Notation = _Number_Notation;

            Number_Notation_Name = Standard_Messages.Translate(Number_Notation.ToString() + "_Notation");
        }
Example #12
0
        /// <summary>
        /// Constructs item for given Calculator_Mode.
        /// </summary>
        internal Calculator_Mode_List_Item(IStandard_Messages_Translate Standard_Messages, Calculator_Mode _Calculator_Mode)
        {
            Calculator_Mode = _Calculator_Mode;

            Calculator_Mode_Name = Standard_Messages.Translate(Calculator_Mode.ToString());
        }
        /// <summary>
        /// Constructs item for given Calculation_Method.
        /// </summary>
        internal Calculation_Method_List_Item(IStandard_Messages_Translate Standard_Messages, Calculation_Method _Calculation_Method)
        {
            Calculation_Method = _Calculation_Method;

            Calculation_Method_Name = Standard_Messages.Translate(Calculation_Method.ToString());
        }