コード例 #1
0
ファイル: Utama.cs プロジェクト: fadholifh/retakan
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            PanelMain.Hide();
            WebMaps.Hide();
            PanelSearch.Show();
            PnlBg.Hide();
            BtnCari.Hide();
            DTPicker.Hide();
            TxtCari.Focus();
            PnlTxt.Show();
            DGView.Show();
            BtnBTempat.Image = global::Retakan.Properties.Resources.tempat_on;
            BtnBWaktu.Image  = global::Retakan.Properties.Resources.waktu_off;
            BtnTerkini.Image = global::Retakan.Properties.Resources.terkini_off;
            BtnMaps.Image    = global::Retakan.Properties.Resources.peta_off;
            BtnSearch.Image  = global::Retakan.Properties.Resources.cari_on;

            //insert
            koneksiObj.Open();
            SqlDataAdapter adapter = new SqlDataAdapter();
            string         sql     = null;

            sql = "insert into DataGempa (gempa,tempat,waktu,tsunami) values('" + C.mag + "','" + C.place + "','" + C.time.ToString("MM/dd/yyy hh:mm:ss") + "','" + C.tsunami + "')";
            try
            {
                adapter.InsertCommand = new SqlCommand(sql, koneksiObj);
                adapter.InsertCommand.ExecuteNonQuery();

                koneksiObj.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show("ex" + ex);
            }
        }
コード例 #2
0
ファイル: Utama.cs プロジェクト: fadholifh/retakan
        private void BtnTerkini_Click(object sender, EventArgs e)
        {
            PanelMain.Show();
            WebMaps.Hide();
            PanelSearch.Hide();
            BtnTerkini.Image = global::Retakan.Properties.Resources.terkini_on;
            BtnMaps.Image    = global::Retakan.Properties.Resources.peta_off;
            BtnSearch.Image  = global::Retakan.Properties.Resources.cari_off;

            rssData        = getRssData("https://rss.sciencedaily.com/earth_climate/earthquakes.xml");
            LblJudul1.Text = rssData[0, 0];
            LblJudul2.Text = rssData[1, 0];
            LblJudul3.Text = rssData[2, 0];
            LblIsi1.Text   = rssData[0, 1];
            LblIsi2.Text   = rssData[1, 1];
            LblIsi3.Text   = rssData[2, 1];

            A.AmbilDataBesar();
            D.AmbilDataMenengah();
            C.AmbilDataKecil();

            LblMag1.Text    = A.mag.ToString("0.0", System.Globalization.CultureInfo.InvariantCulture);
            LblLokasi1.Text = A.place;
            LblWaktu1.Text  = A.time.ToString();
            if (A.tsunami == "0")
            {
                LblPTsunami1.Text = "Tidak Berpotensi Tsunami";
            }
            else
            {
                LblPTsunami1.Text = "Berpotensi Tsunami";
            }
            Console.WriteLine(A.mag.ToString("0.0", System.Globalization.CultureInfo.InvariantCulture) + " Mag");

            LblMag2.Text    = D.mag.ToString("0.0", System.Globalization.CultureInfo.InvariantCulture);;
            LblLokasi2.Text = D.place;
            LblWaktu2.Text  = D.time.ToString();
            Console.WriteLine(D.mag.ToString("0.0", System.Globalization.CultureInfo.InvariantCulture) + " Mag");
            Console.WriteLine(D.tsunami);
            if (D.tsunami == "0")
            {
                LblPTsunami2.Text = "Tidak Berpotensi Tsunami";
            }
            else
            {
                LblPTsunami2.Text = "Berpotensi Tsunami";
            }
            LblMag3.Text    = C.mag.ToString("0.0", System.Globalization.CultureInfo.InvariantCulture);;
            LblLokasi3.Text = C.place;
            LblWaktu3.Text  = C.time.ToString();
            if (C.tsunami == "0")
            {
                LblPTsunami3.Text = "Tidak Berpotensi Tsunami";
            }
            else
            {
                LblPTsunami3.Text = "Berpotensi Tsunami";
            }
            Console.WriteLine(C.mag.ToString("0.0", System.Globalization.CultureInfo.InvariantCulture) + " Mag");
        }
