public AddUser() { InitializeComponent(); this.DataContext = this; main = this; var color = (Color)ColorConverter.ConvertFromString(AppVariable.ReadSetting(AppVariable.SkinCode)); var brush = new SolidColorBrush(color); BorderColor = brush; }
public About() { InitializeComponent(); DataContext = this; History = Properties.Resources.History; AppName = AppVariable.getAppTitle; AppVersion = AppVariable.getAppVersion; var color = (Color)ColorConverter.ConvertFromString(AppVariable.ReadSetting(AppVariable.SkinCode)); var brush = new SolidColorBrush(color); TimeColor = brush; }
private void LoadSettings() { if (AppVariable.ReadBoolSetting(AppVariable.CredentialLogin)) { swLogin.IsChecked = true; } else { swLogin.IsChecked = false; } if (AppVariable.ReadBoolSetting(AppVariable.Autorun)) { swAutoStart.IsChecked = true; } else { swAutoStart.IsChecked = false; } if (AppVariable.ReadBoolSetting(AppVariable.AutoSendReport)) { swAutoReport.IsChecked = true; } else { swAutoReport.IsChecked = false; } var hb_Menu = AppVariable.ReadBoolSetting(AppVariable.HamburgerMenu); Hamborger_Menu.IsChecked = hb_Menu; var color = (Color)ColorConverter.ConvertFromString(AppVariable.ReadSetting(AppVariable.SkinCode)); var brush = new SolidColorBrush(color); color1.Background = brush; }
public Attendancelist() { InitializeComponent(); this.DataContext = this; main = this; strDate = pc.GetYear(DateTime.Now).ToString("0000") + "/" + pc.GetMonth(DateTime.Now).ToString("00") + "/" + pc.GetDayOfMonth(DateTime.Now).ToString("00"); txtDate.Text = string.Format("تاریخ امروز : {0} ", strDate); var color = (System.Windows.Media.Color)System.Windows.Media.ColorConverter.ConvertFromString(AppVariable.ReadSetting(AppVariable.SkinCode)); var brush = new SolidColorBrush(color); BorderColor = brush; }