Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    advapiIT
    @advapiIT
    has no cancel prop
    Geert van Horrik
    @GeertvanHorrik
    hmmm, good question
    you can fix your own, if the eventargs of ApplicationClosingAsync has an e.Cancel
    you could cancel
    since it has a reutnr value
    advapiIT
    @advapiIT
    you're right
    advapiIT
    @advapiIT

    ok, this seems to work
    in mainviewmodel
    ```private async Task ApplicationClosingService_ApplicationClosingAsync(object sender, CancelEventArgs e)
    {
    var response = await messageService.ShowAsync("Sei sicuro di voler chiudere l'applicazione?",
    "Chiusura applicazione", MessageButton.YesNo, MessageImage.Question);
    if (response == MessageResult.No)
    {
    e.Cancel = true;
    }
    }

    in the closeService

    protected override async Task<bool> ClosingAsync()
    {
    IsClosing = true;

            var eventArgs = new CancelEventArgs();
            await ApplicationClosingAsync.SafeInvokeAsync(this, eventArgs);
    
            if (!eventArgs.Cancel)
                return await base.ClosingAsync();
            return false;
        }

    ```

    I want my mom.
    never been able to past code.
      protected override async Task<bool> ClosingAsync()
            {
                IsClosing = true;
    
                var eventArgs = new CancelEventArgs();
                await ApplicationClosingAsync.SafeInvokeAsync(this, eventArgs);
    
                if (!eventArgs.Cancel)
                    return await base.ClosingAsync();
                return false;
            }
    venom_aa
    @venomAA

    I want my mom.

    XD

    i want a beer and a good bbq ..working for this client has been exhausting
    advapiIT
    @advapiIT
    idem for me
    it's 2 AM here
    venom_aa
    @venomAA
    tssss.. thats bad
    but i feel you
    i have working on weekends for about 3 months
    @advapiIT did the code i posted helped you>
    ?
    advapiIT
    @advapiIT
    yup thansk
    venom_aa
    @venomAA
    np mate
    and grab a beer ...that always helps to code faster when you are working that late XD
    pretty sure geert made catel with more than a few beers on xD
    advapiIT
    @advapiIT
    with some pot!
    venom_aa
    @venomAA
    xD
    as a distraction..search the google maps for dispensaries around silicon valley... XD
    advapiIT
    @advapiIT
    lol
    u work here?
    no u're from brazil if I remembrer correctly
    venom_aa
    @venomAA
    on sillicon valley? haha i wish
    no..from mexico
    advapiIT
    @advapiIT
    ah ok sorru
    sorry
    venom_aa
    @venomAA
    np mate
    if only mexico made pot legal. would make development easier XD
    advapiIT
    @advapiIT
    same in italy
    venom_aa
    @venomAA
    pot+wine+pizza=development heaven
    XD
    but it would probably shorten our lifespan XD
    advapiIT
    @advapiIT
    I think i've just shortened it
    I go to sleep 3 hours
    see you tomorrow
    venom_aa
    @venomAA
    laters
    Geert van Horrik
    @GeertvanHorrik
    We've created project templates for both the Fluent.Ribbon and MahApps shell. More info can be found at the readme: https://github.com/wildgums/orchestra#project-templates
    advapiIT
    @advapiIT
    Good, great!
    bigworld12
    @bigworld12
    hey!
    I was wondering why are you using shared projects instead of .net standard projects for shared items
    e.g.
    https://github.com/WildGums/Orchestra/tree/develop/src/Orchestra.Shell.Shared
    bigworld12
    @bigworld12
    i think shared projects are better used for static assets that don't require code compilation, e.g. images/fonts/etc...
    bigworld12
    @bigworld12
    btw i love the new templates, ty @GeertvanHorrik