Пример #1
0
 /// <summary>
 /// Загрузка настроек интерфейса
 /// </summary>
 private void LaunchInterfaceSettings(
     System.Drawing.Color MenuBackColor,
     System.Drawing.Color ButtonBackColor,
     System.Drawing.Color ButtonPanelBackColor,
     System.Drawing.Color FooterBackColor,
     System.Drawing.Color HeaderBackColor,
     System.Drawing.Color ForeColor
     )
 {
     this.InterfaceMode = InterfaceSettings.getInstance(
         MenuBackColor,
         ButtonBackColor,
         ButtonPanelBackColor,
         FooterBackColor,
         HeaderBackColor,
         ForeColor
         );
 }
Пример #2
0
 /// <summary>
 /// Прорисовка вкладок с ГОСТ...
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tabControl7_DrawItem(object sender, DrawItemEventArgs e)
 {
     InterfaceSettings.Drawing(tabControl7, e);
 }
Пример #3
0
 public async Task UpdateSettings(InterfaceSettings settings)
 {
     _sharedViewModel.ApplicationConfiguration.Interface = new InterfaceSettings(settings);
     await SaveToPCL();
 }
Пример #4
0
 public InterfaceViewModel(ContentView view, string name) : base(name, view)
 {
     _configurationService = DependencyService.Resolve <ConfigurationService>();
     _interfaceSettings    = _configurationService.GetSharedConfiguration().Interface;
 }