private void AddPowerPointControl(WindowsPoint location, string presenterFile) { var control = new ShowComposer.UserControls.PowerPointControl(); control.IsRelativePath = false; control.PresenterFile = presenterFile; ((PowerPointControl)control).OnRemove += DeskLayout_OnRemove; Canvas.SetTop(control, location.Y); Canvas.SetLeft(control, location.X); AddCanvasElement(control, new WindowsPoint()); }
private void AddPowerPointControl(PowerPointInfo info) { // if (Properties.Settings.Default.AudioPlaybackOneOutput) // AudioControls.All((i) => i.Stop()); var control = new ShowComposer.UserControls.PowerPointControl(); control.IsRelativePath = info.IsRelativePath; control.PresenterFile = info.PresenterFile; ((PowerPointControl)control).OnRemove += DeskLayout_OnRemove; Canvas.SetTop(control, info.Top); Canvas.SetLeft(control, info.Left); AddCanvasElement(control, new WindowsPoint()); }