Пример #1
0
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     if (CBZ.UcMainEdited)
     {
         //Warning about lost changes before closing
         if (MessageBox.Show("Du er ved at lukke projektet. Alle ugemte data mistes!", "Projekter", MessageBoxButton.OKCancel, MessageBoxImage.Warning) == MessageBoxResult.OK)
         {
             CBZ.CloseUcMain(UcMain);
         }
     }
     else
     {
         CBZ.CloseUcMain(UcMain);
     }
 }
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     if (CBZ.UcMainEdited)
     {
         //Warning about lost changes before closing
         if (MessageBox.Show("Vil du lukke Udbudsformer? Alle ugemte data mistes.", "Udbudsformen", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
         {
             CBZ.CloseUcMain(UcMain);
         }
     }
     else
     {
         CBZ.CloseUcMain(UcMain);
     }
 }
Пример #3
0
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     if (CBZ.UcMainEdited)
     {
         //Warning about lost changes before closing
         if (MessageBox.Show("Du er ved at lukke 'Opret Entreprise'. Alle ugemte data mistes!", "Entrepriser", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
         {
             CBZ.CloseUcMain(UcMain);
         }
     }
     else
     {
         CBZ.CloseUcMain(UcMain);
     }
 }
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     if (CBZ.UcMainEdited)
     {
         //Warning before cancelling
         if (MessageBox.Show("Vil du lukke 'Rediger SagsId'? Alle ugemte data mistes", "Projekter", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
         {
             CBZ.CloseUcMain(UcMain);
         }
     }
     else
     {
         CBZ.CloseUcMain(UcMain);
     }
 }
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     if (CBZ.UcMainEdited)
     {
         //Warning about lost changes before closing
         if (MessageBox.Show("Vil du lukke Vælg Modtagere?", "Udbudsbreve", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
         {
             CBZ.CloseUcMain(UcMain);
         }
     }
     else
     {
         CBZ.CloseUcMain(UcMain);
     }
 }
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show("Vil du lukke Visning af Underentrepenører.", "Underentrepenører", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
     {
         CBZ.CloseUcMain(UcMain);
     }
 }
Пример #7
0
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show("Vil du lukke Visning af Entrepriselisten.", "Entrepriser", MessageBoxButton.YesNo, MessageBoxImage.Information) == MessageBoxResult.Yes)
     {
         CBZ.CloseUcMain(UcMain);
     }
 }
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     if (ForcedPassWordChange)
     {
         MessageBox.Show("Passwordet skal ændres, før du kan benytte programmet", "Password", MessageBoxButton.OK, MessageBoxImage.Error);
     }
     else if (CBZ.UcMainEdited && !ForcedPassWordChange)
     {
         //Warning about lost changes before closing
         if (MessageBox.Show("Passwordet er ikke ændret. Alle ugemte data mistes?", "Password", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
         {
             CBZ.CloseUcMain(UcMain);
         }
     }
     else
     {
         CBZ.CloseUcMain(UcMain);
     }
 }
        private void ButtonClose_Click(object sender, RoutedEventArgs e)
        {
            if (CBZ.UcMainEdited)
            {
                //Warning about lost changes before closing
                if (MessageBox.Show("Du er ved at lukke 'Opret Bruger'. Data der ikke er glemt, bliver mistet.", "Brugere", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
                {
                    //Refresh Contacts list
                    CBZ.RefreshList("Users");
                    CBZ.TempUser = new User();

                    CBZ.CloseUcMain(UcMain);
                }
            }
            else
            {
                //Refresh Contacts list
                CBZ.RefreshList("Users");
                CBZ.TempUser = new User();

                CBZ.CloseUcMain(UcMain);
            }
        }
        private void ButtonClose_Click(object sender, RoutedEventArgs e)
        {
            if (CBZ.TempContact != new Contact())
            {
                //Warning about lost changes before closing
                if (MessageBox.Show("Vil du lukke 'Slet Kontakt'?", "Kontakter", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
                {
                    //Refresh Contacts list
                    CBZ.RefreshList("Contacts");
                    CBZ.TempContact = new Contact();

                    CBZ.CloseUcMain(UcMain);
                }
            }
            else
            {
                //Refresh Contacts list
                CBZ.RefreshList("Contacts");
                CBZ.TempContact = new Contact();

                CBZ.CloseUcMain(UcMain);
            }
        }
Пример #11
0
        private void ButtonClose_Click(object sender, RoutedEventArgs e)
        {
            if (CBZ.UcMainEdited)
            {
                //Warning about lost changes before closing
                if (MessageBox.Show("Vil du lukke Vælg Modtagere?", "Luk Vælg Modtagere", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
                {
                    //Update lists and fields
                    CBZ.TempZipTown = new ZipTown();
                    CBZ.RefreshList("ZipTowns");

                    CBZ.CloseUcMain(UcMain);
                }
            }
            else
            {
                //Update lists and fields
                CBZ.TempZipTown = new ZipTown();
                CBZ.RefreshList("ZipTowns");

                CBZ.CloseUcMain(UcMain);
            }
        }
Пример #12
0
        private void ButtonClose_Click(object sender, RoutedEventArgs e)
        {
            if (CBZ.TempBuilder != new Builder())
            {
                //Warning about lost changes before closing
                if (MessageBox.Show("Du er ved at lukke 'Opret Bygherre'. Alle ugemte data mistes", "Bygherrer", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes)
                {
                    //Refresh Builders
                    CBZ.RefreshList("Builders");
                    CBZ.TempBuilder = new Builder();

                    CBZ.CloseUcMain(UcMain);
                }
            }
            else
            {
                //Refresh Builders
                CBZ.RefreshList("Builders");
                CBZ.TempBuilder = new Builder();

                CBZ.CloseUcMain(UcMain);
            }
        }