public LoginWindow(MainWindow group)
        {
            this.mainWindow = group;
            InitializeComponent();

            group.IsEnabled = false;
            this.isDirect = false;

            if (File.Exists(Client.pathToDir + serverFile))
            {
                textBoxServer.Text = File.ReadAllText(Client.pathToDir + serverFile);
            }
            else
            {
                File.WriteAllText(Client.pathToDir + serverFile, textBoxServer.Text);
            }

            if(File.Exists(Client.pathToDir + userFile))
            {
                textBoxUsername.Text = File.ReadAllText(Client.pathToDir + userFile);
            }
            else
            {
                File.WriteAllText(Client.pathToDir + userFile, textBoxUsername.Text);
            }
        }
 public FileWindow(List<string> files, MainWindow mainWindow)
 {
     InitializeComponent();
     this.mainWindow = mainWindow;
     foreach(string item in files)
     {
         listBoxFiles.Items.Add(item);
     }
 }
        public ConfirmUsers(List<string> unconfirmedUsers, MainWindow mainWindow)
        {
            InitializeComponent();
            this.mainWindow = mainWindow;

            foreach(string currUser in unconfirmedUsers)
            {
                listOfUsers.Items.Add(currUser);
            }
        }