Ejemplo n.º 1
0
        private async void Btn_save_ClickAsync(object sender, EventArgs e)
        {
            PlotDataIO saverObject = new PlotDataIO();

            saverObject.progressChanged += onProgressChanged;
            plotList.setCurrentPlot(await saverObject.Save(plotList.getCurrentPlot()));
        }
Ejemplo n.º 2
0
        private async void  Btn_open_Click(object sender, EventArgs e)
        {
            PlotDataIO objectRestore = new PlotDataIO();

            objectRestore.progressChanged += onProgressChanged;
            var newEntity = await objectRestore.Restore();

            if (newEntity != null)
            {
                plotList.addPlot(newEntity);
                plotBuilder.build(newEntity);
                formLogic.changeState(APP_STATE.Opened);
            }
        }