Beispiel #1
0
        public void ViewProperty(ICollection <FileSystemInfo> infos)
        {
            FileSystemInfo     info  = infos.ElementAt(0);
            SettableAttributes attrs = GetSettableAttributes(infos);

            SentSources = infos;

            DirSizeCalculator calc = new DirSizeCalculator();
            string            name;

            if (infos.Count > 1)
            {
                name = "<multiple selected>";
            }
            else
            {
                name = infos.ElementAt(0).Name;
            }
            PropertyForm pr = new PropertyForm
                                  (name, calc.RequestData, calc.Terminate, attrs, OnAttributeResponse);

            calc.Calculate(infos);
        }
Beispiel #2
0
        public static void LinkGoEvent(object sender, EventArgs e)
        {
            if (sender is Label)
            {
                var label  = sender as Label;
                var target = label.Tag as String;
                if (target != null)
                {
                    switch (target)
                    {
                    case "ASSEMBLY":
                        if (!MainForm.Instance._tabbedPane.IsSelectionDisabled)
                        {
                            PropertyForm.Instance().ShowDialog(MainForm.Instance);
                        }
                        break;

                    default:
                        ProcessR.Start(target);
                        break;
                    }
                }
            }
        }
        private Control RenderOnePanel(SchemaTabDefine tab, Control container, SchemaPropertyValueCollection properties, bool readOnly)
        {
            var panel = new HtmlGenericControl("div");

            panel.ID              = tab.Name;
            panel.Style["width"]  = "100%";
            panel.Style["height"] = "100%";

            this.panelContainer.Controls.Add(panel);

            var pForm = new PropertyForm()
            {
                AutoSaveClientState = false
            };

            pForm.ID       = tab.Name + "_Form";
            pForm.ReadOnly = readOnly;

            //// if (currentScene.Items[this.tabStrip.ID].Recursive == true)
            ////    pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly;

            pForm.Properties.CopyFrom(properties.ToPropertyValues());

            var layouts = new PropertyLayoutSectionCollection();

            layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

            pForm.Layouts.InitFromLayoutSectionCollection(layouts);

            pForm.Style["width"]  = "100%";
            pForm.Style["height"] = "400";

            panel.Controls.Add(pForm);

            return(panel);
        }
Beispiel #4
0
        private Control RenderOnePanel(SchemaTabDefine tab, SchemaPropertyValueCollection properties, bool readOnly)
        {
            RelaxedTabPage tabPage = new RelaxedTabPage()
            {
                Title  = tab.Description,
                TagKey = tab.Name
            };

            this.tabs.TabPages.Add(tabPage);

            PropertyForm pForm = new PropertyForm()
            {
                AutoSaveClientState = false
            };

            pForm.ID = tab.Name + "_Form";

            //// if (currentScene.Items[this.tabStrip.ID].Recursive == true)
            ////    pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly;

            pForm.Properties.CopyFrom(properties.ToPropertyValues());

            PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();

            layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

            pForm.Layouts.InitFromLayoutSectionCollection(layouts);

            pForm.Style["width"]  = "100%";
            pForm.Style["height"] = "400";

            tabPage.Controls.Add(pForm);
            pForm.ReadOnly = readOnly;

            return(tabPage);
        }
 public WatershedPropertyPage()
 {
     watershedPropertyPage = new PropertyForm();
     m_serverObjectType    = "MapServer";
     m_extensionType       = "WatershedSOE";
 }
Beispiel #6
0
        private void pnlCanvas_DoubleClick(object sender, EventArgs e)
        {
            SketchShape shapeUnderCursor;

            if ((object)this.Sketch == null)
                return;

            if ((object)this.CurrentShapeTypeName == null)
            {
                // hit test sketch
                shapeUnderCursor = this.Sketch.GetShapeAtPoint(this.pnlCanvas.PointToClient(new Point(Cursor.Position.X, Cursor.Position.Y)));

                if ((object)shapeUnderCursor != null)
                {
                    this.CurrentShape = shapeUnderCursor;
                    this.pnlCanvas.Refresh();

                    using (PropertyForm frmProperty = new PropertyForm(shapeUnderCursor))
                    {
                        frmProperty.PropertyUpdate += new EventHandler(this.f_PropertyUpdate);
                        frmProperty.ShowDialog(this.ParentForm);
                        frmProperty.PropertyUpdate -= new EventHandler(this.f_PropertyUpdate);
                    }
                }
            }
        }
Beispiel #7
0
		private void options_click(object sender, EventArgs e)
		{
			PropertyForm pf = new PropertyForm("TopViewType", Settings);
			pf.Text = "TopView Options";
			pf.Show();
		}
        private void _SetUp()
        {
            exportTocsvToolStripMenuItem.Enabled = true;
            Form form = null;

            if (activeForm == TMConstants.Form.PROPERTY)
            {
                form = new PropertyForm {
                    TopLevel = false, AutoScroll = true
                };
            }

            if (activeForm == TMConstants.Form.SAVINGS)
            {
                form = new SavingForm {
                    TopLevel = false, AutoScroll = true
                };
            }

            if (activeForm == TMConstants.Form.CONFIGURATION)
            {
                form = new ConfigurationForm {
                    TopLevel = false, AutoScroll = true
                };
            }

            if (activeForm == TMConstants.Form.EMPLOYEE)
            {
                form = new Employee {
                    TopLevel = false, AutoScroll = true
                };
            }

            if (activeForm == TMConstants.Form.REFERENCES)
            {
                form = new ReferenceForm {
                    TopLevel = false, AutoScroll = true
                };
            }

            if (activeForm == TMConstants.Form.LOGINS)
            {
                form = new Logins()
                {
                    TopLevel = false, AutoScroll = true
                };
            }

            if (form != null)
            {
                form.Visible = true;

                var formTab = new TabPage(form.Name);
                formTab.Controls.Add(form);

                TabPg.TabPages.Add(formTab);
                TabPg.SelectedTab = formTab;

                closeTabToolStripMenuItem.Enabled = true;
                LblIntro.Visible = false;
            }
        }
 public WatershedPropertyPage()
 {
     watershedPropertyPage = new PropertyForm();
     m_serverObjectType = "MapServer";
     m_extensionType = "WatershedSOE";
 }