Exemple #1
0
        public frmMapClient(METAboltInstance instance)
        {
            InitializeComponent();

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

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

            client = this.instance.Client;
            sim    = client.Network.CurrentSim;

            client.Grid.CoarseLocationUpdate += new EventHandler <CoarseLocationUpdateEventArgs>(Grid_OnCoarseLocationUpdate);
            client.Network.SimChanged        += new EventHandler <SimChangedEventArgs>(Network_OnCurrentSimChanged);

            client.Grid.GridRegion       += new EventHandler <GridRegionEventArgs>(Grid_OnGridRegion);
            netcom.Teleporting           += new EventHandler <TeleportingEventArgs>(netcom_Teleporting);
            netcom.TeleportStatusChanged += new EventHandler <TeleportEventArgs>(netcom_TeleportStatusChanged);

            string msg1 = "Yellow dot with red border = your avatar \nGreen dots = avs at your altitude\nRed squares = avs 20m+ below you\nBlue squares = avs 20m+ above you\n\n Click on map area to get TP position.";

            toolTip                  = new Popup(customToolTip = new CustomToolTip(instance, msg1));
            toolTip.AutoClose        = false;
            toolTip.FocusOnOpen      = false;
            toolTip.ShowingAnimation = toolTip.HidingAnimation = PopupAnimations.Blend;

            //List<AvLocation> avlocations = new List<AvLocation>();

            world.Cursor       = Cursors.Cross;
            pictureBox2.Cursor = Cursors.Cross;
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        public IMTextManager(METAboltInstance instance, ITextPrinter textPrinter, UUID sessionID, string avname)
        {
            SetExceptionReporter();
            Application.ThreadException += new ThreadExceptionHandler().ApplicationThreadException;

            this.sessionID     = sessionID;
            this.sessionAVname = avname;

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

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

            showTimestamps = this.instance.Config.CurrentConfig.IMTimestamps;
            //tName = this.instance.Config.CurrentConfig.TweeterName;
            //tPwd = this.instance.Config.CurrentConfig.TweeterPwd;
            //TEnabled = this.instance.Config.CurrentConfig.EnableTweeter;
            //tweet = this.instance.Config.CurrentConfig.Tweet;
            //tweetname = this.instance.Config.CurrentConfig.TweeterUser;
            classiclayout = this.instance.Config.CurrentConfig.ClassicChatLayout;

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

            myBot = this.instance.ABot;

            //if (this.instance.Config.CurrentConfig.AIon)
            //{
            //    myBot = this.instance.ABot;
            //    //brain = new METAbrain(instance, myBot);
            //}
        }
Exemple #4
0
        public ImageDownloader(SecondLife instance, SLNetCom netcoms, InventoryItem item, ImageCache imageCache, string savepath)
        {
            InitializeComponent();
            //SecondLife secondlife, SLNetCom netcoms,
            netcom          = netcoms;
            client          = instance;
            this.item       = item;
            this.imagecache = imageCache;
            this.FilePath   = savepath;

            if (imageCache.ContainsImage(item.AssetUUID))
            {
                SetFinalImage(this.imagecache.GetImage(item.AssetUUID));
            }
            else
            {
                this.Disposed += new EventHandler(InventoryImageConsole_Disposed);
                client.Assets.OnImageReceived += new AssetManager.ImageReceivedCallback(Assets_OnImageReceived);
                SetStatusBoxText("Requesting: " + item.Name);
                client.Assets.RequestImage(item.AssetUUID, ImageType.Normal, 125000.0f, 0);
                this.Decoded = false;
                // Wait for the event to trigger
                queryEvent.WaitOne(8000, false);
            }
        }
Exemple #5
0
        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();
            }
        }
Exemple #6
0
        public frmNotecardEditor(METAboltInstance instance, InventoryItem item, bool nreadonly)
        {
            InitializeComponent();

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

            Disposed += new EventHandler(Notecard_Disposed);

            AddNetcomEvents();

            objectid  = UUID.Zero;
            istaskobj = false;

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

            assetUUID = item.AssetUUID;

            rtbNotecard.TextChanged += new EventHandler(rtbNotecard_TextChanged);

            client.Assets.RequestInventoryAsset(assetUUID, item.UUID, UUID.Zero, item.OwnerID, item.AssetType, true, Assets_OnAssetReceived);

            if (nreadonly)
            {
                rtbNotecard.ReadOnly             = true;
                btnSave.Enabled                  = false;
                toolStripDropDownButton1.Enabled = false;
                toolStripDropDownButton2.Enabled = false;
                rtbNotecard.BackColor            = Color.AliceBlue;
            }
        }
        //ManualResetEvent CurrentlyWornEvent = new ManualResetEvent(false);

        public ActionCommandsIn(METAboltInstance instance)
        {
            this.instance = instance;
            client        = this.instance.Client;
            netcom        = this.instance.Netcom;
            tconsole      = instance.TabConsole;
        }
