private void SuitDemandingButton_Click(object sender, RoutedEventArgs e) { DemandTheSuitWindow suitDemandingWIndow = new DemandTheSuitWindow() { Owner = this, }; suitDemandingWIndow.SuitDemandingWindowClosing += SuitDemandingWIndow_SuitDemandingWindowClosing; suitDemandingWIndow.ShowDialog(); MemoryManagement.FlushMemory(); }
//method for handling with suit demanding window private void SuitDemandingWindowHandle() { jackOrAceInCardsToPutOnTheTable = true; Windows.DemandTheSuitWindow DemandingWindow = new DemandTheSuitWindow() { Owner = this, }; DemandingWindow.SuitDemandingWindowClosing += DemandingWindow_SuitDemandingWindowClosing; DemandingWindow.ShowDialog(); MemoryManagement.FlushMemory(); }