예제 #1
0
 public void ShowAccepts()
 {
     PageChanger.ChangeOfBuyMethods.Visibility = Visibility.Visible;
     PageChanger.StartPageMethods.CurrentCase.GetParts();
     PageChanger.ChangeOfBuyMethods.CurrentPart = new Part();
     PageChanger.ChangePageTo("ChangeOfBuy");
 }
 public void CreateCase()
 {
     CurrentCase = new Case();
     PageChanger.OpretReparationMethods.Visibility = System.Windows.Visibility.Hidden;
     PageChanger.OpretReparationMethods.SaveBtnTxt = "Opret";
     PageChanger.ChangePageTo("OpretReparation");
 }
 public void OpenCase(Case current)
 {
     PageChanger.OpretReparationMethods.Visibility = System.Windows.Visibility.Visible;
     PageChanger.OpretReparationMethods.SaveBtnTxt = "Gem";
     PageChanger.ValidationCommand.ErrorMessage    = "";
     CurrentCase = current;
     PageChanger.ChangePageTo("OpretReparation");
 }
예제 #4
0
        public void DeleteCase()
        {
            bool WarningBox = PageChanger.DialogBox("Vil du slette ?", "Warning", MessageBoxButton.YesNo);

            if (WarningBox)
            {
                PageChanger.StartPageMethods.CurrentCase.deleteCase();
                PageChanger.StartPageMethods.Cases.Remove(PageChanger.StartPageMethods.CurrentCase);
                PageChanger.ChangePageTo("StartPage");
            }
        }
예제 #5
0
        public void SaveCase()
        {
            if (Visibility == Visibility.Hidden)
            {
                PageChanger.StartPageMethods.CurrentCase.createCase();
                PageChanger.StartPageMethods.CurrentCase.Refresh();
                PageChanger.StartPageMethods.Cases.Add(PageChanger.StartPageMethods.CurrentCase);
            }
            else
            {
                PageChanger.StartPageMethods.CurrentCase.updateCase();
                PageChanger.StartPageMethods.CurrentCase.Refresh();
            }
            bool WarningBox = PageChanger.DialogBox("Det er nu blevet gemt!", "Information", MessageBoxButton.OK);

            PageChanger.ChangePageTo("StartPage");
        }
 public void GoBack()
 {
     PageChanger.StartPageMethods.CurrentCase.GetParts();
     PageChanger.ChangePageTo("ChangeOfBuy");
 }
 public void Close()
 {
     PageChanger.ChangePageTo("OpretReparation");
 }
 public void GoToSend()
 {
     PageChanger.ChangePageTo("SendUpdate");
 }
 public void GoBack()
 {
     PageChanger.ChangePageTo("OpretReparation");
 }
예제 #10
0
 public void GoBack()
 {
     PageChanger.ChangePageTo("StartPage");
 }