Ejemplo n.º 1
0
        protected void btnSaveAndAnother_Click(object sender, EventArgs e)
        {
            bool isSuccessful = SaveData();

            if (isSuccessful)
            {
                // Get another new instance for editing
                InstanceNewingEventArgs arg = new InstanceNewingEventArgs(CurrentSubject.SubjectType);
                if (InstanceNewing != null)
                {
                    InstanceNewing(this, arg);
                }

                if (CurrentInstance != null)
                {
                    base.LoadInstanceData();
                }
            }
        }
Ejemplo n.º 2
0
 protected void ucIEdit_InstanceNewing(object sender, InstanceNewingEventArgs e)
 {
     RetrieveData();
 }