コード例 #1
0
        private Hashtable settings = new Hashtable(); //Hashtable for our loaded settings.

        #endregion Fields

        #region Constructors

        public frmLogin()
        {
            InitializeComponent();

            //Try to load the login settings.
            prefs = new PrefsManager();
            prefs.LoadProfiles();
            //Load the profiles to our combobox.
            string[] profiles = new string[100];
            profiles = prefs.profiles;
            for(int i=0;i<profiles.Length;i++)
            {
                if(profiles[i]!=null)
                {
                    cbxProfiles.Items.Add(profiles[i].ToString());
                }else{
                    //Exit when we hit a null profile.
                    break;
                }
            }

            netcom = new SLNetCom();
            MainForm = new frmMain(this,netcom,prefs);
            this.AddNetcomEvents();
        }
コード例 #2
0
 //ManualResetEvent CurrentlyWornEvent = new ManualResetEvent(false);
 public ActionCommandsIn(METAboltInstance instance)
 {
     this.instance = instance;
     client = this.instance.Client;
     netcom = this.instance.Netcom;
     tconsole = instance.TabConsole;
 }
コード例 #3
0
ファイル: Teleport.cs プロジェクト: NullProjects/METAbolt
        public frmTeleport(METAboltInstance instance, string sSIM, float sX,float sY,float sZ, bool ismaps)
        {
            InitializeComponent();

            SetExceptionReporter();
            Application.ThreadException += new ThreadExceptionHandler().ApplicationThreadException;

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

            AddNetcomEvents();
            AddClientEvents();

            this.ismaps = ismaps;

            if (string.IsNullOrEmpty(sSIM))
            {
                SetDefaultValues();
            }
            else
            {
                decimal x = (decimal)sX;
                decimal y = (decimal)sY;
                decimal z = (decimal)sZ;

                txtSearchFor.Text = txtRegion.Text = sSIM;
                nudX.Value = x;
                nudY.Value = y;
                nudZ.Value = z;

                StartRegionSearch();
            }
        }
コード例 #4
0
ファイル: SleekInstance.cs プロジェクト: SObS/SLeek
        public SleekInstance(bool firstInstance)
        {
            this.firstInstance = firstInstance;

            client = new SecondLife();
            client.Settings.ALWAYS_REQUEST_OBJECTS = true;
            client.Settings.ALWAYS_DECODE_OBJECTS = true;
            client.Settings.OBJECT_TRACKING = true;
            client.Settings.ENABLE_SIMSTATS = true;
            client.Settings.FETCH_MISSING_INVENTORY = true;
            client.Settings.MULTIPLE_SIMS = true;
            client.Settings.SEND_AGENT_THROTTLE = true;
            client.Settings.SEND_AGENT_UPDATES = true;

            netcom = new SLNetCom(client);

            imageCache = new ImageCache();
            state = new StateManager(this);
            InitializeConfig();

            mainForm = new frmMain(this);
            mainForm.InitializeControls();
            tabsConsole = mainForm.TabConsole;

            Application.ApplicationExit += new EventHandler(Application_ApplicationExit);
        }
コード例 #5
0
ファイル: MainConsole.cs プロジェクト: NullProjects/METAbolt
        public MainConsole(METAboltInstance instance)
        {
            InitializeComponent();

            SetExceptionReporter();
            Application.ThreadException += new ThreadExceptionHandler().ApplicationThreadException;

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

            //while (!IsHandleCreated)
            //{
            //    // Force handle creation
            //    IntPtr temp = Handle;
            //}

            ////btnInfo_Click();
            //if (webBrowser == null)
            //    this.InitializeWebBrowser();

            this.InitializeWebBrowser();

            webBrowser1.Visible = true;
            //btnInfo.Text = "Hide Grid Status";
            label7.Text = "V " + Properties.Resources.METAboltVersion;

            Disposed += new EventHandler(MainConsole_Disposed);

            LoadGrids();
            InitGridCombo();
            cbxLocation.SelectedIndex = 0;
            InitializeConfig();
        }
コード例 #6
0
        public IMTextManager(ITextPrinter textPrinter, SLNetCom netcom, PrefsManager preferences)
        {
            this.textPrinter = textPrinter;
            this.netcom = netcom;
            this.prefs = preferences;

            this.AddNetcomEvents();
        }
コード例 #7
0
ファイル: IITabWindow.cs プロジェクト: NullProjects/METAbolt
        public IITabWindow(METAboltInstance instance, InstantMessage e)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            ProcessEventArgs(e);
        }
コード例 #8
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);
        }
コード例 #9
0
ファイル: InventoryScriptConsole.cs プロジェクト: SObS/SLeek
        public InventoryScriptConsole(SleekInstance instance, InventoryItem item)
        {
            InitializeComponent();

            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;
            this.item = item;
        }
