public void onShow(ExportWin _parentWin) { parentWin = _parentWin; lblProgress.Content = ""; progressPrecent = 0; ParticleEditModel md = MainModel.ins.particleEditModel; if (md == null) { return; } txtWidth.Text = md.width.ToString(); txtHeight.Text = md.height.ToString(); txtFps.Text = md.fps.ToString(); txtFps.Text = md.fps.ToString(); txtFilePath.Text = md.path; txtFileName.Text = md.name + ".png"; maxFrameIdx = md.frameCount - 1; sldStartFrame.Minimum = 0; sldStartFrame.Maximum = maxFrameIdx; sldStartFrame.Value = 0; sldEndFrame.Minimum = 0; sldEndFrame.Maximum = maxFrameIdx; sldEndFrame.Value = maxFrameIdx; txtStartFrame.Text = "0"; txtEndFrame.Text = maxFrameIdx.ToString(); }
private void btnExportProject_Click(object sender, RoutedEventArgs e) { EventServer.ins.onPreOpenExportWin(); ExportWin win = new ExportWin(); win.show(this, nowType); EventServer.ins.onCloseExportWin(); }