public MainWindow()
 {
     InitializeComponent();
     Service.TXTFile tf = new Service.TXTFile();
     tf.create("Player.txt");
     tf.create("ListEnnemy.txt");
     tf.create("GameEnnemy.txt");
     reader();
 }
 public StatPlayerInventory()
 {
     InitializeComponent();
     Service.TXTFile tf = new Service.TXTFile();
     tf.create("ListInventory.txt");
     readerPI();
     readerLI();
 }
 public PlayerCapacity()
 {
     InitializeComponent();
     Service.TXTFile tf = new Service.TXTFile();
     tf.create("ListCapacity.txt");
     readerPC();
     readerLC();
 }
        private void btnAddPlayer_Click(object sender, RoutedEventArgs e)
        {
            Service.TXTFile tf = new Service.TXTFile();
            tf.create("PlayerCreation.txt");
            WAddPlayer adp = new WAddPlayer();

            adp.Show();
            this.Close();
        }