private void Uebung_1_Untertitel_1_Release() { //Garbage Collector wird gerufen - bei arbeitslosigkeit der Anwendung.... Uebung_1_Daten = null; swe = null; SWEVM = null; }
private void Uebung_1_Untertitel_1_Init() { Uebung_1_Daten = new ObservableCollection <SchwellenwertelementInput>(); Uebung_1_Input.ItemsSource = Uebung_1_Daten; swe = new Schwellenwertelement(); swe.Init(); SWEVM = new SchwellenwertelementVM(swe); SWEVM.ClearEvent += ClearEvent; SWEVM.FirstLineEvent += FirstLineEvent; SWEVM.SecondLineEvent += SecondLineEvent; SWEVM.ThirdLineEventTrue += ThirdLineEventTrue; SWEVM.ThirdLineEventFalse += ThirdLineEventFalse; SWEVM.FourthLineEvent += FourthLineEvent; SWEVM.FourthLineBatchEvent += FourthLineBatchEvent; SWEVM.BatchEvent += BatchEvent; SWEVM.ResetEvent += ResetEvent; SWE_Canvas.DataContext = SWEVM; }
private void Uebung_1_Untertitel_1_Init() { Uebung_1_Daten = new ObservableCollection<SchwellenwertelementInput>(); Uebung_1_Input.ItemsSource = Uebung_1_Daten; swe = new Schwellenwertelement(); swe.Init(); SWEVM = new SchwellenwertelementVM(swe); SWEVM.ClearEvent += ClearEvent; SWEVM.FirstLineEvent += FirstLineEvent; SWEVM.SecondLineEvent += SecondLineEvent; SWEVM.ThirdLineEventTrue += ThirdLineEventTrue; SWEVM.ThirdLineEventFalse += ThirdLineEventFalse; SWEVM.FourthLineEvent += FourthLineEvent; SWEVM.FourthLineBatchEvent += FourthLineBatchEvent; SWEVM.BatchEvent += BatchEvent; SWEVM.ResetEvent += ResetEvent; SWE_Canvas.DataContext = SWEVM; }