コード例 #1
0
        protected override void NewRecord()
        {
            FormClientDetail form = new FormClientDetail();

            if (form.OpenRecord(null))
            {
                form.ShowDialog();
                RefreshData();
            }
        }
コード例 #2
0
        protected override void EditRecord()
        {
            ExtendedClient selectedClient = GetSelectedClient();

            if (selectedClient != null)
            {
                FormClientDetail form = new FormClientDetail();
                if (form.OpenRecord(selectedClient.ClientId))
                {
                    form.ShowDialog();
                    RefreshData();
                }
            }
        }