public ctlMainConfig()
 {
     InitializeComponent();
     RegisterCallbacks();
     HideControls();
     m_eView = eConfView.eNone;
     ClickViewConfMachine(null, null);
     UVDLPApp.Instance().m_gui_config.AddControl("guimachineconfig", ctlMachineConfig1);
     UVDLPApp.Instance().m_gui_config.AddControl("guimachineconfigparent", pnlMachineConfig);
 }
 public ctlMainConfig()
 {
     InitializeComponent();
     RegisterCallbacks();
     HideControls();
     m_eView = eConfView.eNone;
     ClickViewConfMachine(null, null);
     UVDLPApp.Instance().m_gui_config.AddControl("guimachineconfig", ctlMachineConfig1);
     UVDLPApp.Instance().m_gui_config.AddControl("guimachineconfigparent", pnlMachineConfig);
 }
Exemple #3
0
        public ctlMainConfig()
        {
            InitializeComponent();
            RegisterCallbacks();
            HideControls();
            m_eView = eConfView.eNone;
            ClickViewConfMachine(null, null);
            UVDLPApp.Instance().m_gui_config.AddControl("guimachineconfig", ctlMachineConfig1);
            UVDLPApp.Instance().m_gui_config.AddControl("guimachineconfigparent", pnlMachineConfig);
            UVDLPApp.Instance().m_gui_config.AddControl("ctlSliceProfileConfig", ctlSliceProfileConfig);
            UVDLPApp.Instance().m_gui_config.AddControl("ctlToolpathGenConfig1", ctlToolpathGenConfig1); // the slice profile settings
            UVDLPApp.Instance().m_gui_config.AddControl("pnlToolpathGenConfig", pnlToolpathGenConfig);   // the slice profile settings parent

            //
        }
        public ctlMainConfig()
        {
            InitializeComponent();
            RegisterCallbacks();
            HideControls();
            m_eView = eConfView.eNone;
            ClickViewConfMachine(null, null);
            UVDLPApp.Instance().m_gui_config.AddControl("guimachineconfig", ctlMachineConfig1);
            UVDLPApp.Instance().m_gui_config.AddControl("guimachineconfigparent", pnlMachineConfig);
            UVDLPApp.Instance().m_gui_config.AddControl("ctlSliceProfileConfig", ctlSliceProfileConfig);
            UVDLPApp.Instance().m_gui_config.AddControl("ctlToolpathGenConfig1", ctlToolpathGenConfig1); // the slice profile settings
            UVDLPApp.Instance().m_gui_config.AddControl("pnlToolpathGenConfig", pnlToolpathGenConfig); // the slice profile settings parent

            //
        }
 private void SetupView(eConfView view) 
 {
     if (m_eView == view) return;
     HideControls();
     m_eView = view;
     switch (m_eView)
     {
         case eConfView.eSlice:
             pnlToolpathGenConfig.Dock = DockStyle.Fill;
             pnlToolpathGenConfig.Visible = true;
             break;
         case eConfView.eMachine:
             pnlMachineConfig.Dock = DockStyle.Fill;
             pnlMachineConfig.Visible = true;
             break;
     }
 }
 private void SetupView(eConfView view)
 {
     //if (m_eView == view) return;
     //HideControls();
     //m_eView = view;
     //switch (m_eView)
     //{
     //    case eConfView.eSlice:
     //        pnlToolpathGenConfig.Dock = DockStyle.Fill;
     //        pnlToolpathGenConfig.Visible = true;
     //        break;
     //    case eConfView.eMachine:
     //        pnlMachineConfig.Dock = DockStyle.Fill;
     //        pnlMachineConfig.Visible = true;
     //        break;
     //}
 }
        private void SetupView(eConfView view)
        {
            if (m_eView == view)
            {
                return;
            }
            HideControls();
            m_eView = view;
            switch (m_eView)
            {
            case eConfView.eSlice:
                pnlToolpathGenConfig.Dock    = DockStyle.Fill;
                pnlToolpathGenConfig.Visible = true;
                break;

            case eConfView.eMachine:
                pnlMachineConfig.Dock    = DockStyle.Fill;
                pnlMachineConfig.Visible = true;
                break;
            }
        }
        public ctlMainConfig()
        {
            InitializeComponent();
            RegisterCallbacks();
            HideControls();
            m_eView = eConfView.eNone;
            ClickViewConfMachine(null, null);
            //UVDLPApp.Instance().m_gui_config.AddControl(((DesignMode) ? "Guimachineconfig" :UVDLPApp.Instance().resman.GetString("Guimachineconfig", UVDLPApp.Instance().cul)), ctlMachineConfig1);
            //UVDLPApp.Instance().m_gui_config.AddControl(((DesignMode) ? "Guimachineconfigparent" :UVDLPApp.Instance().resman.GetString("Guimachineconfigparent", UVDLPApp.Instance().cul)), pnlMachineConfig);
            //UVDLPApp.Instance().m_gui_config.AddControl("ctlSliceProfileConfig", ctlSliceProfileConfig);
            //UVDLPApp.Instance().m_gui_config.AddControl("ctlToolpathGenConfig1", ctlToolpathGenConfig1); // the slice profile settings
            //UVDLPApp.Instance().m_gui_config.AddControl("pnlToolpathGenConfig", pnlToolpathGenConfig); // the slice profile settings parent
            //UVDLPApp.Instance().m_gui_config.AddControl("ctlTitleMachineConfig", ctlMachineConfigView);
            //UVDLPApp.Instance().m_gui_config.AddControl("ctlTitleSliceProfile", ctlSliceProfileConfig);
            //UVDLPApp.Instance().m_gui_config.AddControl("ctlTitleMachineConfig", ctlMachineConfigView1);
            //UVDLPApp.Instance().m_gui_config.AddControl("ctlTitleSliceProfile", ctlSliceProfileConfig1);

            //ctlToolpathGenConfig1.RegisterControls();
            //ctlMachineConfig1.RegisterControls();

            //

            SetTexts();
        }