コード例 #1
0
        private void ListReference_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Administration.List.ReferencegroupList frmList = new Administration.List.ReferencegroupList();
            frmList.StartPosition = FormStartPosition.CenterScreen;

            frmList.ShowDialog();
        }
コード例 #2
0
ファイル: Referencegroup.cs プロジェクト: mezeus/IPCAXprs
        private void btnDelete_Click(object sender, EventArgs e)
        {
            bool isDelete = objrefbl.DeleteReferenceGroup(RefId);

            if (isDelete)
            {
                MessageBox.Show("Delete Successfully!");
                tbxName.Text = string.Empty;
                RefId        = 0;
                tbxName.Focus();
                Administration.List.ReferencegroupList frmList = new Administration.List.ReferencegroupList();
                frmList.StartPosition = FormStartPosition.CenterScreen;

                frmList.ShowDialog();
                FillReferenceGroup();
            }
        }
コード例 #3
0
ファイル: Referencegroup.cs プロジェクト: mezeus/IPCAXprs
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            ReferenceGroupModel objmodel = new ReferenceGroupModel();

            objmodel.Name        = tbxName.Text.Trim();
            objmodel.ReferenceId = RefId;
            bool IsUpdate = objrefbl.UpdateReferenceGroup(objmodel);

            if (IsUpdate)
            {
                MessageBox.Show("Update Succufully!");
                tbxName.Text = string.Empty;
                RefId        = 0;
                tbxName.Focus();
                Administration.List.ReferencegroupList frmList = new Administration.List.ReferencegroupList();
                frmList.StartPosition = FormStartPosition.CenterScreen;

                frmList.ShowDialog();
                FillReferenceGroup();
            }
        }