コード例 #1
0
ファイル: EventPopupView.xaml.cs プロジェクト: jakkaj/DayBar
        public EventPopupView(EventPopupViewModel vm, IDeviceService deviceService)
        {
            _vm = vm;
            _deviceService = deviceService;
            DataContext = _vm;
            
            InitializeComponent();

            this.Closed += EventPopupView_Closed;
            this.Loaded += EventPopupView_Loaded;
        }
コード例 #2
0
ファイル: EventPopupView.xaml.cs プロジェクト: jakkaj/DayBar
 private void EventPopupView_Closed(object sender, EventArgs e)
 {
     _vm.Dispose();
     _vm = null;
 }