Example #1
0
        }//end default constructor

        public UIServicesManagement(Form parent) : this()
        {
            this.Parent = parent;
            UIServicesInputAdd panel = (UIServicesInputAdd)tabAddService.Controls[0];

            SetParentAcceptButton(panel.AcceptButton);
        }//end constructor
Example #2
0
        }//end method SetParentAcceptButton

        #endregion //end region Methods


        #region Event Handling Methods

        private void tabContainer_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            if (tabContainer.SelectedTabPage.Name == "tabAddService")
            {
                UIServicesInputAdd panel = (UIServicesInputAdd)tabAddService.Controls[0];
                SetParentAcceptButton(panel.AcceptButton);
            }//end if
            else
            {
                UIServicesInputUpdate panel = (UIServicesInputUpdate)tabUpdateService.Controls[0];
                SetParentAcceptButton(panel.AcceptButton);
            } //end else
        }     //end method tabContainer_SelectedPageChanged
Example #3
0
        }//end method UpdateService

        private void LoadControls()
        {
            // Plug data grid view
            gridViewUI      = new UIServiceGridView(this);
            gridViewUI.Dock = DockStyle.Fill;
            mainContainer.Panel1.Controls.Add(gridViewUI);

            // Plug adding panel
            inputAddUI      = new UIServicesInputAdd(this);
            inputAddUI.Dock = DockStyle.Fill;
            tabAddService.Controls.Add(inputAddUI);

            // Plug updating panel
            inputUpdateUI      = new UIServicesInputUpdate(this);
            inputUpdateUI.Dock = DockStyle.Fill;
            tabUpdateService.Controls.Add(inputUpdateUI);

            isLoaded = true;
        }//end method LoadControls