Example #1
0
        private void AddPostBtn_Click(object sender, EventArgs e)
        {
            ClusterForm cluster = new ClusterForm();

            cluster.ShowDialog();
            bool ok2proceed = false;
            if (!string.IsNullOrEmpty(cluster.ClusterUniqueID))
            {
                AddPostUrl = AddUrl + "?Cluster=" + cluster.ClusterUniqueID;
                ok2proceed = true;
            }
            else if (!string.IsNullOrEmpty(cluster.CreateNewCluster))
            {
                AddPostUrl = AddUrl + "?Cluster=" + cluster.CreateNewCluster;
                ok2proceed = true;
            }

            if (ok2proceed)
            {
                AddPostForm addPost = new AddPostForm();
                addPost.GoogleMap_AddPost = AddPostUrl;
                addPost.ShowInTaskbar = false;
                addPost.TopMost = true;
                addPost.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
                addPost.StartPosition = FormStartPosition.CenterScreen;
                addPost.ShowDialog();
            }
            //Show Message..
            Thread t = new Thread(delegate()
            {
                GoogleMapBrowser.Refresh(WebBrowserRefreshOption.Completely);
                ShowMainMap("http://localhost:3270/");

            });
            t.Start();
        }
Example #2
0
 private void ClusterBtn_Click(object sender, EventArgs e)
 {
     ClusterForm clusterForm = new ClusterForm();
     clusterForm.ShowInTaskbar = false;
     clusterForm.TopMost = true;
     clusterForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     clusterForm.StartPosition = FormStartPosition.CenterScreen;
     clusterForm.ShowDialog();
 }