コード例 #3
0
ファイル: Utama.cs プロジェクト: fadholifh/retakan
 private void BtnMaps_Click(object sender, EventArgs e)
 {
     PanelMain.Hide();
     WebMaps.Show();
     PanelSearch.Hide();
     BtnTerkini.Image = global::Retakan.Properties.Resources.terkini_off;
     BtnMaps.Image    = global::Retakan.Properties.Resources.peta_on;
     BtnSearch.Image  = global::Retakan.Properties.Resources.cari_off;
 }
コード例 #4
0
        private void OpenSearch()
        {
            SearchManager.SearchBox = TxtSearch;
            SearchManager.TextArea  = TextArea;

            if (!SearchIsOpen)
            {
                SearchIsOpen = true;
                InvokeIfNeeded(delegate() {
                    PanelSearch.Visible = true;
                    PanelSearch.BringToFront();
                    TxtSearch.Text = SearchManager.LastSearch;
                    TxtSearch.Focus();
                    TxtSearch.SelectAll();
                });
            }
            else
            {
                InvokeIfNeeded(delegate() {
                    TxtSearch.Focus();
                    TxtSearch.SelectAll();
                });
            }
        }
コード例 #5
0
ファイル: MainApp.Designer.cs プロジェクト: pippolei/NewStock
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainApp));
     this.manMenu = new System.Windows.Forms.MenuStrip();
     this.optionToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this.setDatabaseToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.operationToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.resetRuleToolStripMenuItem     = new System.Windows.Forms.ToolStripMenuItem();
     this.resetSimulateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.truncateToolStripMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this.tab_main                 = new System.Windows.Forms.TabControl();
     this.tab_database             = new System.Windows.Forms.TabPage();
     this.pnl_database             = new StockAnalysis.Panel.PanelLoadData();
     this.tab_calcrule             = new System.Windows.Forms.TabPage();
     this.panelCalculate1          = new StockAnalysis.Panel.PanelRule();
     this.tab_combAnalysis         = new System.Windows.Forms.TabPage();
     this.panelAnalysis21          = new StockAnalysis.Panel.PanelAnalysis2();
     this.tab_simulate             = new System.Windows.Forms.TabPage();
     this.pnl_simulate             = new StockAnalysis.Panel.PanelSimulate();
     this.tab_search               = new System.Windows.Forms.TabPage();
     this.pnl_search               = new StockAnalysis.Panel.PanelSearch();
     this.tab_util                 = new System.Windows.Forms.TabPage();
     this.panelUtil1               = new StockAnalysis.PanelUtil();
     this.notifyIcon1              = new System.Windows.Forms.NotifyIcon(this.components);
     this.contextMenuStrip1        = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.restoreToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.exitToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.manMenu.SuspendLayout();
     this.tab_main.SuspendLayout();
     this.tab_database.SuspendLayout();
     this.tab_calcrule.SuspendLayout();
     this.tab_combAnalysis.SuspendLayout();
     this.tab_simulate.SuspendLayout();
     this.tab_search.SuspendLayout();
     this.tab_util.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // manMenu
     //
     this.manMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.optionToolStripMenuItem,
         this.operationToolStripMenuItem
     });
     this.manMenu.Location = new System.Drawing.Point(0, 0);
     this.manMenu.Name     = "manMenu";
     this.manMenu.Size     = new System.Drawing.Size(892, 24);
     this.manMenu.TabIndex = 1;
     this.manMenu.Text     = "manMenu";
     //
     // optionToolStripMenuItem
     //
     this.optionToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.setDatabaseToolStripMenuItem
     });
     this.optionToolStripMenuItem.Name = "optionToolStripMenuItem";
     this.optionToolStripMenuItem.Size = new System.Drawing.Size(53, 20);
     this.optionToolStripMenuItem.Text = "Option";
     //
     // setDatabaseToolStripMenuItem
     //
     this.setDatabaseToolStripMenuItem.Name   = "setDatabaseToolStripMenuItem";
     this.setDatabaseToolStripMenuItem.Size   = new System.Drawing.Size(136, 22);
     this.setDatabaseToolStripMenuItem.Text   = "SetDatabase";
     this.setDatabaseToolStripMenuItem.Click += new System.EventHandler(this.setDatabaseToolStripMenuItem_Click);
     //
     // operationToolStripMenuItem
     //
     this.operationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.resetRuleToolStripMenuItem,
         this.resetSimulateToolStripMenuItem,
         this.truncateToolStripMenuItem
     });
     this.operationToolStripMenuItem.Name = "operationToolStripMenuItem";
     this.operationToolStripMenuItem.Size = new System.Drawing.Size(47, 20);
     this.operationToolStripMenuItem.Text = "Clear";
     //
     // resetRuleToolStripMenuItem
     //
     this.resetRuleToolStripMenuItem.Name   = "resetRuleToolStripMenuItem";
     this.resetRuleToolStripMenuItem.Size   = new System.Drawing.Size(172, 22);
     this.resetRuleToolStripMenuItem.Text   = "Reset Rule Filter";
     this.resetRuleToolStripMenuItem.Click += new System.EventHandler(this.resetRuleToolStripMenuItem_Click);
     //
     // resetSimulateToolStripMenuItem
     //
     this.resetSimulateToolStripMenuItem.Name   = "resetSimulateToolStripMenuItem";
     this.resetSimulateToolStripMenuItem.Size   = new System.Drawing.Size(172, 22);
     this.resetSimulateToolStripMenuItem.Text   = "Reset Simulate";
     this.resetSimulateToolStripMenuItem.Click += new System.EventHandler(this.resetSimulateToolStripMenuItem_Click);
     //
     // truncateToolStripMenuItem
     //
     this.truncateToolStripMenuItem.Name            = "truncateToolStripMenuItem";
     this.truncateToolStripMenuItem.Size            = new System.Drawing.Size(172, 22);
     this.truncateToolStripMenuItem.Text            = "Truncate All";
     this.truncateToolStripMenuItem.Click          += new System.EventHandler(this.truncateToolStripMenuItem_Click);
     this.truncateToolStripMenuItem.VisibleChanged += new System.EventHandler(this.truncateToolStripMenuItem_VisibleChanged);
     //
     // tab_main
     //
     this.tab_main.Controls.Add(this.tab_database);
     this.tab_main.Controls.Add(this.tab_calcrule);
     this.tab_main.Controls.Add(this.tab_combAnalysis);
     this.tab_main.Controls.Add(this.tab_simulate);
     this.tab_main.Controls.Add(this.tab_search);
     this.tab_main.Controls.Add(this.tab_util);
     this.tab_main.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.tab_main.Location              = new System.Drawing.Point(0, 24);
     this.tab_main.Name                  = "tab_main";
     this.tab_main.SelectedIndex         = 0;
     this.tab_main.Size                  = new System.Drawing.Size(892, 560);
     this.tab_main.TabIndex              = 0;
     this.tab_main.SelectedIndexChanged += new System.EventHandler(this.tab_main_SelectedIndexChanged);
     //
     // tab_database
     //
     this.tab_database.Controls.Add(this.pnl_database);
     this.tab_database.Location = new System.Drawing.Point(4, 22);
     this.tab_database.Name     = "tab_database";
     this.tab_database.Padding  = new System.Windows.Forms.Padding(3);
     this.tab_database.Size     = new System.Drawing.Size(884, 534);
     this.tab_database.TabIndex = 0;
     this.tab_database.Text     = "LoadData";
     this.tab_database.UseVisualStyleBackColor = true;
     //
     // pnl_database
     //
     this.pnl_database.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnl_database.Location = new System.Drawing.Point(3, 3);
     this.pnl_database.Name     = "pnl_database";
     this.pnl_database.Size     = new System.Drawing.Size(878, 528);
     this.pnl_database.TabIndex = 0;
     //
     // tab_calcrule
     //
     this.tab_calcrule.Controls.Add(this.panelCalculate1);
     this.tab_calcrule.Location = new System.Drawing.Point(4, 22);
     this.tab_calcrule.Name     = "tab_calcrule";
     this.tab_calcrule.Size     = new System.Drawing.Size(884, 533);
     this.tab_calcrule.TabIndex = 10;
     this.tab_calcrule.Text     = "CalcRule";
     this.tab_calcrule.UseVisualStyleBackColor = true;
     //
     // panelCalculate1
     //
     this.panelCalculate1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelCalculate1.Location = new System.Drawing.Point(0, 0);
     this.panelCalculate1.Name     = "panelCalculate1";
     this.panelCalculate1.Size     = new System.Drawing.Size(884, 533);
     this.panelCalculate1.TabIndex = 0;
     //
     // tab_combAnalysis
     //
     this.tab_combAnalysis.Controls.Add(this.panelAnalysis21);
     this.tab_combAnalysis.Location = new System.Drawing.Point(4, 22);
     this.tab_combAnalysis.Name     = "tab_combAnalysis";
     this.tab_combAnalysis.Size     = new System.Drawing.Size(884, 533);
     this.tab_combAnalysis.TabIndex = 9;
     this.tab_combAnalysis.Text     = "Comb Analysis";
     this.tab_combAnalysis.UseVisualStyleBackColor = true;
     //
     // panelAnalysis21
     //
     this.panelAnalysis21.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelAnalysis21.Location = new System.Drawing.Point(0, 0);
     this.panelAnalysis21.Name     = "panelAnalysis21";
     this.panelAnalysis21.Size     = new System.Drawing.Size(884, 533);
     this.panelAnalysis21.TabIndex = 0;
     //
     // tab_simulate
     //
     this.tab_simulate.Controls.Add(this.pnl_simulate);
     this.tab_simulate.Location = new System.Drawing.Point(4, 22);
     this.tab_simulate.Name     = "tab_simulate";
     this.tab_simulate.Size     = new System.Drawing.Size(884, 533);
     this.tab_simulate.TabIndex = 5;
     this.tab_simulate.Text     = "Simulate";
     this.tab_simulate.UseVisualStyleBackColor = true;
     //
     // pnl_simulate
     //
     this.pnl_simulate.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnl_simulate.Location = new System.Drawing.Point(0, 0);
     this.pnl_simulate.Name     = "pnl_simulate";
     this.pnl_simulate.Size     = new System.Drawing.Size(884, 533);
     this.pnl_simulate.TabIndex = 0;
     //
     // tab_search
     //
     this.tab_search.Controls.Add(this.pnl_search);
     this.tab_search.Location = new System.Drawing.Point(4, 22);
     this.tab_search.Name     = "tab_search";
     this.tab_search.Size     = new System.Drawing.Size(884, 533);
     this.tab_search.TabIndex = 3;
     this.tab_search.Text     = "Search";
     this.tab_search.UseVisualStyleBackColor = true;
     //
     // pnl_search
     //
     this.pnl_search.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnl_search.Location = new System.Drawing.Point(0, 0);
     this.pnl_search.Name     = "pnl_search";
     this.pnl_search.Size     = new System.Drawing.Size(884, 533);
     this.pnl_search.TabIndex = 0;
     //
     // tab_util
     //
     this.tab_util.Controls.Add(this.panelUtil1);
     this.tab_util.Location = new System.Drawing.Point(4, 22);
     this.tab_util.Name     = "tab_util";
     this.tab_util.Size     = new System.Drawing.Size(884, 533);
     this.tab_util.TabIndex = 11;
     this.tab_util.Text     = "Utility";
     this.tab_util.UseVisualStyleBackColor = true;
     //
     // panelUtil1
     //
     this.panelUtil1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelUtil1.Location = new System.Drawing.Point(0, 0);
     this.panelUtil1.Name     = "panelUtil1";
     this.panelUtil1.Size     = new System.Drawing.Size(884, 533);
     this.panelUtil1.TabIndex = 0;
     //
     // notifyIcon1
     //
     this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
     this.notifyIcon1.Icon             = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
     this.notifyIcon1.Text             = "StockAnalysis";
     this.notifyIcon1.Visible          = true;
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.restoreToolStripMenuItem,
         this.exitToolStripMenuItem
     });
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(122, 48);
     //
     // restoreToolStripMenuItem
     //
     this.restoreToolStripMenuItem.Name   = "restoreToolStripMenuItem";
     this.restoreToolStripMenuItem.Size   = new System.Drawing.Size(121, 22);
     this.restoreToolStripMenuItem.Text   = "Restore";
     this.restoreToolStripMenuItem.Click += new System.EventHandler(this.restoreToolStripMenuItem_Click);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name   = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.Size   = new System.Drawing.Size(121, 22);
     this.exitToolStripMenuItem.Text   = "Exit";
     this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
     //
     // MainApp
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(892, 584);
     this.Controls.Add(this.tab_main);
     this.Controls.Add(this.manMenu);
     this.Name    = "MainApp";
     this.Text    = "Analysis";
     this.Resize += new System.EventHandler(this.MainApp_Resize);
     this.manMenu.ResumeLayout(false);
     this.manMenu.PerformLayout();
     this.tab_main.ResumeLayout(false);
     this.tab_database.ResumeLayout(false);
     this.tab_calcrule.ResumeLayout(false);
     this.tab_combAnalysis.ResumeLayout(false);
     this.tab_simulate.ResumeLayout(false);
     this.tab_search.ResumeLayout(false);
     this.tab_util.ResumeLayout(false);
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #6
0
ファイル: Utama.cs プロジェクト: fadholifh/retakan
        private void InitializePosition()
        {
            // Set Extend Attribute
            this.ClientSize     = new System.Drawing.Size(800, 600);
            PanelMain.BackColor = Color.FromArgb(20, 0, 0, 0);
            //PanelMain.ClientSize = new System.Drawing.Size(697, 522);
            PanelA1.BackColor      = Color.FromArgb(180, 158, 33, 36);
            PanelA2.BackColor      = Color.FromArgb(150, 158, 33, 36);
            PanelB1.BackColor      = Color.FromArgb(180, 156, 77, 35);
            PanelB2.BackColor      = Color.FromArgb(150, 156, 77, 35);
            PanelC1.BackColor      = Color.FromArgb(180, 17, 147, 36);
            PanelC2.BackColor      = Color.FromArgb(150, 17, 147, 36);
            PanelAtas.BackColor    = Color.FromArgb(70, 0, 0, 0);
            PanelKiri.BackColor    = Color.FromArgb(50, 0, 0, 0);
            PanelSearch.BackColor  = Color.FromArgb(0, 255, 255, 255);
            PnlTxt.BackColor       = Color.FromArgb(0, 255, 255, 255);
            PnlBg.BackColor        = Color.FromArgb(80, 255, 255, 255);
            DGView.BackgroundColor = Color.Lavender;
            panel1.BackColor       = Color.Transparent;

            LblJudul1.BackColor = Color.Transparent;
            LblJudul2.BackColor = Color.Transparent;
            LblJudul3.BackColor = Color.Transparent;
            LblIsi1.BackColor   = Color.Transparent;
            LblIsi2.BackColor   = Color.Transparent;
            LblIsi3.BackColor   = Color.Transparent;

            LblSkala1.BackColor    = Color.Transparent;
            LblSkala2.BackColor    = Color.Transparent;
            LblSkala3.BackColor    = Color.Transparent;
            LblMag1.BackColor      = Color.Transparent;
            LblMag2.BackColor      = Color.Transparent;
            LblMag3.BackColor      = Color.Transparent;
            LblSR1.BackColor       = Color.Transparent;
            LblSR2.BackColor       = Color.Transparent;
            LblSR3.BackColor       = Color.Transparent;
            LblLokasi1.BackColor   = Color.Transparent;
            LblLokasi2.BackColor   = Color.Transparent;
            LblLokasi3.BackColor   = Color.Transparent;
            LblWaktu1.BackColor    = Color.Transparent;
            LblWaktu2.BackColor    = Color.Transparent;
            LblWaktu3.BackColor    = Color.Transparent;
            LblPTsunami1.BackColor = Color.Transparent;
            LblPTsunami2.BackColor = Color.Transparent;
            LblPTsunami3.BackColor = Color.Transparent;

            LblSkala1.Font    = new Font("Segoe UI", 14, FontStyle.Bold);
            LblMag1.Font      = new Font("Myraid Pro", 72, FontStyle.Bold);
            LblSR1.Font       = new Font("Segoe UI", 14, FontStyle.Bold);
            LblLokasi1.Font   = new Font("Segoe UI", 10, FontStyle.Bold);
            LblWaktu1.Font    = new Font("Segoe UI", 8, FontStyle.Bold);
            LblPTsunami1.Font = new Font("Segoe UI", 8, FontStyle.Bold);
            LblSkala2.Font    = new Font("Segoe UI", 14, FontStyle.Bold);
            LblMag2.Font      = new Font("Myraid Pro", 72, FontStyle.Bold);
            LblSR2.Font       = new Font("Segoe UI", 14, FontStyle.Bold);
            LblLokasi2.Font   = new Font("Segoe UI", 10, FontStyle.Bold);
            LblWaktu2.Font    = new Font("Segoe UI", 8, FontStyle.Bold);
            LblPTsunami2.Font = new Font("Segoe UI", 8, FontStyle.Bold);
            LblSkala3.Font    = new Font("Segoe UI", 14, FontStyle.Bold);
            LblMag3.Font      = new Font("Myraid Pro", 72, FontStyle.Bold);
            LblSR3.Font       = new Font("Segoe UI", 14, FontStyle.Bold);
            LblLokasi3.Font   = new Font("Segoe UI", 10, FontStyle.Bold);
            LblWaktu3.Font    = new Font("Segoe UI", 8, FontStyle.Bold);
            LblPTsunami3.Font = new Font("Segoe UI", 8, FontStyle.Bold);

            BtnMinimize.Text      = "";
            BtnMinimize.BackColor = Color.Transparent;
            BtnMinimize.FlatAppearance.BorderSize = 0;
            BtnMinimize.FlatStyle = FlatStyle.Flat;
            BtnMinimize.FlatAppearance.MouseDownBackColor = Color.Transparent;
            BtnMinimize.FlatAppearance.MouseOverBackColor = Color.Transparent;

            BtnClose.Text      = "";
            BtnClose.BackColor = Color.Transparent;
            BtnClose.FlatAppearance.BorderSize = 0;
            BtnClose.FlatStyle = FlatStyle.Flat;
            BtnClose.FlatAppearance.MouseDownBackColor = Color.Transparent;
            BtnClose.FlatAppearance.MouseOverBackColor = Color.Transparent;

            BtnTerkini.Text      = "";
            BtnTerkini.BackColor = Color.Transparent;
            BtnTerkini.FlatAppearance.BorderSize = 0;
            BtnTerkini.FlatStyle = FlatStyle.Flat;
            BtnTerkini.FlatAppearance.MouseDownBackColor = Color.Transparent;
            BtnTerkini.FlatAppearance.MouseOverBackColor = Color.Transparent;

            BtnMaps.Text      = "";
            BtnMaps.BackColor = Color.Transparent;
            BtnMaps.FlatAppearance.BorderSize = 0;
            BtnMaps.FlatStyle = FlatStyle.Flat;
            BtnMaps.FlatAppearance.MouseDownBackColor = Color.Transparent;
            BtnMaps.FlatAppearance.MouseOverBackColor = Color.Transparent;

            BtnSearch.Text      = "";
            BtnSearch.BackColor = Color.Transparent;
            BtnSearch.FlatAppearance.BorderSize = 0;
            BtnSearch.FlatStyle = FlatStyle.Flat;
            BtnSearch.FlatAppearance.MouseDownBackColor = Color.Transparent;
            BtnSearch.FlatAppearance.MouseOverBackColor = Color.Transparent;

            BtnCari.Text      = "";
            BtnCari.BackColor = Color.Transparent;
            BtnCari.FlatAppearance.BorderSize = 0;
            BtnCari.FlatStyle = FlatStyle.Flat;
            BtnCari.FlatAppearance.MouseDownBackColor = Color.Transparent;
            BtnCari.FlatAppearance.MouseOverBackColor = Color.Transparent;

            BtnBTempat.Text      = "";
            BtnBTempat.BackColor = Color.Transparent;
            BtnBTempat.FlatAppearance.BorderSize = 0;
            BtnBTempat.FlatStyle = FlatStyle.Flat;
            BtnBTempat.FlatAppearance.MouseDownBackColor = Color.Transparent;
            BtnBTempat.FlatAppearance.MouseOverBackColor = Color.Transparent;

            BtnBWaktu.Text      = "";
            BtnBWaktu.BackColor = Color.Transparent;
            BtnBWaktu.FlatAppearance.BorderSize = 0;
            BtnBWaktu.FlatStyle = FlatStyle.Flat;
            BtnBWaktu.FlatAppearance.MouseDownBackColor = Color.Transparent;
            BtnBWaktu.FlatAppearance.MouseOverBackColor = Color.Transparent;


            //bound
            PanelAtas.SetBounds(0, 0, 800, 90);
            PanelKiri.SetBounds(0, 90, 80, 510);
            PanelMain.SetBounds(80, 90, 720, 510);
            PanelA1.SetBounds(0, 0, 240, 171);
            PanelA2.SetBounds(240, 0, 480, 171);
            PanelB1.SetBounds(0, 171, 240, 171);
            PanelB2.SetBounds(240, 171, 480, 171);
            PanelC1.SetBounds(0, 342, 240, 172);
            PanelC2.SetBounds(240, 342, 480, 171);
            PanelSearch.SetBounds(80, 90, 720, 510);
            PnlTxt.SetBounds(230, 70, 249, 24);
            DGView.SetBounds(230, 70, 249, 24);
            BtnBTempat.SetBounds(200, 20, 150, 25);
            BtnBWaktu.SetBounds(360, 20, 150, 25);
            BtnCari.SetBounds(430, 69, 39, 25);
            TxtCari.SetBounds(10, 1, 230, 25);
            WebMaps.SetBounds(80, 90, 720, 510);
            BtnMinimize.SetBounds(702, 0, 49, 21);
            BtnClose.SetBounds(751, 0, 49, 21);
            BtnTerkini.SetBounds(3, 20, 73, 73);
            BtnMaps.SetBounds(3, 104, 73, 73);
            BtnSearch.SetBounds(3, 188, 73, 73);
            DGView.SetBounds(35, 110, 650, 375);
            PnlBg.SetBounds(35, 110, 650, 375);
            DTPicker.SetBounds(230, 72, 200, 28);

            LblJudul1.SetBounds(5, 15, 230, 20);
            LblJudul2.SetBounds(5, 15, 230, 20);
            LblJudul3.SetBounds(5, 15, 230, 20);
            LblIsi1.SetBounds(5, 55, 230, 100);
            LblIsi2.SetBounds(5, 55, 230, 100);
            LblIsi3.SetBounds(5, 55, 230, 100);

            LblSkala1.SetBounds(5, 5, 73, 73);
            LblMag1.SetBounds(150, 30, 73, 73);
            LblSR1.SetBounds(300, 45, 73, 73);
            LblLokasi1.SetBounds(5, 145, 73, 73);
            LblWaktu1.SetBounds(350, 5, 73, 73);
            LblPTsunami1.SetBounds(335, 150, 73, 73);
            LblSkala2.SetBounds(5, 5, 73, 73);
            LblMag2.SetBounds(150, 30, 73, 73);
            LblSR2.SetBounds(300, 45, 73, 73);
            LblLokasi2.SetBounds(5, 145, 73, 73);
            LblWaktu2.SetBounds(350, 5, 73, 73);
            LblPTsunami2.SetBounds(335, 150, 73, 73);
            LblSkala3.SetBounds(5, 5, 73, 73);
            LblMag3.SetBounds(150, 30, 73, 73);
            LblSR3.SetBounds(300, 45, 73, 73);
            LblLokasi3.SetBounds(5, 145, 73, 73);
            LblWaktu3.SetBounds(350, 5, 73, 73);
            LblPTsunami3.SetBounds(335, 150, 73, 73);

            label44.SetBounds(10, 20, 31, 30);
            label43.SetBounds(50, 20, 295, 30);
            label42.SetBounds(350, 20, 186, 30);
            label41.SetBounds(540, 20, 100, 30);

            label1.SetBounds(10, 65, 31, 23);
            label2.SetBounds(50, 65, 295, 23);
            label3.SetBounds(350, 65, 186, 23);
            label4.SetBounds(540, 65, 100, 23);
            label5.SetBounds(10, 95, 31, 23);
            label6.SetBounds(50, 95, 295, 23);
            label7.SetBounds(350, 95, 186, 23);
            label8.SetBounds(540, 95, 100, 23);
            label12.SetBounds(10, 125, 31, 23);
            label11.SetBounds(50, 125, 295, 23);
            label10.SetBounds(350, 125, 186, 23);
            label9.SetBounds(540, 125, 100, 23);
            label16.SetBounds(10, 155, 31, 23);
            label15.SetBounds(50, 155, 295, 23);
            label14.SetBounds(350, 155, 186, 23);
            label13.SetBounds(540, 155, 100, 23);
            label20.SetBounds(10, 185, 31, 23);
            label19.SetBounds(50, 185, 295, 23);
            label18.SetBounds(350, 185, 186, 23);
            label17.SetBounds(540, 185, 100, 23);
            label24.SetBounds(10, 215, 31, 23);
            label23.SetBounds(50, 215, 295, 23);
            label22.SetBounds(350, 215, 186, 23);
            label21.SetBounds(540, 215, 100, 23);
            label28.SetBounds(10, 245, 31, 23);
            label27.SetBounds(50, 245, 295, 23);
            label26.SetBounds(350, 245, 186, 23);
            label25.SetBounds(540, 245, 100, 23);
            label32.SetBounds(10, 275, 31, 23);
            label31.SetBounds(50, 275, 295, 23);
            label30.SetBounds(350, 275, 186, 23);
            label29.SetBounds(540, 275, 100, 23);
            label36.SetBounds(10, 305, 31, 23);
            label35.SetBounds(50, 305, 295, 23);
            label34.SetBounds(350, 305, 186, 23);
            label33.SetBounds(540, 305, 100, 23);
            label40.SetBounds(10, 335, 31, 23);
            label39.SetBounds(50, 335, 295, 23);
            label38.SetBounds(350, 335, 186, 23);
            label37.SetBounds(540, 335, 100, 23);
            panel1.SetBounds(10, 5, 183, 74);



            this.BackgroundImage = global::Retakan.Properties.Resources.bg2;
            //PanelKiri.BackgroundImage = global::Retakan.Properties.Resources.kiri;
            //PanelAtas.BackgroundImage = global::Retakan.Properties.Resources.header;
            BtnClose.Image          = global::Retakan.Properties.Resources.close;
            BtnMinimize.Image       = global::Retakan.Properties.Resources.minim;
            BtnTerkini.Image        = global::Retakan.Properties.Resources.terkini_off;
            PanelA2.BackgroundImage = global::Retakan.Properties.Resources.merah_;
            PanelB2.BackgroundImage = global::Retakan.Properties.Resources.orange_;
            PanelC2.BackgroundImage = global::Retakan.Properties.Resources.hijau_;
            BtnMaps.Image           = global::Retakan.Properties.Resources.peta_off;
            BtnSearch.Image         = global::Retakan.Properties.Resources.cari_off;
            PnlTxt.BackgroundImage  = global::Retakan.Properties.Resources.caritxt;
            BtnCari.Image           = global::Retakan.Properties.Resources.btncari_off;
            BtnBTempat.Image        = global::Retakan.Properties.Resources.tempat_on;
            BtnBWaktu.Image         = global::Retakan.Properties.Resources.waktu_off;
            panel1.BackgroundImage  = global::Retakan.Properties.Resources.unnamed;
        }