Example #1
0
        private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
        {   // chck cookie if logged in if not open login box
            /*XmlDocument doc = new XmlDocument();
             * doc.Load(@"A:\programing\gimp\gimpcloud\desktop\Windows\gimpcloud\gimpcloud\XMLFile1.xml");
             *
             * XmlNodeList opt1 = doc.GetElementsByTagName("id");
             * string op1b = opt1[0].InnerText.Trim ();*/
            string   opb1 = "A01";
            XMLMaker xw   = new XMLMaker();
            String   op1b = xw.FileReader();

            if (opb1.Equals(op1b))
            {
                // image upload form may only Show the image to b opened but I may put  a button incase it don't autoopen as a failsafe
                Form2 f2 = new Form2();
                f2.Show();
            }
            else
            {
                // Login form
                Form3 f3 = new Form3();
                f3.Show();
            }
        }
Example #2
0
        public String Update(String URL, String tabel)
        {
            conn.Open();
            adddapter = new MySqlCommand("UPDATE " + tabel + " SET image_url = '" + URL + "' WHERE UID = '" + xs.FileReader() + "'", conn);

            adddapter.ExecuteNonQuery();
            conn.Close();
            return(null);
        }