Пример #1
0
        private void propagateAuras_Click(object sender, EventArgs e)
        {
            COH_CostumeUpdater.auras.PropagationForm propForm = new COH_CostumeUpdater.auras.PropagationForm();
            propForm.ShowDialog();
            System.Collections.ArrayList chkd = new System.Collections.ArrayList();

            foreach (object item in propForm.checkedItems)
            {
                chkd.Add(item.ToString());
            }

            propForm.Close();

            propForm.Dispose();

            string loadedFile = AurasTV_lable.Text;

            if (loadedFile.Length > 2 &&
                !loadedFile.Equals("Current File:") &&
                loadedFile.ToLower().EndsWith("regions.ctm"))
            {
                COH_CostumeUpdater.auras.processAuras pa = new COH_CostumeUpdater.auras.processAuras(loadedFile);

                this.logTxBx.SelectionColor = this.logTxBx.ForeColor;

                this.logTxBx.SelectedText = pa.copyAura(chkd);
            }

            else
            {
                MessageBox.Show("You need to load \"Regions.ctm\" file before Propagation!", "Warrning");
            }
        }
Пример #2
0
        private void loadRegionCTM()
        {
            Regions r1 = new Regions(this.fileName);

            this.AurasTV_lable.Text = r1.filePath;

            COH_CostumeUpdater.auras.processAuras pa = new COH_CostumeUpdater.auras.processAuras(r1.filePath);

            this.logTxBx.SelectionColor = this.logTxBx.ForeColor;

            this.logTxBx.SelectedText = pa.createTreeViewNodes(r1, this.AurasTV, this.CostumeTV_NodeMouseDoubleClick);

            this.tvContextMenu.Popup += new EventHandler(tvContextMenue_Popup);
        }