Advertisement
Anaristos

sqlServer (Agent)

Dec 11th, 2011
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.75 KB | None | 0 0
  1. /************************************************************************
  2. --[ License ] -----------------------------------------------------------
  3.  
  4.   This program is free software; you can redistribute it and/or
  5.   modify it under the terms of the GNU General Public License
  6.   as published by the Free Software Foundation; either version 3
  7.   of the License, or (at your option) any later version.
  8.  
  9.   This program is distributed in the hope that it will be useful,
  10.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.   GNU General Public License for more details.
  13.  
  14.   You should have received a copy of the GNU General Public License
  15.   along with this program; if not, write to the Free Software
  16.   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  17.    
  18.   You may also access the licence here: http://www.gnu.org/licenses/gpl.html
  19.  
  20.  ------------------------------------------------------------------------
  21.   Copyright © 2009-11 Gomez & Associates
  22. /************************************************************************/
  23.  
  24. using System;
  25. using System.Windows.Forms;
  26.  
  27. namespace sqlServer
  28. {
  29.     public class Agent
  30.     {
  31.         public Agent() { }
  32.  
  33.         public DataProvider start()
  34.         {
  35.             return new DataProvider();
  36.         }
  37.  
  38.         public DataProvider start(string path)
  39.         {
  40.             return new DataProvider(path);
  41.         }
  42.  
  43.         public DataProvider start(string path, bool json)
  44.         {
  45.             return new DataProvider(path, json);
  46.         }
  47.  
  48.         public void stop()
  49.         {
  50.             MessageBox.Show(Properties.Settings.Default.ExitMessage);
  51.  
  52.             Environment.Exit(0);
  53.         }
  54.     }
  55. }
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement