Beispiel #1
0
 public void runChk()
 {
     SQLConnect connect = new SQLConnect();
     UpdateChatCount cnt = new UpdateChatCount();
     UpdateChat chat = new UpdateChat();
     MySqlConnection conn = connect.connect();
     cnt.Update(conn, out TotalMSG);
     chat.update(conn, TotalMSG, ReadMSG, out ReadMSG, user);
 }
Beispiel #2
0
        public void runChk()
        {
            SQLConnect      connect = new SQLConnect();
            UpdateChatCount cnt     = new UpdateChatCount();
            UpdateChat      chat    = new UpdateChat();
            MySqlConnection conn    = connect.connect();

            cnt.Update(conn, out TotalMSG);
            chat.update(conn, TotalMSG, ReadMSG, out ReadMSG, user);
        }
Beispiel #3
0
        public void send(string text, string user)
        {
            string test;
            Program program = new Program();
            SQLConnect connect = new SQLConnect();
            RunSQLCommand cmdrun = new RunSQLCommand();
            MySqlConnection conn = connect.connect();
            bool pm;

            string userto;
            Regexfind(text, out userto, out pm);
            if (pm == true)
            {
                RegexReplace(text, "\\" + userto + " ", "", out text);
                RegexReplace(userto, "\\/", "", out userto);
            }
            cmdrun.comrun("INSERT INTO chat (message, user, userto) VALUES('" + text + "', '" + user + "', '" + userto + "'); ", conn, out test);
        }
Beispiel #4
0
        public void send(string text, string user)

        {
            string          test;
            Program         program = new Program();
            SQLConnect      connect = new SQLConnect();
            RunSQLCommand   cmdrun  = new RunSQLCommand();
            MySqlConnection conn    = connect.connect();
            bool            pm;

            string userto;

            Regexfind(text, out userto, out pm);
            if (pm == true)
            {
                RegexReplace(text, "\\" + userto + " ", "", out text);
                RegexReplace(userto, "\\/", "", out userto);
            }
            cmdrun.comrun("INSERT INTO chat (message, user, userto) VALUES('" + text + "', '" + user + "', '" + userto + "'); ", conn, out test);
        }