private void MoreButton_Click(object sender, RoutedEventArgs e) { ContentPageViewModel.GetInstance().Page = MainWindowEntity.GetInstance().More; FriendButton.Foreground = (Brush)converter.ConvertFromString("#a2a2a2"); ChattingButton.Foreground = (Brush)converter.ConvertFromString("#a2a2a2"); MoreButton.Foreground = (Brush)converter.ConvertFromString("#404040"); }
public MainWindow() { InitializeComponent(); initProgram(); initBinding(); ContentPageViewModel.GetInstance().Page = MainWindowEntity.GetInstance().Friend; FriendButton.Foreground = (Brush)converter.ConvertFromString("#404040"); }
public MainWindow() { InitializeComponent(); DataContext = _entity = new MainWindowEntity { UnitCost = Settings.Default.UnitCost.ToString(CultureInfo.InvariantCulture), Culture = Settings.Default.Culture, ImageBasePath = Settings.Default.ImageBasePath, ImageBaseUrl = Settings.Default.ImageBaseUrl, GenerateZip = true, }; }
public MainWindow() { InitializeComponent(); var formats = new List <string> { "WooCommerce", "Openstore (v4)" }; DataContext = _entity = new MainWindowEntity { UnitCost = Settings.Default.UnitCost.ToString(CultureInfo.InvariantCulture), Culture = Settings.Default.Culture, ImageBasePath = Settings.Default.ImageBasePath, ImageBaseUrl = Settings.Default.ImageBaseUrl, GenerateZip = true, AvailableFormats = formats, Format = formats.First(), }; }
private void initProgram() { MainWindowEntity.GetInstance().Friend = new FriendMainWindow(); MainWindowEntity.GetInstance().Chatting = new ChattingListMainWindow(); MainWindowEntity.GetInstance().More = new MoreMainWindow(); }