Search results for query: *

  • Users: lukas9669
  • Content: Threads
  • Order by date
  1. L

    I made a password generator and I think my code isn´t the best readable. Are there any better ways to do it?

    This is just the UI. The logic is fine. static void Main(string[] args) { Console.WriteLine("This is a passwordgenerator."); Console.WriteLine("Enter the length of your password (12 signs recommended): "); int length; try {...
  2. L

    I'm looking for reviews for my code

    I'm a C# beginner and I don't really know how good my program is. I wrote a program that shows the user the weather at their location. I would be very grateful if someone would read it and give me a rating. you can find it here: https://github.com/LukasEber/WeatherApp
  3. L

    C# blazor await function to get property

    I am programming a C# blazor game, and there is a method that sets a property in a class. If the button, which calls the method was clicked, on the next page the property will be printed. Here is a simplified example: class A{ public string test {get; set;} } class B{ public void...
  4. L

    Sharing variables or properties between classes?

    Is there a way to share variables or properties between to classes? For example I have a blazor web app with 2 pages and 2 partial classes. How can I share the variable A from class 1 with class 2? Is there a way to do this?
  5. L

    How to lock TicTacToe matchfield after a player won?

    I am actually programming a tic tac toe game with the blazor framework and I have already a function to lock the button if it was clicked. It looks like this: public class ElementOfMatchField { public int Row { get; set; } public int Column { get; set; } public...
  6. L

    Resolved Blazor get html element using c# code

    I wanna build a Tic Tac Toe Blazor game. To print the fields I am using html buttons and a foreach loop: @if(MatchField != null) { @foreach(var field in MatchField) { <span> <button @onclick="() => PrintSymbolOnButton(field)" >...
  7. L

    Blazor Server Side Web Application with authorization?

    I have a Blazor Server Side Web Application that uses the default authorization and authentication. app.UseAuthentication() app.UseAuthorization() I can protect my pages with @attribute [Authorize] I have a login page with anonymous access to authenticate. This works fine. Now I need a...
Back
Top Bottom