Exemple #1
0
        public Form1()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;

            _interceptor = new HabboInterceptor();
            _interceptor.Start();

            Enabled = false;

            _interceptor.DisassembleCompleted += () =>
            {
                Enabled = true;
                Text    = "PicUpload";
                return(Task.CompletedTask);
            };

            _interceptor.Disconnnected += () =>
            {
                Enabled = false;
                MessageBox.Show("Disconnected...");
                return(Task.CompletedTask);
            };

            _interceptor.IncomingAttach(p => p.Hash == 15200078245527654, PreviewRecieved);
            _interceptor.IncomingAttach(p => p.Hash == 14073959295615033, UploadError);
            _interceptor.OutgoingAttach <MovePoster>(MovePicture);
            _interceptor.OutgoingAttach <PlacePoster>(PlacePicture);
        }