コード例 #1
0
        private void Home_Load(object sender, EventArgs e)

        {
            dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel();

            dockPanel.Dock                       = System.Windows.Forms.DockStyle.Fill;
            dockPanel.DockBackColor              = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(48)))));
            dockPanel.DockBottomPortion          = 150D;
            dockPanel.DockLeftPortion            = 200D;
            dockPanel.DockRightPortion           = 200D;
            dockPanel.DockTopPortion             = 150D;
            dockPanel.Font                       = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(0)));
            dockPanel.Location                   = new System.Drawing.Point(0, 61);
            dockPanel.Name                       = "dockPanel";
            dockPanel.Padding                    = new System.Windows.Forms.Padding(6);
            dockPanel.RightToLeftLayout          = true;
            dockPanel.ShowAutoHideContentOnHover = false;
            dockPanel.Size                       = new System.Drawing.Size(810, 455);
            dockPanel.TabIndex                   = 12;
            dockPanel.Theme                      = this.vS2015DarkTheme1;
            this.panel1.Controls.Add(dockPanel);
            SetSchema(this.vS2015DarkTheme1, null);

            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "OSMaker.config");



            CloseAllContents();

            CreateStandardControls();
            m_propertyWindow.Show(dockPanel, DockState.DockRight);

            m_solutionExplorer.Show(m_propertyWindow.Pane, DockAlignment.Top, 0.5);
            m_propertyWindow.DockState = DockState.DockRightAutoHide;

            m_toolbox.Show(dockPanel, DockState.DockLeftAutoHide);



            dockPanel.ResumeLayout(true, true);

            Accueil MonAccueil = CreateNewAccueil();

            if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
            {
                MonAccueil.MdiParent = this;
                MonAccueil.Show();
            }
            else
            {
                MonAccueil.Show(dockPanel);
            }

            m_sortie.Show(MonAccueil.PanelPane, DockAlignment.Left, 0.5);
            m_sortie.Text      = "Output";
            m_sortie.DockState = DockState.DockBottomAutoHide;
        }
コード例 #2
0
 /// <summary>
 /// Display item properties
 /// </summary>
 private void ItemProperties()
 {
     if (itemsListView.SelectedItems.Count > 0)
     {
         ListViewItem firstSelectedItem = itemsListView.SelectedItems[0];
         if (firstSelectedItem == null)
         {
             return;
         }
         if (firstSelectedItem.Tag == null)
         {
             return;
         }
         string itemText = firstSelectedItem.Text;
         DaItem daItem   = firstSelectedItem.Tag as DaItem;
         if (daItem == null)
         {
             return;
         }
         if (propertyWindow == null)
         {
             return;
         }
         bool result = propertyWindow.DaItem(daItem);
         if (result)
         {
             daItem.DaSubscription.SetDaItemAttributesToServerCompleted -= new SetDaItemAttributesToServerEventHandler(DaSubscription_SetDaItemAttributesToServerCompleted);
             daItem.DaSubscription.SetDaItemAttributesToServerCompleted += new SetDaItemAttributesToServerEventHandler(DaSubscription_SetDaItemAttributesToServerCompleted);
             propertyWindow.Show(this.dockPanel);
         }
     }
 }
コード例 #3
0
ファイル: PDF.cs プロジェクト: stuartaharrison/pdf-magik
        private void EncryptPDF()
        {
            try {
                if (base.SelectedItemPaths.Count() == 0 || base.SelectedItemPaths.Count() > 1)
                {
                    MessageBox.Show("Invalid selection has occured.", "PDF Magik - Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return;
                }

                string selectedPDFPath = base.SelectedItemPaths.First();
                var    window          = new PropertyWindow(selectedPDFPath, selectedPDFPath, false);
                window.Show();
            }
            catch (Exception ex) {
                MessageBox.Show(ex.Message, "PDF Magik - Critical Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
コード例 #4
0
        private void Form1_Load(object sender, EventArgs e)
        {
            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "DockPanel.config");

            dockPanel.Parent.Top    = panel2.Height + 2;
            dockPanel.Parent.Height = this.Height - panel2.Height - 34;
            if (File.Exists(configFile))
            {
                dockPanel.LoadFromXml(configFile, m_deserializeDockContent);
            }
            else
            {
                // preload default windows
                m_helpExplorer.Show(dockPanel);
                m_propertyWindow.Show(dockPanel);
                m_toolbox.Show(dockPanel);
                ShowCommonHelp();
            }
        }
コード例 #5
0
 private void PropertiesMenuItemClick(object sender, EventArgs e)
 {
     _propertyWindow.Show(_dockPanel);
 }
コード例 #6
0
 private void MenuItemPropertyWindow_Click(object sender, System.EventArgs e)
 {
     m_propertyWindow.Show(dockPanel);
 }
コード例 #7
0
        private void menuItemPropertyWindow_Click_1(object sender, EventArgs e)
        {
            PropertyWindow propertyWindow = new PropertyWindow();

            propertyWindow.Show(dockPanel, DockState.DockRight);
        }
コード例 #8
0
        /// <summary>
        /// ReadItemProperties
        /// </summary>
        private void ReadProperties()
        {
            TreeNode selectedNode = browseTreeView.SelectedNode;

            if (selectedNode == null)
            {
                return;
            }
            if (selectedNode.Tag == null)
            {
                return;
            }

            //get the session
            if (browseTreeView.Nodes.Count == 0)
            {
                return;
            }
            TreeNode rootNode = browseTreeView.Nodes[0];

            if (rootNode == null)
            {
                return;
            }
            if (rootNode.Tag == null)
            {
                return;
            }
            if (Type.ReferenceEquals(rootNode.Tag.GetType(), typeof(DaSession)))
            {
                DaSession session = rootNode.Tag as DaSession;
                if (session == null)
                {
                    return;
                }

                if (serviceWindow == null)
                {
                    return;
                }

                if (Type.ReferenceEquals(selectedNode.Tag.GetType(), typeof(DaAddressSpaceElement)))
                {
                    //get AddressSpaceElement Properties List
                    DaAddressSpaceElement addressSpaceElem = selectedNode.Tag as DaAddressSpaceElement;
                    if (addressSpaceElem == null)
                    {
                        return;
                    }
                    propertyWindow.ReadAddressSpaceElemProperties(session, addressSpaceElem.ItemId);
                    propertyWindow.Show(dockPanel);
                }
                else if (Type.ReferenceEquals(selectedNode.Tag.GetType(), typeof(DaProperty)))
                {
                    //get DaProperty Properties
                    DaProperty property = selectedNode.Tag as DaProperty;
                    if (property == null)
                    {
                        return;
                    }
                    propertyWindow.DaProperty(property);
                    propertyWindow.Show(dockPanel);
                }
            }
        }
コード例 #9
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            PropertyWindow pw = new PropertyWindow();

            pw.Show();
        }
コード例 #10
0
ファイル: ExplorerForm.cs プロジェクト: minskowl/MY
 /// <summary>
 /// Handles the Click event of the propertyToolStripMenuItem control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void propertyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _mPropertyWindow.Show(dockPanel);
 }