Exemple #8
0
        public InventoryConsole(METAboltInstance instance)
        {
            InitializeComponent();

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

            //mainForm = new frmMain(this.instance);
            //tconsole = mainForm.TabConsole;
            //tconsole = new TabsConsole(this.instance);

            //ShowAuto = false;

            InitializeTree();

            textfile = client.Self.FirstName + "_" + client.Self.LastName + "_" + "Outfit.mtb";
            path     = Path.Combine(Environment.CurrentDirectory, textfile);

            ReadTextFile();

            netcom.ClientLoggedOut    += new EventHandler(netcom_ClientLoggedOut);
            netcom.ClientDisconnected += new EventHandler <ClientDisconnectEventArgs>(netcom_ClientDisconnected);
            //client.Objects.OnNewAttachment += new ObjectManager.NewAttachmentCallback(Inventory_NewAttachment);
        }
Exemple #9
0
        private Hashtable settings = new Hashtable(); //Hashtable for our loaded settings.

        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();
        }
        public ChatTextManager(ITextPrinter textPrinter, SLNetCom netcom, PrefsManager preferences)
        {
            this.textPrinter = textPrinter;
            this.netcom      = netcom;
            this.prefs       = preferences;

            this.AddNetcomEvents();
        }
Exemple #11
0
        //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();
        }
Exemple #12
0
        public IITabWindow(METAboltInstance instance, InstantMessage e)
        {
            InitializeComponent();

            this.instance = instance;
            netcom        = this.instance.Netcom;
            client        = this.instance.Client;
            ProcessEventArgs(e);
        }
        public frmIMs(SLNetCom netcom, PrefsManager preferences)
        {
            InitializeComponent();

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

            this.AddNetcomEvents();
        }
Exemple #14
0
        public frmTPdialogue(METAboltInstance instance)
        {
            InitializeComponent();

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

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

            InitializeStatusTimer();
        }
        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);
        }
Exemple #16
0
        public METAboltInstance(bool firstInstance)
        {
            SetExceptionReporter();
            Application.ThreadException += new ThreadExceptionHandler().ApplicationThreadException;

            Application.ApplicationExit += new EventHandler(Application_ApplicationExit);

            this.firstInstance = firstInstance;

            //LoadXMLFile(appdir + "\\MuteList.xml");
            LoadGiverItems(appdir + "\\METAgiverItems.xml");

            MakeTPTable();
            CreateLogDir();
            CreateNotesDir();
            CreateSpellingDir();

            client = new GridClient();

            config = new ConfigManager();
            config.ApplyDefault();

            SetSettings();

            netcom = new SLNetCom(client, this);
            InitializeConfig();

            state = new StateManager(this);

            imageCache = new ImageCache();

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

            //CheckForShortcut();

            if (config.CurrentConfig.AIon)
            {
                //myBot = new AIMLbot.Bot();
                InitAI();
            }

            //InitAI();

            RandomPwd();

            METAbolt_Version = Properties.Resources.METAboltVersion.ToString(CultureInfo.CurrentCulture);
            //mutelist = LoadXMLFile("MuteList.xml");
            //mutelist.PrimaryKey = new DataColumn[] { mutelist.Columns["uuid"] };
        }
Exemple #17
0
        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);
        }
        public IMTabWindowGroup(METAboltInstance instance, UUID session, UUID target, string toName, OpenMetaverse.Group grp)
        {
            InitializeComponent();

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

            label1.Text    = "Starting session with " + grp.Name + " please wait...";
            label1.Visible = true;

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

            afffile = this.instance.AffFile = instance.Config.CurrentConfig.SpellLanguage + ".aff";        // "en_GB.aff";
            dicfile = this.instance.DictionaryFile = instance.Config.CurrentConfig.SpellLanguage + ".dic"; // "en_GB.dic";

            this.target  = target;
            this.session = session;
            //this.session = client.Self..AgentID ^ grp.ID;
            this.toName  = toName;
            this.imgroup = grp;
            tab          = instance.TabConsole;

            WaitForSessionStart.Reset();

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

            AddNetcomEvents();

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

            //people = new SafeDictionary<UUID, string>();

            client.Self.GroupChatJoined        += new EventHandler <GroupChatJoinedEventArgs>(Self_OnGroupChatJoin);
            client.Self.ChatSessionMemberAdded += new EventHandler <ChatSessionMemberAddedEventArgs>(Self_OnChatSessionMemberAdded);
            client.Self.ChatSessionMemberLeft  += new EventHandler <ChatSessionMemberLeftEventArgs>(Self_OnChatSessionMemberLeft);
            client.Avatars.UUIDNameReply       += new EventHandler <UUIDNameReplyEventArgs>(Avatars_OnAvatarNames);

            client.Self.RequestJoinGroupChat(session);
            CreateSmileys();

            if (this.instance.IMHistyoryExists(this.toName, true))
            {
                toolStripButton2.Enabled = true;
            }
        }
