Пример #1
0
 private void style(Style_Template_Form stf) // Origin Style
 {
     this.Font_Fore_Color = stf.Fore_Color;
     this.Cell_Back_Color = stf.Back_Color;
     this.Font_Name       = stf.Font_Name;
     this.Font_Size       = stf.Font_Size;
 }
Пример #2
0
        private void Rows(DataGridViewRow Location, string Type_Style = null) // Style Rows DataGridView
        {
            Style_Template_Form stf = new Style_Template_Form();

            stf.Style(Type_Style);
            style(stf);
            Location.DefaultCellStyle.ForeColor = Color.FromName(this.Font_Fore_Color);
            Location.DefaultCellStyle.BackColor = Color.FromName(this.Cell_Back_Color);
            Location.DefaultCellStyle.Font      = new Font(this.Font_Name, this.Font_Size);
        }