Exemplo n.º 1
0
		void QuitApplication () 
		{
			// FIXME: sometimes gtk+ error happens, such as, opening file and then quitting
			//        fix the proper way of quiting this app

			for(int i = 0; i < dataSources.Count; i++) {
				DataSourceConnection c = dataSources[i];
				if (c.Connection.State == ConnectionState.Open) 
					c.Connection.Close ();
					c.Dispose ();
			}
			dataSources.Clear ();
			dataSources = null;
			dataSource = null;
			conn = null;

			SqlWindowCount --;
			if (SqlWindowCount == 0)
				Application.Quit ();
			else
				win.Destroy ();
		}
Exemplo n.º 2
0
		public SqlSharpGtk () 
		{
			dataSources = new DataSourceConnectionCollection ();
			CreateGui ();
			SqlWindowCount ++;
		}