Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 private void MenuItem_Click_Data(object sender, RoutedEventArgs e)
 {
     if (m_WndData == null)
     {
         m_WndData = new Window_CoorData(this);
     }
     if (m_WndData != null)
     {
         m_WndData.Show();
     }
 }