Example #1
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);
        }
        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);
        }
        public InventoryConsole(METAboltInstance instance)
        {
            InitializeComponent();

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

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

            Disposed += new EventHandler(InventoryConsole_Disposed);

            textfile = "\\" + client.Self.FirstName + "_" + client.Self.LastName + "_" + "Outfit.mtb";
            this.path = Path.Combine(METAbolt.DataFolder.GetDataFolder(), textfile);

            ReadTextFile();

            //baseinv.RestoreFromDisk

            InitializeImageList();
            InitializeTree();
            GetRoot();

            instance.insconsole = this;

            //TreeViewWalker treeViewWalker = new TreeViewWalker(treeView1);
        }