Beispiel #1
0
        private async void ShowEditDialog(Guid id)
        {
            var options = new ModalOptions();

            {
                options.Set(ModalOptions.__Width, "80%");
                options.Set(ModalOptions.__ID, id);
            }
            await this.Modal.ShowAsync <WeatherForecastEditor>(options);
        }
Beispiel #2
0
        private async void ShowEditDialog()
        {
            var options = new ModalOptions();

            options.Set(ModalOptions.__Width, "80%");
            await this.Modal.ShowAsync <WeatherEditor>(options);
        }
Beispiel #3
0
        private async void ShowViewDialog()
        {
            var options = new ModalOptions();

            options.Set(ModalOptions.__Width, "60%");
            await this.Modal.ShowAsync <WeatherViewer>(options);
        }
 protected override async void New()
 {
     if (this.IsModal)
     {
         var options = new ModalOptions();
         options.Set("Id", -1);
         await this.Modal.ShowAsync <WeatherForecastEditorForm>(options);
     }
     else
     {
         base.New();
     }
 }
 protected override async void View(int id)
 {
     if (this.IsModal)
     {
         var options = new ModalOptions();
         options.Set("Id", id);
         await this.Modal.ShowAsync <WeatherForecastViewerForm>(options);
     }
     else
     {
         base.View(id);
     }
 }