public APIKeyPromptWindow()
 {
     InitializeComponent();
     WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
     this.statiKaniApp     = (StatiKani.App)Application.Current;
     DataObject.AddPastingHandler(this.APIKeyPart1Input_TextBox, this.APIKeyPart1Input_TextBox_OnPase);
     DataObject.AddPastingHandler(this.APIKeyPart2Input_TextBox, this.APIKeyPart2Input_TextBox_OnPase);
     DataObject.AddPastingHandler(this.APIKeyPart3Input_TextBox, this.APIKeyPart3Input_TextBox_OnPase);
     DataObject.AddPastingHandler(this.APIKeyPart4Input_TextBox, this.APIKeyPart4Input_TextBox_OnPase);
     DataObject.AddPastingHandler(this.APIKeyPart5Input_TextBox, this.APIKeyPart5Input_TextBox_OnPase);
     this.apiKeyInputTextBoxes = new TextBox[5] {
         this.APIKeyPart1Input_TextBox,
         this.APIKeyPart2Input_TextBox,
         this.APIKeyPart3Input_TextBox,
         this.APIKeyPart4Input_TextBox,
         this.APIKeyPart5Input_TextBox
     };
 }
Exemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     this.statiKaniApp           = (StatiKani.App)Application.Current;
     this.UserInfo_Label.Content = "User: "******"\tLevel: " + this.statiKaniApp.User.Level;
 }