Beispiel #1
0
        private void btnViewRecipe_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BOMRecipeForm childform = new BOMRecipeForm();

            childform.OpenRecord(((DB.ITM_BOM_Recipe)BindingSourceRecipe.DataSource).Id);
            ShowForm(childform);
        }
Beispiel #2
0
        protected override void OnNewRecord()
        {
            try
            {
                base.OnNewRecord();

                BOMRecipeForm childForm = new BOMRecipeForm();
                ShowForm(childForm);
            }
            catch (Exception ex)
            {
                if (CDS.Shared.Exception.UserInterfaceExceptionHandler.HandleException(ref ex))
                {
                    throw ex;
                }
            }
        }