Exemple #19
0
        public StateManager(METAboltInstance instance)
        {
            this.instance = instance;
            netcom        = this.instance.Netcom;
            client        = this.instance.Client;

            AddNetcomEvents();
            AddClientEvents();
            //InitializeAgentUpdateTimer();

            pointtimer          = new System.Timers.Timer();
            pointtimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            // Set the Interval to 10 seconds.
            pointtimer.Interval = 1000;
            pointtimer.Enabled  = false;
        }
Exemple #20
0
        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;
        }
Exemple #21
0
        public frmProfile(METAboltInstance instance, string fullName, UUID agentID)
        {
            InitializeComponent();

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

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

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

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

            AddClientEvents();
            AddNetcomEvents();

            InitializeProfile();

            if (agentID == client.Self.AgentID)
            {
                rtbAbout.ReadOnly    = false;
                txtWebURL.ReadOnly   = false;
                rtbAboutFL.ReadOnly  = false;
                picSLImage.AllowDrop = true;
                picFLImage.AllowDrop = true;
                //txtDisplayName.ReadOnly = false;
                button7.Enabled         = true;
                button8.Enabled         = true;
                txtTitle.ReadOnly       = false;
                txtDescription.ReadOnly = false;
            }

            lvwColumnSorter             = new NumericStringComparer();
            lvGroups.ListViewItemSorter = lvwColumnSorter;
            lvwPicks.ListViewItemSorter = lvwColumnSorter;
        }
Exemple #22
0
        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;
        }
        public MinimapInterface(METAboltInstance instance, frmMapClient mapClient)
        {
            this.instance = instance;
            netcom        = this.instance.Netcom;
            client        = this.instance.Client;

            //Name = client.Network.CurrentSim.Name; // "Minimap";
            //Description = "Current SIM";

            //client.Grid.OnGridItems += new GridManager.GridItemsCallback(Grid_OnGridItems);
            //client.Grid.RequestMapItems(client.Network.CurrentSim.Handle, OpenMetaverse.GridItemType.Telehub, GridLayerType.Terrain);

            client.Grid.OnCoarseLocationUpdate += new GridManager.CoarseLocationUpdateCallback(Grid_OnCoarseLocationUpdate);
            client.Network.OnCurrentSimChanged += new NetworkManager.CurrentSimChangedCallback(Network_OnCurrentSimChanged);

            printMap();

            //client.Grid.RequestMapItems(client.Network.CurrentSim.Handle, OpenMetaverse.GridItemType.AgentLocations,OpenMetaverse.GridLayer  );
        }
Exemple #24
0
        public IMbox(METAboltInstance instance)
        {
            InitializeComponent();

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

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

            string msg1 = "To view IMs, double click on an IM session from the list.\nWhen the IMbox tab turns BLUE it means there is a new IM.\nThis tab can be detached from the 'PC' icon on the right.";

            toolTip                  = new Popup(customToolTip = new CustomToolTip(instance, msg1));
            toolTip.AutoClose        = false;
            toolTip.FocusOnOpen      = false;
            toolTip.ShowingAnimation = toolTip.HidingAnimation = PopupAnimations.Blend;

            tabsconsole         = instance.TabConsole;
            this.instance.imBox = this;

            Disposed += new EventHandler(IMbox_Disposed);

            netcom.InstantMessageReceived      += new EventHandler <InstantMessageEventArgs>(netcom_InstantMessageReceived);
            this.instance.Config.ConfigApplied += new EventHandler <ConfigAppliedEventArgs>(Config_ConfigApplied);

            label5.Text = this.instance.Config.CurrentConfig.BusyReply;

            label6.Text    = this.instance.Config.CurrentConfig.InitialIMReply;
            label8.Visible = this.instance.Config.CurrentConfig.DisableGroupIMs;
            label9.Visible = this.instance.Config.CurrentConfig.ReplyAI;

            if (string.IsNullOrEmpty(label5.Text))
            {
                label5.Text = "<empty>";
            }

            if (string.IsNullOrEmpty(label6.Text))
            {
                label6.Text = "<empty>";
            }
        }
