public AdminWindow()
 {
     InitializeComponent();
     this.Resources = MainFunctions.GetLanguageResource();
 }