Пример #1
0
        void edit( )
        {
            Operation.PowerEdit form = new Operation.PowerEdit("编辑", _model, nameOfPerson, nameOfProgram, "edit");
            form.StartPosition = FormStartPosition.CenterScreen;
            DialogResult result = form.ShowDialog( );

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                Query( );
            }
        }
Пример #2
0
        protected override int Add( )
        {
            Operation.PowerEdit form = new Operation.PowerEdit("增加", _model, nameOfPerson, nameOfProgram, "add");
            form.StartPosition = FormStartPosition.CenterScreen;
            DialogResult result = form.ShowDialog( );

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                Query( );
            }

            return(0);
        }