Beispiel #1
0
        public FriendsConsole(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            client = this.instance.Client;
        }
Beispiel #2
0
        public TPTabWindow(SleekInstance instance, InstantMessageEventArgs e)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            ProcessEventArgs(e);
        }
Beispiel #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SleekInstance instance = new SleekInstance(true);
            Application.Run(instance.MainForm);
            instance = null;
        }
Beispiel #4
0
        public InventoryScriptConsole(SleekInstance instance, InventoryItem item)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.item = item;
        }
Beispiel #5
0
Datei: Pay.cs Projekt: SObS/SLeek
        public frmPay(SleekInstance instance, LLUUID target, string name)
        {
            InitializeComponent();

            this.instance = instance;
            client = this.instance.Client;

            this.target = target;
            this.name = txtPerson.Text = name;
        }
Beispiel #6
0
        public frmDisconnected(SleekInstance instance, ClientDisconnectEventArgs e)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            AddNetcomEvents();

            lblMessage.Text = e.Message;
        }
Beispiel #7
0
        public PrefTextConsole(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            config = this.instance.Config;

            chkChatTimestamps.Checked = config.CurrentConfig.ChatTimestamps;
            chkIMTimestamps.Checked = config.CurrentConfig.IMTimestamps;
        }
Beispiel #8
0
        public StateManager(SleekInstance instance)
        {
            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;

            AddNetcomEvents();
            AddClientEvents();
            InitializeAgentUpdateTimer();
        }
Beispiel #9
0
        public frmPreferences(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            panes = new Dictionary<string, IPreferencePane>();

            AddPreferencePane(new PrefGeneralConsole(instance));
            AddPreferencePane(new PrefTextConsole(instance));
            lbxPanes.SelectedIndex = 0;
        }
Beispiel #10
0
        public frmDebugLog(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddClientEvents();

            this.Disposed += new EventHandler(frmDebugLog_Disposed);
        }
Beispiel #11
0
        public FindPeopleConsole(SleekInstance instance, LLUUID queryID)
        {
            InitializeComponent();

            findPeopleResults = new Dictionary<string, LLUUID>();
            this.queryID = queryID;

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddClientEvents();
        }
Beispiel #12
0
        public PrefGeneralConsole(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            config = this.instance.Config;

            if (config.CurrentConfig.InterfaceStyle == 0)
                rdoSystemStyle.Checked = true;
            else if (config.CurrentConfig.InterfaceStyle == 1)
                rdoOfficeStyle.Checked = true;
        }
Beispiel #13
0
        public frmObjects(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            client = this.instance.Client;

            client.Network.OnDisconnected += new NetworkManager.DisconnectedCallback(Network_OnDisconnected);

            btnPointAt.Text = (this.instance.State.IsPointing ? "Unpoint" : "Point At");
            btnSitOn.Text = (this.instance.State.IsSitting ? "Stand Up" : "Sit On");
        }
Beispiel #14
0
        public frmTeleport(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;

            AddNetcomEvents();
            AddClientEvents();
            SetDefaultValues();
        }
Beispiel #15
0
        public MainConsole(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            AddNetcomEvents();

            cbxLocation.SelectedIndex = 0;
            InitializeConfig();

            this.instance.MainForm.FormClosing += new FormClosingEventHandler(MainForm_FormClosing);
        }
Beispiel #16
0
        public ChatTextManager(SleekInstance instance, ITextPrinter textPrinter)
        {
            this.textPrinter = textPrinter;
            this.textBuffer = new List<ChatBufferItem>();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddNetcomEvents();

            showTimestamps = this.instance.Config.CurrentConfig.ChatTimestamps;
            this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
        }
Beispiel #17
0
        public RegionSearchResultItem(SleekInstance instance, GridRegion region, ListBox listBox)
        {
            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.region = region;
            this.listBox = listBox;

            agentCountWorker = new BackgroundWorker();
            agentCountWorker.DoWork += new DoWorkEventHandler(agentCountWorker_DoWork);
            agentCountWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(agentCountWorker_RunWorkerCompleted);

            AddClientEvents();
        }
Beispiel #18
0
        public IMTextManager(SleekInstance instance, ITextPrinter textPrinter, LLUUID sessionID)
        {
            this.sessionID = sessionID;

            this.textPrinter = textPrinter;
            this.textBuffer = new ArrayList();

            this.instance = instance;
            netcom = this.instance.Netcom;
            AddNetcomEvents();

            showTimestamps = this.instance.Config.CurrentConfig.IMTimestamps;
            this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
        }
