protected override void OnScriptStart() { base.OnScriptStart(); _control = gameObject.GetComponent<ZSUFrameworkControlProxy>().FrameworkControl; _target = TargetProxy.FrameworkControl; }
/// <summary> /// Inits everything and starts the tracking engine. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Window_Loaded(object sender, RoutedEventArgs e) { framework = TrackingHelper.GetTracking(canvas1, currentTrackingType); framework.OnProcessUpdates += new FrameworkControl.ProcessUpdatesDelegate(this.DisplayPoints); framework.Start(); window = this; //윈도우 등록 MainElement = canvas1; startThread.start(); Jobs.Instance.setInit(canvas1, this, framework, new SmartArea()); //if (AppConfig.StartFullscreen) toggleFullscreen(); // // this.canvas1.Width = this.Width; // this.canvas1.Height = this.Height; takeBackground(); addControl(); //canvas1.Children.Add(p); // // LoadMyPictures(); // LoadMyVideos(); // LoadAllFeeds(); // //PosAll(); //DelayedRotate(4000); }
public void SetFrameworkControl(FrameworkControl newControl) { LoadSerializationBarrier(); var existingControl = this._nonSerialized.FrameworkControl; if (existingControl == newControl) { return; } UnloadVisualizer(true, true); if (existingControl != null) { existingControl.UserObject = null; } this._nonSerialized.FrameworkControl = newControl; if (newControl == null) { return; } newControl.UserObject = this.gameObject; if (FrameworkControl.Visible) { LoadVisualizer(true); } }
public void setInit(Canvas _main, Window target, FrameworkControl fw, SmartArea s) { main = _main; window = target; framework = fw; _sArea = s; }
public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle) { main = _main; window = target; framework = fw; thisCont = cont; thisAngle = angle; }
protected override void OnScriptStart() { base.OnScriptStart(); _control = gameObject.GetComponent<ZSUFrameworkControlProxy>().FrameworkControl; _initialSize = _control.LayoutAttributes.Size; _initialScale = transform.lossyScale; }
public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, string _ip, double angle) { main = _main; window = target; framework = fw; thisCont = cont; userIP = _ip; gridRotateTrans.Angle = angle; }
public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo) { objInfo = _objInfo; imgPath = objInfo.Path; img.Source = new BitmapImage(new Uri(imgPath, UriKind.Absolute)); main = _main; window = target; framework = fw; thisCont = cont; thisAngle = angle; }
public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, string _ip) { main = _main; window = target; framework = fw; thisCont = cont; thisAngle = angle; userIP = _ip; t = new Thread(new ThreadStart(thread_recv)); t.Start(); }
public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo) { main = _main; window = target; framework = fw; thisCont = cont; thisAngle = angle; objInfo = _objInfo; ReadPPTfile(objInfo.FilePath); MakePPTIamge(objInfo.DirPath); ViewPPTImage(objInfo.DirPath, 0); }
public void setInit(Canvas _main, Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, string _ip) { main = _main; window = target; framework = fw; thisCont = cont; thisAngle = angle; userIP = _ip; thisPath = path + userIP + "\\"; currentPath += userIP + "\\MyBox\\"; makeDir(); setListBox(path + "MyBox\\"); }
public void setInit(Canvas _main, System.Windows.Window target, FrameworkControl fw, MTSmoothContainer cont, double angle, ObjectInfo _objInfo) { main = _main; window = target; framework = fw; thisCont = cont; thisAngle = angle; string wordDocument = _objInfo.FilePath; string convertedXpsDoc = string.Concat(System.IO.Path.GetTempPath(), "\\", Guid.NewGuid().ToString(), ".xps"); XpsDocument xpsDocument = ConvertWordToXps(wordDocument, convertedXpsDoc); if (xpsDocument == null) { return; } documentviewWord.Document = xpsDocument.GetFixedDocumentSequence(); // System.Windows.Controls.ContentControl cc = documentviewWord.Template.FindName("PART_FindToolBarHost", documentviewWord) as System.Windows.Controls.ContentControl; // cc.Visibility = Visibility.Collapsed; }
/// <summary> /// Inits everything and starts the tracking engine. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Window_Loaded(object sender, RoutedEventArgs e) { framework = TrackingHelper.GetTracking(canvas1, currentTrackingType); framework.OnProcessUpdates += new FrameworkControl.ProcessUpdatesDelegate(this.DisplayPoints); framework.Start(); if (AppConfig.StartFullscreen) { toggleFullscreen(); } this.canvas1.Width = this.Width; this.canvas1.Height = this.Height; takeBackground(); LoadMyPictures(); LoadMyVideos(); LoadAllFeeds(); PosAll(); //DelayedRotate(4000); }
public void setInit(FrameworkControl fw, MTSmoothContainer cont) { framework = fw; thisCont = cont; bt_close.Visibility = Visibility.Visible; }
private void UpdateControlTree(FrameworkControl control) { control.Update(); foreach (FrameworkControl child in control.Children) { UpdateControlTree(child); } }
public static string Serialize(FrameworkControl frameworkControl) { var settings = GetJsonSerializerSettings(); string frameworkControlAsString = JsonConvert.SerializeObject(frameworkControl, settings); return frameworkControlAsString; }
public FrameworkControlViewContent(FrameworkControl widget, string contentId, string contentLabel = "") : base(widget, contentId, contentLabel) { this.settings = new ControlSettings(); OnInit(); }