12345678910111213141516171819202122232425262728293031323334353637383940 |
- using PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageBates;
- using PDF_Master.ViewModels.EditTools.Bates;
- using System.Windows.Controls;
- using System.Windows.Media;
- namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageBates
- {
- /// <summary>
- /// Interaction logic for HomePageBatesCreateContent
- /// </summary>
- public partial class HomePageBatesCreateContent : UserControl
- {
- private HomePageBatesCreateContentViewModel viewModel;
- public HomePageBatesCreateContent()
- {
- InitializeComponent();
- viewModel = this.DataContext as HomePageBatesCreateContentViewModel;
- cusColor.SelectedColorHandler += cusColor_SelectedColor;
- }
- private void cusColor_SelectedColor(object sender, Color e)
- {
- var data = this.DataContext as HomePageBatesCreateContentViewModel;
- if (data != null)
- {
- data.SelectedColorChangedCommand?.Execute(e);
- }
- }
- private void ADDBates_Click(object sender, System.Windows.RoutedEventArgs e)
- {
- viewModel.ADDBatesCommand?.Execute();
- }
- private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
- {
- contextMenu.IsOpen = true;
- }
- }
- }
|