Beispiel #1
0
        public SelParticle(IAttrRow iRowParticle)
        {
            s_pW = this;
            m_iRowParticle = iRowParticle;
            m_curParticle = null;

            InitializeComponent();

            this.Owner = MainWindow.s_pW;
            createViewDoc();
            refreshParticleTree();
        }
Beispiel #2
0
        private void mx_sel_Click(object sender, RoutedEventArgs e)
        {
            if (m_parent.m_basic != null && m_parent.m_basic is Basic)
            {
                switch(m_name)
                {
                    case "skin":
                        {
                            BoloUI.SelSkin winSkin = new BoloUI.SelSkin(m_parent.m_xmlCtrl.m_openedFile.m_path, m_parent.m_basic.m_xe.OuterXml, this);

                            winSkin.ShowDialog();

                            if (!BoloUI.SelSkin.s_pW.m_msgMng.m_GLHost.m_process.HasExited)
                            {
                                BoloUI.SelSkin.s_pW.m_msgMng.m_GLHost.m_process.Kill();
                                BoloUI.SelSkin.s_pW = null;
                            }
                        }
                        break;
                    default:
                        break;
                }
            }
            if (m_parent.m_basic != null && m_parent.m_basic is ResBasic)
            {
                switch (m_name)
                {
                    case "image":
                        {
                            BoloUI.SelImage winImage = new BoloUI.SelImage(this);

                            winImage.ShowDialog();
                        }
                        break;
                    case "ImageName":
                        {
                            BoloUI.SelImage winImage = new BoloUI.SelImage(this);

                            winImage.ShowDialog();
                        }
                        break;
                    case "particleName":
                        {
                            BoloUI.SelParticle winParticle = new BoloUI.SelParticle(this);

                            winParticle.ShowDialog();
                        }
                        break;
                    default:
                        break;
                }
            }
        }
Beispiel #3
0
 private void mx_root_Unloaded(object sender, RoutedEventArgs e)
 {
     s_pW = null;
 }
Beispiel #4
0
        private void mx_root_Loaded(object sender, RoutedEventArgs e)
        {
            s_pW = this;
            HwndSource source = PresentationSource.FromVisual(this) as HwndSource;

            if (source != null)
            {
                source.AddHook(WndProc);
            }

            m_msgMng = new MsgManager();
            mx_viewFrame.Child = m_msgMng.m_GLHost;
            m_msgMng.m_GLHost.MessageHook += new HwndSourceHook(ControlMsgFilter);
        }