Beispiel #19
0
        public InventoryItemConsole(SleekInstance instance, InventoryItem item)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.item = item;

            this.Disposed += new EventHandler(InventoryItemConsole_Disposed);

            AddClientEvents();
            FillItemProperties();
        }
Beispiel #20
0
        public frmNotecardEditor(SleekInstance instance, InventoryItem item)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.item = item;
            AddNetcomEvents();

            this.Text = item.Name + " (notecard) - SLeek";

            client.Assets.OnAssetReceived += new AssetManager.AssetReceivedCallback(Assets_OnAssetReceived);
            transferID = client.Assets.RequestInventoryAsset(item.AssetUUID, item.UUID, LLUUID.Zero, item.OwnerID, item.AssetType, false);
        }
Beispiel #21
0
        public frmDetachedTab(SleekInstance instance, SleekTab tab)
        {
            InitializeComponent();

            this.instance = instance;
            this.tab = tab;
            this.Controls.Add(tab.Control);
            tab.Control.BringToFront();

            AddTabEvents();
            this.Text = tab.Label + " (tab) - SLeek";

            ApplyConfig(this.instance.Config.CurrentConfig);
            this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
        }
Beispiel #22
0
        public TabsConsole(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddNetcomEvents();

            InitializeMainTab();
            InitializeChatTab();

            ApplyConfig(this.instance.Config.CurrentConfig);
            this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
        }
Beispiel #23
0
        public frmProfile(SleekInstance instance, string fullName, LLUUID agentID)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.fullName = fullName;
            this.agentID = agentID;

            this.Text = fullName + " (profile) - SLeek";

            AddClientEvents();
            AddNetcomEvents();
            InitializeProfile();
        }
Beispiel #24
0
        public SearchConsole(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddClientEvents();

            tabConsole = this.instance.TabConsole;

            console = new FindPeopleConsole(instance, LLUUID.Random());
            console.Dock = DockStyle.Fill;
            console.SelectedIndexChanged += new EventHandler(console_SelectedIndexChanged);
            pnlFindPeople.Controls.Add(console);
        }
Beispiel #25
0
        public InventoryConsole(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            clip = new InventoryClipboard(client);

            ApplyConfig(this.instance.Config.CurrentConfig);
            this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);

            this.Disposed += new EventHandler(InventoryConsole_Disposed);
            InitializeImageList();
            InitializeTree();
            GetRoot();
        }
Beispiel #26
0
        public IMTabWindow(SleekInstance instance, LLUUID target, LLUUID session, string toName)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;

            this.target = target;
            this.session = session;
            this.toName = toName;

            textManager = new IMTextManager(this.instance, new RichTextBoxPrinter(rtbIMText), this.session);
            this.Disposed += new EventHandler(IMTabWindow_Disposed);

            ApplyConfig(this.instance.Config.CurrentConfig);
            this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
        }
Beispiel #27
0
        public frmMain(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            client = this.instance.Client;
            netcom = this.instance.Netcom;
            netcom.NetcomSync = this;
            AddNetcomEvents();
            client.Parcels.OnParcelProperties += new ParcelManager.ParcelPropertiesCallback(Parcels_OnParcelProperties);

            InitializeStatusTimer();
            RefreshWindowTitle();

            ApplyConfig(this.instance.Config.CurrentConfig, true);
            this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
        }
Beispiel #28
0
        public InventoryImageConsole(SleekInstance instance, InventoryItem item)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.item = item;

            if (instance.ImageCache.ContainsImage(item.AssetUUID))
                SetFinalImage(instance.ImageCache.GetImage(item.AssetUUID));
            else
            {
                this.Disposed += new EventHandler(InventoryImageConsole_Disposed);
                client.Assets.OnImageReceived += new AssetManager.ImageReceivedCallback(Assets_OnImageReceived);
                client.Assets.RequestImage(item.AssetUUID, ImageType.Normal, 125000.0f, 0);
            }
        }
Beispiel #29
0
        public ChatConsole(SleekInstance instance)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            AddNetcomEvents();
            AddClientEvents();

            chatManager = new ChatTextManager(instance, new RichTextBoxPrinter(rtbChat));
            chatManager.PrintStartupMessage();

            this.instance.MainForm.Load += new EventHandler(MainForm_Load);

            ApplyConfig(this.instance.Config.CurrentConfig);
            this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
        }
Beispiel #30
0
        public void Detach(SleekInstance instance)
        {
            if (!allowDetach) return;
            if (detached) return;

            owner = new frmDetachedTab(instance, this);
            detached = true;
            OnTabDetached(EventArgs.Empty);
        }