Esempio n. 1
0
 public override void OnClick()
 {
     if (m_FrmProperty == null || m_FrmProperty.IsDisposed)
     {
         m_FrmProperty = new FrmStandardProperty();
         m_FrmProperty.ViewMode = FrmStandardProperty.enumPropertyViewMode.View;
     }
     m_FrmProperty.CurrentStandard = m_Manager.CurrentMetaStandard;
     m_FrmProperty.Text = string.Format("�鿴Ԫ���ݱ�׼[{0}]�Ķ���", m_Manager.CurrentMetaStandard.Name);
     m_FrmProperty.ShowDialog(base.m_Hook.UIHook.MainForm);
 }
Esempio n. 2
0
        public override void OnClick()
        {
            if (DevExpress.XtraEditors.XtraMessageBox.Show("��׼���޸Ľ����´˱�׼�����ݱ��ؽ�����ȷ��Ҫ�޸���", "�޸�ȷ��", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                if (m_FrmEdit == null || m_FrmEdit.IsDisposed)
                {
                    m_FrmEdit = new FrmStandardProperty();
                    m_FrmEdit.ViewMode = FrmStandardProperty.enumPropertyViewMode.Edit;
                }
                m_FrmEdit.CurrentStandard = m_Manager.CurrentMetaStandard;
                m_FrmEdit.Text = string.Format("Ԫ���ݱ�׼[{0}]�޸�", m_Manager.CurrentMetaStandard.Name);
                if (m_FrmEdit.ShowDialog(base.m_Hook.UIHook.MainForm) == DialogResult.OK)
                {
                    MetaStandardHelper.SaveStandard(m_FrmEdit.CurrentStandard);
                }

                this.m_Manager.Refresh();
            }
        }
Esempio n. 3
0
        public override void OnClick()
        {
            MetaStandard newStandard=new MetaStandard();
            newStandard.Name="�½���׼";
            newStandard.Creator = Environment.Application.UserName;
            newStandard.CreateTime = DateTime.Now;

            if (m_FrmAdd == null || m_FrmAdd.IsDisposed)
            {
                m_FrmAdd = new FrmStandardProperty();
                m_FrmAdd.ViewMode = FrmStandardProperty.enumPropertyViewMode.New;
                m_FrmAdd.Text = "�½�Ԫ���ݱ�׼";
            }
            m_FrmAdd.CurrentStandard = newStandard;
            if (m_FrmAdd.ShowDialog(base.m_Hook.UIHook.MainForm) == DialogResult.OK)
            {
                MetaStandardHelper.SaveStandard(m_FrmAdd.CurrentStandard);
            }

            this.m_Manager.Refresh();
        }