Exemple #25
0
        public InventoryImageConsole(SecondLife instance, SLNetCom netcoms, InventoryItem item, ImageCache imageCache)
        {
            InitializeComponent();
            //SecondLife secondlife, SLNetCom netcoms,
            netcom          = netcoms;
            client          = instance;
            this.item       = item;
            this.imagecache = imageCache;

            if (imageCache.ContainsImage(item.AssetUUID))
            {
                SetFinalImage(this.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);
            }
        }
Exemple #26
0
        public frmNotecardEditor(METAboltInstance instance, InventoryNotecard item, Primitive obj)
        {
            InitializeComponent();

            this.instance = instance;
            netcom        = this.instance.Netcom;
            client        = this.instance.Client;
            this.item     = item;
            AddNetcomEvents();
            objectid  = obj.ID;
            istaskobj = true;

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

            assetUUID = item.AssetUUID;

            rtbNotecard.TextChanged += new EventHandler(rtbNotecard_TextChanged);

            client.Assets.RequestInventoryAsset(assetUUID, item.UUID, obj.ID, item.OwnerID, item.AssetType, true, Assets_OnAssetReceived);
        }
Exemple #27
0
        public frmMain(frmLogin Login, SLNetCom net, PrefsManager preferences)
        {
            InitializeComponent();

            LoginForm = Login;
            netcom    = net;

            prefs = preferences;

            netcom.NetcomSync             = this;
            netcom.LoginOptions.UserAgent = "SLChat v0.0.0.2";
            netcom.LoginOptions.Author    = "*****@*****.**";
            this.AddNetcomEvents();

            chatManager = new ChatTextManager(new RichTextBoxPrinter(rtbChat), netcom, prefs);

            this.RefreshWindowTitle();

            IMTabs = new Dictionary <string, IMTabWindow>();
            IMForm = new frmIMs(netcom, prefs);
            IMForm.VisibleChanged += new EventHandler(IMForm_VisibleChanged);
        }
Exemple #28
0
        public IMTabWindow(METAboltInstance instance, UUID target, UUID session, string toName)
        {
            InitializeComponent();

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

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

            afffile = this.instance.AffFile = instance.Config.CurrentConfig.SpellLanguage + ".aff";        // "en_GB.aff";
            dicfile = this.instance.DictionaryFile = instance.Config.CurrentConfig.SpellLanguage + ".dic"; // "en_GB.dic";

            this.target  = target;
            this.session = session;
            this.toName  = toName;
            tab          = instance.TabConsole;

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

            AddNetcomEvents();

            tsbTyping.ToolTipText = toName + " is typing";

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

            CreateSmileys();

            if (this.instance.IMHistyoryExists(this.toName, false))
            {
                toolStripButton2.Enabled = true;
            }

            tbtnProfile.ToolTipText = toName + "'s Profile";
        }
Exemple #29
0
        public frmSpelling(METAboltInstance instance, string sentence, string[] swords, bool type, UUID target, UUID session)
        {
            InitializeComponent();

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

            afffile = this.instance.AffFile;        // "en_GB.aff";
            dicfile = this.instance.DictionaryFile; // "en_GB.dic";

            string[] idic = dicfile.Split('.');
            dic = dir + idic[0];

            if (!System.IO.File.Exists(dic + ".csv"))
            {
                System.IO.File.Create(dic + ".csv");
            }

            try
            {
                hunspell.Load(dir + afffile, dir + dicfile);   //("en_us.aff", "en_us.dic");
                ReadWords();
            }
            catch
            {
                //string exp = ex.Message;
            }

            //words = sentence;
            richTextBox1.Text = sentence;
            this.swords       = swords;

            isgroup      = type;
            ischat       = false;
            this.target  = target;
            this.session = session;
        }
Exemple #30
0
        public ImageViewerForm(InventoryItem item, SecondLife secondlife, SLNetCom netcoms, ImageList imageIconList, ImageCache imageCache)
        {
            InitializeComponent();

            this.netcom     = netcoms;
            this.client     = secondlife;
            this.item       = item;
            this.imagecache = imageCache;

            //Let's display the associated icon with the AssetType
            switch (item.AssetType)
            {
            case AssetType.Texture:
            case AssetType.TextureTGA:
            case AssetType.ImageJPEG:
            case AssetType.ImageTGA:
                this.Icon = Utils.MIUtils.MakeIcon(imageIconList.Images["snapshot.ico"], 16, true);
                break;

            default:
                this.Icon = Utils.MIUtils.MakeIcon(imageIconList.Images["texture.ico"], 16, true);
                break;
            }
        }