public GeneralInformation()
 {
     InitializeComponent();
     //Load title
     Control.ControlCollection ctrls = this.Controls;
     HPA.Common.UIMessage.LoadLableName(ref ctrls);
     HPA.Common.FocusControlsIndicator fc = new FocusControlsIndicator();
     fc.LoadAddGotFocus(this);
     if (UIMessage.ENTER_TO_TAB)
         fc.key_enter(this);
 }
Ejemplo n.º 2
0
 public ShiftSetting()
 {
     InitializeComponent();
     // set lable
     Control.ControlCollection ctrls = this.Controls;
     UIMessage.LoadLableName(ref ctrls);
     FocusControlsIndicator fc = new FocusControlsIndicator();
     fc.LoadAddGotFocus(this);
 }
Ejemplo n.º 3
0
        public override bool InitializeData()
        {
            try
            {
                // set lable
                Control.ControlCollection ctrls = this.Controls;
                UIMessage.LoadLableName(ref ctrls);
                LoadDataAndShow();
                btnCheckAll.Visible = isShowCheckAllBtn;

                if (IsProcessForm)
                {
                    ChuaTimKiemVaGrid.Visible = false;
                    this.Controls.Add(btnReload);
                    this.Controls.Add(grbFilter);
                    grbFilter.Width += 30;
                    btnReload.Text = UIMessage.Get_Message("btnProcess");
                    btnReload.Size = new Size(128, 64);
                    btnReload.Location = new Point(grbFilter.Location.X + (grbFilter.Size.Width - 128) / 2, grbFilter.Location.Y + grbFilter.Height +25);
                    btnReload.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Regular))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));

                }
                if (IsShowLayout)
                {
                    //Generate control by grid list
                    GenerateLayoutControlByList();
                    //Binding data
                    BindingDataToControl(splitContainer1.Panel1);
                }
                else
                {
                    splitContainer1.Panel1Collapsed = true;
                    btnDesignForm.Visible = false;
                }
                HPA.Common.FocusControlsIndicator fc = new FocusControlsIndicator();
                fc.LoadAddGotFocus(this);
            }
            catch (Exception e)
            {
                HPA.Common.Helper.ShowException(e, this.Name + ".InitializeData()", null);
                return false;
            }

            return true;
        }