179 lines
7.3 KiB
C#
179 lines
7.3 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Raton.Forms.ClientForms.Monitor.ratonInstalledPrograms
|
|
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
|
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
|
|
|
using Raton.Classes;
|
|
using Raton.Properties;
|
|
using RatonAccessTool.Controls;
|
|
using Server.Connection;
|
|
using Stuff;
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
#nullable disable
|
|
namespace Raton.Forms.ClientForms.Monitor;
|
|
|
|
public class ratonInstalledPrograms : Form
|
|
{
|
|
private IContainer components;
|
|
public AeroListView aeroListView1;
|
|
private ColumnHeader columnHeader1;
|
|
private ColumnHeader columnHeader2;
|
|
private ColumnHeader columnHeader3;
|
|
private ContextMenuStrip contextMenuStrip1;
|
|
private ToolStripMenuItem uninstallToolStripMenuItem;
|
|
private ToolStripMenuItem refreshToolStripMenuItem;
|
|
public Label label1;
|
|
public ImageList imageList1;
|
|
public Timer timer1;
|
|
|
|
public SillyClient SillyClient { get; set; }
|
|
|
|
public ratonInstalledPrograms()
|
|
{
|
|
this.InitializeComponent();
|
|
DarkMode.Start((Form) this);
|
|
}
|
|
|
|
private void ratonInstalledPrograms_Load(object sender, EventArgs e) => this.timer1.Start();
|
|
|
|
private void timer1_Tick(object sender, EventArgs e)
|
|
{
|
|
if (this.SillyClient != null && this.SillyClient.isConnected())
|
|
return;
|
|
this.Close();
|
|
}
|
|
|
|
private void uninstallToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
foreach (ListViewItem selectedItem in this.aeroListView1.SelectedItems)
|
|
{
|
|
Pack pack = new Pack();
|
|
pack.SetString("Packet", "Programs");
|
|
pack.SetString("Command", "Uninstall");
|
|
pack.SetString("Name", selectedItem.Tag.ToString());
|
|
this.SillyClient.Send(pack.Pacc());
|
|
}
|
|
this.aeroListView1.Visible = false;
|
|
this.label1.Visible = true;
|
|
this.label1.Text = "Please wait...";
|
|
Pack pack1 = new Pack();
|
|
pack1.SetString("Packet", "Programs");
|
|
pack1.SetString("Command", "List");
|
|
this.SillyClient.Send(pack1.Pacc());
|
|
}
|
|
|
|
private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
this.aeroListView1.Visible = false;
|
|
this.label1.Visible = true;
|
|
this.label1.Text = "Please wait...";
|
|
Pack pack = new Pack();
|
|
pack.SetString("Packet", "Programs");
|
|
pack.SetString("Command", "List");
|
|
this.SillyClient.Send(pack.Pacc());
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && this.components != null)
|
|
this.components.Dispose();
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = (IContainer) new System.ComponentModel.Container();
|
|
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (ratonInstalledPrograms));
|
|
AeroListView.ListViewColumnSorter viewColumnSorter = new AeroListView.ListViewColumnSorter();
|
|
this.imageList1 = new ImageList(this.components);
|
|
this.contextMenuStrip1 = new ContextMenuStrip(this.components);
|
|
this.uninstallToolStripMenuItem = new ToolStripMenuItem();
|
|
this.refreshToolStripMenuItem = new ToolStripMenuItem();
|
|
this.timer1 = new Timer(this.components);
|
|
this.label1 = new Label();
|
|
this.aeroListView1 = new AeroListView();
|
|
this.columnHeader1 = new ColumnHeader();
|
|
this.columnHeader2 = new ColumnHeader();
|
|
this.columnHeader3 = new ColumnHeader();
|
|
this.contextMenuStrip1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
this.imageList1.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList1.ImageStream");
|
|
this.imageList1.TransparentColor = Color.Transparent;
|
|
this.imageList1.Images.SetKeyName(0, "Admin.png");
|
|
this.contextMenuStrip1.Font = new Font("Microsoft JhengHei", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.contextMenuStrip1.Items.AddRange(new ToolStripItem[2]
|
|
{
|
|
(ToolStripItem) this.uninstallToolStripMenuItem,
|
|
(ToolStripItem) this.refreshToolStripMenuItem
|
|
});
|
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
|
this.contextMenuStrip1.Size = new Size(125, 48 /*0x30*/);
|
|
this.uninstallToolStripMenuItem.Image = (Image) Resources.Uninstall_16x;
|
|
this.uninstallToolStripMenuItem.Name = "uninstallToolStripMenuItem";
|
|
this.uninstallToolStripMenuItem.Size = new Size(124, 22);
|
|
this.uninstallToolStripMenuItem.Text = "Uninstall";
|
|
this.uninstallToolStripMenuItem.Click += new EventHandler(this.uninstallToolStripMenuItem_Click);
|
|
this.refreshToolStripMenuItem.Image = (Image) Resources.Refresh_greyThin_16x;
|
|
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
|
this.refreshToolStripMenuItem.Size = new Size(124, 22);
|
|
this.refreshToolStripMenuItem.Text = "Refresh";
|
|
this.refreshToolStripMenuItem.Click += new EventHandler(this.refreshToolStripMenuItem_Click);
|
|
this.timer1.Tick += new EventHandler(this.timer1_Tick);
|
|
this.label1.Dock = DockStyle.Fill;
|
|
this.label1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.label1.Location = new Point(0, 0);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new Size(535, 591);
|
|
this.label1.TabIndex = 1;
|
|
this.label1.Text = "Loading...";
|
|
this.label1.TextAlign = ContentAlignment.MiddleCenter;
|
|
this.aeroListView1.BorderStyle = BorderStyle.FixedSingle;
|
|
this.aeroListView1.Columns.AddRange(new ColumnHeader[3]
|
|
{
|
|
this.columnHeader1,
|
|
this.columnHeader2,
|
|
this.columnHeader3
|
|
});
|
|
this.aeroListView1.ContextMenuStrip = this.contextMenuStrip1;
|
|
this.aeroListView1.Dock = DockStyle.Fill;
|
|
this.aeroListView1.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.aeroListView1.FullRowSelect = true;
|
|
this.aeroListView1.HideSelection = false;
|
|
this.aeroListView1.Location = new Point(0, 0);
|
|
viewColumnSorter.Order = SortOrder.None;
|
|
viewColumnSorter.SortColumn = 0;
|
|
this.aeroListView1.LvwColumnSorter = viewColumnSorter;
|
|
this.aeroListView1.Name = "aeroListView1";
|
|
this.aeroListView1.Size = new Size(535, 591);
|
|
this.aeroListView1.SmallImageList = this.imageList1;
|
|
this.aeroListView1.TabIndex = 0;
|
|
this.aeroListView1.UseCompatibleStateImageBehavior = false;
|
|
this.aeroListView1.View = View.Details;
|
|
this.columnHeader1.Text = "Name";
|
|
this.columnHeader1.Width = 182;
|
|
this.columnHeader2.Text = "Version";
|
|
this.columnHeader2.Width = 124;
|
|
this.columnHeader3.Text = "Publisher";
|
|
this.columnHeader3.Width = 227;
|
|
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
|
this.AutoScaleMode = AutoScaleMode.Font;
|
|
this.ClientSize = new Size(535, 591);
|
|
this.Controls.Add((Control) this.label1);
|
|
this.Controls.Add((Control) this.aeroListView1);
|
|
this.FormBorderStyle = FormBorderStyle.FixedSingle;
|
|
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
|
|
this.MaximizeBox = false;
|
|
this.Name = nameof (ratonInstalledPrograms);
|
|
this.StartPosition = FormStartPosition.CenterScreen;
|
|
this.Text = nameof (ratonInstalledPrograms);
|
|
this.Load += new EventHandler(this.ratonInstalledPrograms_Load);
|
|
this.contextMenuStrip1.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
}
|
|
}
|