示例#1
0
        async void bunifuButton1_Click(object sender, EventArgs e)
        {
            WebClient wc = new WebClient();

            System.IO.Directory.CreateDirectory("C:\\Windows\\poghack");
            wc.Headers.Add("User-Agent", "your user agent here");
            wc.DownloadFileAsync(new Uri($"{adress}/dll link.dll"), @"C:\Windows\_paste\cheat.dll");
            var runningProcs = from proc in Process.GetProcesses(".") orderby proc.Id select proc;

            if (runningProcs.Count(p => p.ProcessName.Contains("csgo")) > 0)
            {
                stop();
                await Task.Factory.StartNew(() => Pause(2));

                this.Hide();
                inject();
            }
            else
            {
                Process.Start("steam://rungameid/730");
                Form loading = new loading();
                loading.Show();
                stop();
                await Task.Factory.StartNew(() => Pause(2));

                this.Hide();
                await Task.Factory.StartNew(() => Pause(30));

                inject();
            }
        }
示例#2
0
        private void update_visitor_Click(object sender, RoutedEventArgs e)
        {
            DataGrid     dataGrid     = datagrid_visitor;
            DataGridRow  Row          = (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(dataGrid.SelectedIndex);
            DataGridCell RowAndColumn = (DataGridCell)dataGrid.Columns[0].GetCellContent(Row).Parent;

            ((TextBlock)RowAndColumn.Content).Text = id.Text;
            con.Open();
            SqlCommand command = con.CreateCommand();

            command.CommandType = CommandType.Text;
            command.CommandText = "update visitor set inmate = '" + vp_id.Text.ToString() + "',  lastname='" + lastname.Text.ToString() + "', firstname= '" + firstname.Text.ToString() + "', middlename = '" + middlename.Text.ToString() + "', address = '" + address0.Text.ToString() + "', gender = '" + gender.Text.ToString() + "' where id = '" + id.Text + "'";
            command.ExecuteNonQuery();
            con.Close();
            this.Close();
            loading l = new loading();

            l.Show();
            visitormain vm = new visitormain();

            vm.Show();
            MessageBox.Show("Successfully Updated!");
            edit_visitor.Visibility     = Visibility.Hidden;
            datagrid_visitor.Visibility = Visibility.Visible;
        }
示例#3
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            this.Close();
            visitormain pm = new visitormain();
            loading     l  = new loading();

            l.Show();
            pm.Show();
        }
示例#4
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            visitors visitors = new visitors();

            visitors.lastname   = lastname.Text.ToString();
            visitors.firstname  = firstname.Text.ToString();
            visitors.middlename = middlename.Text.ToString();
            visitors.address    = address0.Text.ToString() + " " + address1.Text.ToString();
            visitors.gender     = gender.Text.ToString();
            visitors.visit      = vp_id.Text.ToString();
            visitors.relation   = relation.Text.ToString();
            if (lastname.Text.ToString() != "" && firstname.Text.ToString() != "" && middlename.Text.ToString() != "" && address0.Text.ToString() != "" && gender.Text.ToString() != "" && vp_id.Text.ToString() != "" && relation.Text.ToString() != "" && address1.Text.ToString() != "")
            {
                string          query = "select * from visitor where lastname = '" + lastname.Text.ToString() + "'";
                SqlCommand      coms  = new SqlCommand(query, con);
                SqlDbConnection cons  = new SqlDbConnection();
                cons.Adaptor(query);
                DataTable dt = cons.Fill();
                if (dt.Rows.Count == 1)
                {
                    con.Open();
                    SqlDataReader reads = coms.ExecuteReader();
                    while (reads.Read())
                    {
                        string fn = (reads["firstname"].ToString());
                        string ln = (reads["lastname"].ToString());
                        string mn = (reads["middlename"].ToString());

                        if (firstname.Text != fn && lastname.Text != ln && middlename.Text != mn)
                        {
                            visitors.add();
                            MessageBox.Show("You have Added a new Visitor!");
                            this.Close();
                            visitormain pm = new visitormain();

                            pm.Show();
                            loading l = new loading();
                            l.Show();
                        }
                        else
                        {
                            MessageBox.Show("THIS VISITOR IS ALREADY IN THE DATABASE");
                        }
                    }
                    reads.Close();
                    con.Close();
                }
                else
                {
                    MessageBox.Show("INVALID INPUTS!");
                }
            }
        }
示例#5
0
        /// <summary>
        /// 提示窗体
        /// </summary>
        /// <param name="point">当前窗体坐标</param>
        /// <param name="message">可选参数 提示信息</param>
        /// <param name="interval">可选参数 多长时间关闭</param>
        /// <returns></returns>
        public void MessageBoxShow(Point point, string message = "")
        {
            formShow = new loading();
            //默认请加载
            if (message == "")
            {
                message = "正在加载,请稍后...";
            }

            formShow.lMessage     = message;
            formShow.messagePoint = point;
            formShow.Show();
        }
示例#6
0
        //delete visitor
        private void delete_visitor_Click(object sender, RoutedEventArgs e)
        {
            DataGrid     dataGrid     = datagrid_visitor;
            DataGridRow  Row          = (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(dataGrid.SelectedIndex);
            DataGridCell RowAndColumn = (DataGridCell)dataGrid.Columns[0].GetCellContent(Row).Parent;

            ((TextBlock)RowAndColumn.Content).Text = id.Text;
            con.Open();

            SqlCommand command = con.CreateCommand();

            command.CommandType = CommandType.Text;
            command.CommandText = "delete from visitor where id = '" + id.Text + "'";
            command.ExecuteNonQuery();
            con.Close();
            MessageBox.Show("Successfully Deleted!");
            edit_visitor.Visibility     = Visibility.Hidden;
            datagrid_visitor.Visibility = Visibility.Visible;

            //visitor_archive v = new visitor_archive();

            //v.lastname = lastname.Text.ToString();
            //v.firstname = firstname.Text.ToString();
            //v.middlename = middlename.Text.ToString();
            //v.address = address0.Text.ToString() + " " + address1.Text.ToString();
            //v.gender = gender.Text.ToString();
            //v.add();



            this.Close();
            visitormain pm = new visitormain();
            loading     l  = new loading();

            l.Show();
            pm.Show();
        }