示例#1
0
        public void GenerateNumber()
        {
            Debug.Assert(User != null, "User has not been set!");

            var frm = new AutoNumberOptions(User, AutoNumberCategory, AutoNumberTable, AutoNumberField);

            frm.Owner = this.FindParentWindow();
            if (frm.GenerateNumber())
            {
                txt.Text = frm.AutoNumber;
            }
        }
示例#2
0
        private void ShowAutoNumber()
        {
            Debug.Assert(User != null, "User has not been set!");

            var frm = new AutoNumberOptions(User, AutoNumberCategory, AutoNumberTable, AutoNumberField);

            frm.Owner = this.FindParentWindow();
            if (frm.ShowDialog().ValueOrFalse())
            {
                txt.Text = frm.AutoNumber;
            }
        }