Esempio n. 1
0
        protected override void Initializing()
        {
            #region Standard Pattern
            InitializeComponent();
            This = this;

            strProductRecipe.BindTwoWay(() => AppMachine.Comp.AppMachine.This.CurrentProdRecipeName);
            U.RegisterOnChanged(() => AppMachine.Comp.AppMachine.This.CurrentProdRecipeName, CurrentRecipeOnChange);
            this.Update();
            #endregion
        }
        public void PrepareAllPanel()
        {
            _productionPanel      = new AppProductionPanel();
            _productionPanel.Dock = DockStyle.Fill;
            kGroupOperation.Panel.Controls.Add(_productionPanel);


            _recipePanel      = new AppRecipePanel();
            _recipePanel.Dock = DockStyle.Fill;
            kRecipeManagerPage.Controls.Add(_recipePanel);


            _generalPanel      = new AppGeneralPanel();
            _generalPanel.Dock = DockStyle.Fill;
            kGeneralSetupPage.Controls.Add(_generalPanel);


            _specPanel      = new AppSpecPanel();
            _specPanel.Dock = DockStyle.Fill;
            kSpecPage.Controls.Add(_specPanel);


            _machineSetupPanel      = new AppMachineSetupPanel();
            _machineSetupPanel.Dock = DockStyle.Fill;
            kMachineSetupPage.Controls.Add(_machineSetupPanel);


            _commonPararmPanel      = new AppCommonParamPanel();
            _commonPararmPanel.Dock = DockStyle.Fill;
            kCommonParamPage.Controls.Add(_commonPararmPanel);


            _utilityPanel      = new AppUtilityPanel();
            _utilityPanel.Dock = DockStyle.Fill;
            kGroupUtility.Panel.Controls.Add(_utilityPanel);


            _userPanel      = new AppUsersPanel();
            _userPanel.Dock = DockStyle.Fill;
            kUsersManagerPage.Controls.Add(_userPanel);


            //Default Selection Page
            try
            {
                kNavigatorMain.SelectedIndex             = 0;
                kNavigatorMainSetup.SelectedIndex        = 0;
                kNavigatorStateMachine.SelectedIndex     = 0;
                kNavigatorSemiStateMachine.SelectedIndex = 0;
            }
            catch
            {
            }
        }