CuteChat Reference

  •  11-24-2004, 12:36 PM

    CuteChat Reference

    My project doesn`t have the cutechat Reference: there are some errors in the pages.  the letters in red are the errors and the classes (SqlDataProvider and UserInfo) that i don't have, how can i do to get the cutechat reference?

    namespace CuteChatSample

    {

    using System;

    using System.Collections;

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    CuteChatSample

    {

    using System;

    using System.Collections;

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using System;

    using System.Collections;

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using System.Collections;

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

View Complete Thread