private void hdgm_Mouseclick(object sender, EventArgs e)
        {
            typeselection typeselection = new typeselection();

            typeselection.Show();
            typeselection.part = 2;
            this.Close();
        }
        private void newp_Mouseclic(object sender, RoutedEventArgs e)
        {
            typeselection typeselection = new typeselection();

            typeselection.Show();
            typeselection.part = 1;
            this.Close();
        }
        private void back_Click(object sender, RoutedEventArgs e)
        {
            BL.Class1.ResetIo();
            typeselection typeselection = new typeselection();

            typeselection.part = 1;
            typeselection.Show();
            this.Close();
        }