예제 #1
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";
        }
예제 #2
0
        public Annihilator_Window_Bindable_Resources_Base(Font_Size_Type _Font_Size_Type, Colour_Palette_Type _Colour_Palette_Type)
        {
            Font_Size_Type = _Font_Size_Type;

            Colour_Palette_Type = _Colour_Palette_Type;

            Set_Font_Size_Type();
        }
 /// <summary>
 /// Constructs new Options class reading and setting resorcess for MainWindow .
 /// </summary>
 public Options_Storage(Calculator_Mode calculator_Mode, Calculation_Method calculation_Method,
                        double intitial_Height, double intial_Width, Number_Notation number_Notation, string comma_Type,
                        Font_Size_Type font_Size_Type, Colour_Palette_Type colour_Palette_Type, sbyte numeral_System_Code, Languages current_Language)
     : this(calculator_Mode, calculation_Method, intitial_Height, intial_Width, number_Notation, font_Size_Type, colour_Palette_Type)
 {
     Comma_Type          = comma_Type;
     Numeral_System_Code = numeral_System_Code;
     Current_Language    = current_Language;
     //set_language
 }
예제 #4
0
        private void Font_Size_List_ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Remove_Obsolete_Command <Change_Font_Size_Option_Command>();

            Font_Size_Type New_Font = (Font_Size_Type)Font_Size_List_ComboBox.SelectedIndex;

            if (New_Font != Options_Provider.Font_Size_Type)
            {
                Option_Change_Command_List.Add(new Change_Font_Size_Option_Command(New_Font));
            }
        }
        private Font_Size_List_Item Set_Current_Font_Size_In_ComboBox(Font_Size_Type current_Font_Size)
        {
            foreach (Font_Size_List_Item item in Font_Size_Items_List)
            {
                if (item.Font_Size == current_Font_Size)
                {
                    return(item);
                }
            }

            return(null);
        }
 public Options_Storage(Calculator_Mode calculator_Mode, Calculation_Method calculation_Method,
                        double intitial_Height, double intial_Width, Number_Notation number_Notation,
                        Font_Size_Type font_Size_Type, Colour_Palette_Type colour_Palette_Type)
 {
     Calculator_Mode     = calculator_Mode;
     Calculation_Method  = calculation_Method;
     Initial_Height      = intitial_Height;
     Initial_Width       = intial_Width;
     Number_Notation     = number_Notation;
     Font_Size_Type      = font_Size_Type;
     Colour_Palette_Type = colour_Palette_Type;
 }
        /// <summary>
        /// Constructs new Font_Size_List_Context for given OptionsWindow.
        /// </summary>
        internal Font_Size_List_Context(IStandard_Messages_Translate Standard_Messages, Font_Size_Type _Font_Size_Type)
        {
            Font_Size_Items_List = Set_Font_Size_List_Items(Standard_Messages);

            Font_Size_List_ComboBox_SelectedItem =
                Set_Current_Font_Size_In_ComboBox(_Font_Size_Type);
        }
예제 #8
0
 /// <summary>
 /// Constructs new command for changing font size type in Options class.
 /// </summary>
 public Change_Font_Size_Option_Command(Font_Size_Type _Font_Size_To_Change)
 {
     Font_Size_To_Change = _Font_Size_To_Change;
 }
        public void Set_Font_Size_Type(Font_Size_Type new_Font_Size_Type)
        {
            Font_Size_Type = new_Font_Size_Type;

            MainWindow.Push_GUI_Recalculation();
        }