Example #1
0
        protected override void NewRecord()
        {
            FormLockerDetail form = new FormLockerDetail();

            if (form.OpenRecord(null, null))
            {
                form.ShowDialog();
                RefreshData();
            }
        }
Example #2
0
        protected override void EditRecord()
        {
            Locker selectedLocker = GetSelectedLocker();

            if (selectedLocker != null)
            {
                FormLockerDetail form = new FormLockerDetail();
                if (form.OpenRecord(selectedLocker.RecordId, selectedLocker.ToGender))
                {
                    form.ShowDialog();
                    RefreshData();
                }
            }
        }