private void MainWindow_Loaded(object sender, RoutedEventArgs e) { m_ShareMemory = new ShareMemory(); if (m_ShareMemory != null) { m_ShareMemory.Init(true, "Test_Memory"); m_ShareMemory.SetCallBackFunc(ShareMemoryNotifyInfo); //m_ShareMemory.WriteShareMemory("Test_Infdo", 10); m_ShareMemory.OnRun(); } m_3DUserControl = new _3DUserControl(this); m_3DInterface = new CPlusDLLLoader(); m_WndData = new Window_CoorData(this); IntPtr hwnd = new WindowInteropHelper(this).Handle; m_3DRenderWnd = new _3DRenderWindow(m_3DInterface, this); m_3DRenderWnd.Visibility = Visibility.Visible; m_3DRenderWnd.Owner = this; ChangWindowSize(); CompositionTarget.Rendering += new EventHandler(WindowPositionChange); //FileLoadProgressBar.Visibility = Visibility.Visible; // FileLoadProgressBar.Value = 100; }
private void MenuItem_Click(object sender, RoutedEventArgs e) { if (m_3DUserControl == null) { m_3DUserControl = new _3DUserControl(this); } if (m_3DUserControl != null) { m_3DUserControl.Show(); } }