コード例 #10
0
ファイル: METAbrain.cs プロジェクト: NullProjects/METAbolt
        //private int cnt = 0;
        public METAbrain(METAboltInstance instance, AIMLbot.Bot myBot)
        {
            this.instance = instance;
            //client = this.instance.Client;
            netcom = this.instance.Netcom;
            this.myBot = myBot;

            answer = new mBrain();
        }
コード例 #11
0
ファイル: Disconnected.cs プロジェクト: SObS/SLeek
        public frmDisconnected(SleekInstance instance, ClientDisconnectEventArgs e)
        {
            InitializeComponent();

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

            lblMessage.Text = e.Message;
        }
コード例 #12
0
        public frmIMs(SLNetCom netcom, PrefsManager preferences)
        {
            InitializeComponent();

            this.netcom = netcom;
            IMTabs = new Dictionary<string, IMTabWindow>();
            prefs = preferences;

            this.AddNetcomEvents();
        }
コード例 #13
0
ファイル: StateManager.cs プロジェクト: SObS/SLeek
        public StateManager(SleekInstance instance)
        {
            this.instance = instance;
            netcom = this.instance.Netcom;
            client = this.instance.Client;

            AddNetcomEvents();
            AddClientEvents();
            InitializeAgentUpdateTimer();
        }
コード例 #14
0
        public frmTPdialogue(METAboltInstance instance)
        {
            InitializeComponent();

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

            netcom.TeleportStatusChanged += new EventHandler<TeleportEventArgs>(netcom_TeleportStatusChanged);

            InitializeStatusTimer();
        }
コード例 #15
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);
        }
コード例 #16
0
ファイル: Teleport.cs プロジェクト: SObS/SLeek
        public frmTeleport(SleekInstance instance)
        {
            InitializeComponent();

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

            AddNetcomEvents();
            AddClientEvents();
            SetDefaultValues();
        }
コード例 #17
0
ファイル: FindPeopleConsole.cs プロジェクト: SObS/SLeek
        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();
        }
コード例 #18
0
        public IMTabWindow(SLNetCom netcom, LLUUID target, LLUUID session, string toName, PrefsManager preferences)
        {
            InitializeComponent();

            this.netcom = netcom;
            this.target = target;
            this.session = session;
            this.toName = toName;
            this.prefs = preferences;

            textManager = new IMTextManager(new RichTextBoxPrinter(rtbIMText), this.netcom, prefs);
        }
コード例 #19
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);
        }
コード例 #20
0
ファイル: ChatTextManager.cs プロジェクト: SObS/SLeek
        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);
        }
コード例 #21
0
ファイル: InventoryItemConsole.cs プロジェクト: SObS/SLeek
        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();
        }
コード例 #22
0
ファイル: IMTextManager.cs プロジェクト: SObS/SLeek
        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);
        }
コード例 #23
0
ファイル: TPTabWindow.cs プロジェクト: NullProjects/METAbolt
        public TPTabWindow(METAboltInstance instance, InstantMessageEventArgs e)
        {
            InitializeComponent();

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

            Disposed += new EventHandler(TPTabWindow_Disposed);

            ProcessEventArgs(e);

            netcom.TeleportStatusChanged += new EventHandler<TeleportEventArgs>(netcom_TeleportStatusChanged);
        }
コード例 #24
0
ファイル: RegionSearchResultItem.cs プロジェクト: SObS/SLeek
        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();
        }
コード例 #25
0
ファイル: NotecardEditor.cs プロジェクト: SObS/SLeek
        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);
        }
コード例 #26
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);
        }
コード例 #27
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();
        }
コード例 #28
0
ファイル: frmPlayer.cs プロジェクト: NullProjects/METAbolt
        public frmPlayer(METAboltInstance instance)
        {
            InitializeComponent();

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

            Disposed += new EventHandler(Player_Disposed);

            netcom.TeleportStatusChanged += new EventHandler<TeleportEventArgs>(TP_Callback);

            PopulateStations();

            listBox2.SelectedIndex = 3;
        }
コード例 #29
0
ファイル: SearchConsole.cs プロジェクト: SObS/SLeek
        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);
        }
コード例 #30
0
ファイル: frmTPhistory.cs プロジェクト: NullProjects/METAbolt
        public frmTPhistory(METAboltInstance instance)
        {
            InitializeComponent();
            this.instance = instance;
            client = this.instance.Client;
            netcom = this.instance.Netcom;

            dataGridView1.DataSource = instance.TP;
            dataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader);

            string msg1 = "To delete a history record, select the whole row by clicking the arrow on the left of the row and hit the DEL button on your keyboard";
            toolTip = new Popup(customToolTip = new CustomToolTip(instance, msg1));
            toolTip.AutoClose = false;
            toolTip.FocusOnOpen = false;
            toolTip.ShowingAnimation = toolTip.HidingAnimation = PopupAnimations.Blend;
        }