private void CheckUpdate()
        {
            UpdateCheckInfo info = null;

            if (!ApplicationDeployment.IsNetworkDeployed)  // 로컬실행
            {
                Log.WriteInfo("배포된 버젼이 아닙니다.");
            }
            else
            {
                ApplicationDeployment AppDeploy = ApplicationDeployment.CurrentDeployment;

                info = AppDeploy.CheckForDetailedUpdate();

                if (info.UpdateAvailable)
                {
                    bool doUpdate = true;

                    if (doUpdate)
                    {
                        AppDeploy.Update();
                        MessageBox.Show(Resources.ProgramUpdateMsg, Resources.MsgBoxTitleUpdate);
                        this.Close();
                        Application.Restart();
                    }
                }
            }
        }
        /// <summary>
        /// 돋보기아이콘 클릭시
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSearch_Click(object sender, EventArgs e)
        {
            SearchForm frm = new SearchForm(info);

            frm.Mode = SearchUserControl.Mode.Employee;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                info            = frm.info;
                txtEmpID.Text   = info.ID.ToString();
                txtEmpName.Text = info.Name.ToString();
                txtEmpPwd.Clear();
                this.ActiveControl = txtEmpPwd;
            }
        }
示例#3
0
 public SearchForm(SearchedInfoVO info)
 {
     InitializeComponent();
     this.info = info;
 }