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

            this.instance = instance;
            client = this.instance.Client;
        }
示例#2
0
文件: TPTabWindow.cs 项目: SObS/SLeek
        public TPTabWindow(SleekInstance instance, InstantMessageEventArgs e)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            ProcessEventArgs(e);
        }
示例#3
0
文件: Program.cs 项目: SObS/SLeek
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

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

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.item = item;
        }
示例#5
0
文件: Pay.cs 项目: 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;
        }
示例#6
0
        public frmDisconnected(SleekInstance instance, ClientDisconnectEventArgs e)
        {
            InitializeComponent();

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

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

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

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

            AddNetcomEvents();
            AddClientEvents();
            InitializeAgentUpdateTimer();
        }
示例#9
0
文件: Preferences.cs 项目: SObS/SLeek
        public frmPreferences(SleekInstance instance)
        {
            InitializeComponent();

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

            AddPreferencePane(new PrefGeneralConsole(instance));
            AddPreferencePane(new PrefTextConsole(instance));
            lbxPanes.SelectedIndex = 0;
        }
示例#10
0
文件: DebugLog.cs 项目: SObS/SLeek
        public frmDebugLog(SleekInstance instance)
        {
            InitializeComponent();

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

            this.Disposed += new EventHandler(frmDebugLog_Disposed);
        }
示例#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();
        }
示例#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;
        }
示例#13
0
文件: Objects.cs 项目: SObS/SLeek
        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");
        }
示例#14
0
文件: Teleport.cs 项目: SObS/SLeek
        public frmTeleport(SleekInstance instance)
        {
            InitializeComponent();

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

            AddNetcomEvents();
            AddClientEvents();
            SetDefaultValues();
        }
示例#15
0
文件: MainConsole.cs 项目: SObS/SLeek
        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);
        }
示例#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);
        }
示例#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();
        }
示例#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);
        }
示例#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();
        }
示例#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);
        }
示例#21
0
文件: DetachedTab.cs 项目: SObS/SLeek
        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);
        }
示例#22
0
文件: TabsConsole.cs 项目: SObS/SLeek
        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);
        }
示例#23
0
文件: Profile.cs 项目: SObS/SLeek
        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();
        }
示例#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);
        }
示例#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();
        }
示例#26
0
文件: IMTabWindow.cs 项目: SObS/SLeek
        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);
        }
示例#27
0
文件: MainForm.cs 项目: SObS/SLeek
        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);
        }
示例#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);
            }
        }
示例#29
0
文件: ChatConsole.cs 项目: SObS/SLeek
        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);
        }
示例#30
0
文件: SleekTab.cs 项目: SObS/SLeek
        public void Detach(SleekInstance instance)
        {
            if (!allowDetach) return;
            if (detached) return;

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