private void SubmitButtonClick() { try { ResultPageView resultPage = new ResultPageView(); CloseAction(); resultPage.ShowDialog(); } catch (Exception ex) { throw; } }
private void SubmitButtonClick() { try { if (CommonData.SkipListItems.Count > 0 && !CommonData._time.ToString().Equals("-00:00:01")) { typeofquestion = CommonData.SkipListItems[0].TypeOfQuestion; FactoryGetSkippedObjectName factory1 = new FactoryGetSkippedObjectName(); Window window = factory1.GetClassObject(typeofquestion, true); CloseAction(); window.ShowDialog(); } else { ResultPageView resultPage = new ResultPageView(); CloseAction(); resultPage.ShowDialog(); } } catch (Exception) { throw; } }