| 1234567891011121314151617181920212223242526272829303132 |
- using System.Windows.Controls;
- using TeamAAS_VP.ViewModels.Product;
- namespace TeamAAS_VP.Views.Product
- {
- /// <summary>
- /// Interaction logic for PlcPointParams
- /// </summary>
- public partial class PlcPointParams : UserControl
- {
- PlcPointParamsViewModel VM;
- public PlcPointParams()
- {
- InitializeComponent();
- VM = DataContext as PlcPointParamsViewModel;
- VM.PropertyChanged += VM_PropertyChanged;
- this.display.HorizontalScrollBar = false;
- this.display.VerticalScrollBar = false;
- this.display.AutoFit = true;
- this.display.BackColor = System.Drawing.SystemColors.ActiveCaption;
- }
- private void VM_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
- {
- if (e.PropertyName == "Image")
- {
- this.display.Image = VM.Image;
- }
- }
- }
- }
|