/// <summary>
        /// Init data
        /// </summary>
        private void InitData()
        {
            try
            {
                toolstripLabelWelcome.Text = string.Format(ConstantInfo.MESSAGE_WELCOME, _userInfo.Name);
                // Show decleration form
                var frmDecleration = new frmDecleration(_userInfo, this);
                frmDecleration.MdiParent = this;
                frmDecleration.Show();

                //Set permission
                if (_userInfo.PermissionID == 2)
                {
                    menuitemUser.Visible = true;
                }
                else
                {
                    menuitemUser.Visible = false;
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex.ToString());
                if (GlobalInfo.IsDebug) MessageBox.Show(ex.ToString());
            }
        }
 private void menuitemDeclaration_Click(object sender, EventArgs e)
 {
     var frmDecleration = new frmDecleration(_userInfo, this);
     frmDecleration.MdiParent = this;
     frmDecleration.Show();
 }
 private void toolStripButtonListdeclarace_Click(object sender, EventArgs e)
 {
     var frmDecleration = new frmDecleration(_userInfo, this);
     frmDecleration.MdiParent = this;
     frmDecleration.Show();
 }
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     var frmDecleration = new frmDecleration(_userInfo, this);
     frmDecleration.MdiParent = this;
     frmDecleration.Show();
 }