Example #1
0
        private void inernetGatewayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TerraformGen tfGen = new TerraformGen();

            // For Loading Security Group
            List <amazonInternetGateway> igwList = new List <amazonInternetGateway>();

            tfGen.LoadInternetGateway(drawFilename, igwList);

            foreach (amazonInternetGateway igw in igwList)
            {
                richTextBox1.Text += igw.ToString();
            }
            dataGridView1.DataSource = igwList;
        }
Example #2
0
        private string GenerateInternetGateway(string InputFile)
        {
            TerraformGen tfGen    = new TerraformGen();
            string       outputTF = "";
            // For Loading Security Group
            List <amazonInternetGateway> igwList = new List <amazonInternetGateway>();

            tfGen.LoadInternetGateway(InputFile, igwList);

            foreach (amazonInternetGateway igw in igwList)
            {
                outputTF += igw.ToString();
            }
            return(outputTF);
        }
Example #3
0
        private void LoadPropWindowWithIGW(string IGName)
        {
            TerraformGen tfGen = new TerraformGen();
            // For Loading IGW
            List <amazonInternetGateway> igList = new List <amazonInternetGateway>();

            tfGen.LoadInternetGateway(GlobalVars.varPrj.DiagramFilename, igList);

            foreach (amazonInternetGateway aIG in igList)
            {
                if (aIG.name == IGName)
                {
                    prgPropGrid.SelectedObject = aIG;
                    return;
                }
            }
        }
Example #4
0
        private void LoadTreeWithInternetGateway()
        {
            TerraformGen tfGen = new TerraformGen();

            // For Loading Internet Gateway
            List <amazonInternetGateway> igList = new List <amazonInternetGateway>();

            tfGen.LoadInternetGateway(GlobalVars.varPrj.DiagramFilename, igList);

            foreach (amazonInternetGateway ig in igList)
            {
                TreeNode[] tvwNode = tvwStructure.Nodes.Find("IG:" + ig.vpc_id, true);

                if (tvwNode.Length > 0)
                {
                    tvwNode[0].Nodes.Add(ig.name, "IG[" + ig.name + "|" + ig.route_name + "]");

                    tvwNode[0].ExpandAll();
                }
            }
        }