public PreparePresentationForm(PreparePresentationController controller) { m_Controller = controller; InitializeComponent(); m_Controller.OnWorkFinished += new WorkFinished(m_Controller_OnWorkFinished); m_Controller.OnProgressChanged += new WorkProgressChanged(m_Controller_OnProgressChanged); m_Controller.OnNotEnoughSpace += new Action<DisplayType>(m_Controller_OnNotEnoughSpace); m_Controller.OnReceiveAgentResourcesList += new Action<DisplayType[], int[]>(m_Controller_OnReceiveAgentResourcesList); m_Controller.OnUploadSpeed += new Action<double, string, string>(m_Controller_OnUploadSpeed); m_Controller.OnPreparationForDisplayEnded += new Action<string, bool>(m_Controller_OnPreparationForDisplayEnded); m_Controller.OnLogMessage += new Action<string>(m_Controller_OnLogMessage); }
/// <summary> /// Подготовить презентацию. /// </summary> private bool Prepare() { PresentationInfo info = PresentationController.Instance.PresentationInfo; PreparePresentationController controller = new PreparePresentationController(new PresentationInfo(info), CurrentLayout.Slide.Id); PreparePresentationForm form = new PreparePresentationForm(controller); form.StartPosition = FormStartPosition.CenterScreen; form.ShowDialog(); bool prepared = controller.PreparationStatus != ShowClient.PreparationStatus.Error; return prepared; }
public void Prepare(PresentationInfo info) { PreparePresentationController controller = new PreparePresentationController(new PresentationInfo(info)); PreparePresentationForm form = new PreparePresentationForm(controller); form.ShowDialog(); _isPresentationPrepared = controller.PreparationStatus != ShowClient.PreparationStatus.Error; }