Beispiel #1
0
        private void TreenavigatorItemsUpdate(TreeNavigator sender, SelectionStateChangedEventArgs e)
        {
            TreeNavigator tree = sender as TreeNavigator;
            int           i    = 2;

            if (e.SelectedItem.Text.Equals("Desktop"))
            {
                string[] folders = System.IO.Directory.GetDirectories(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "*", System.IO.SearchOption.TopDirectoryOnly);
                foreach (string folder in folders)
                {
                    (tree.Items[0] as TreeMenuItem).Items.Add(new TreeMenuItem()
                    {
                        Text = folder
                    });
                }
            }
            if (e.SelectedItem.Text.Equals("Documents"))
            {
                string[] folders = System.IO.Directory.GetDirectories(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "*", System.IO.SearchOption.TopDirectoryOnly);
                foreach (string folder in folders)
                {
                    (tree.Items[1] as TreeMenuItem).Items.Add(new TreeMenuItem()
                    {
                        Text = folder
                    });
                }
            }
            foreach (string s in drives)
            {
                if (s.Equals(e.SelectedItem.Text))
                {
                    string[] folders = System.IO.Directory.GetDirectories(s, "*", SearchOption.TopDirectoryOnly);
                    foreach (string folder in folders)
                    {
                        DirectoryInfo info = new DirectoryInfo(folder);
                        try
                        {
                            if ((info.Attributes & FileAttributes.Hidden) != FileAttributes.Hidden || (info.Attributes & FileAttributes.System) != FileAttributes.System)
                            {
                                (tree.Items[i] as TreeMenuItem).Items.Add(new TreeMenuItem()
                                {
                                    Text = folder
                                });
                            }
                        }
                        catch (UnauthorizedAccessException)
                        {
                        }
                    }
                }
                i++;
            }
        }
Beispiel #2
0
 private void treeNavigator1_SelectionChanged(TreeNavigator sender, SelectionStateChangedEventArgs e)
 {
     if (e.SelectedItem == thisPCtreeMenuItem)
     {
         groupView1.Visible     = false;
         openTabPCPanel.Visible = true;
         FillThisPCItems(this.treeNavigator4);
     }
     else
     {
         groupView1.Visible     = true;
         openTabPCPanel.Visible = false;
     }
 }
Beispiel #3
0
 private void treeNavigator3_SelectionChanged(TreeNavigator sender, SelectionStateChangedEventArgs e)
 {
     this.upOneLevelbutton.Enabled = true;
     this.documentbutton.Text      = e.SelectedItem.Text;
     TreenavigatorItemsUpdate(treeNavigator3, e);
 }
Beispiel #4
0
 private void treeNavigator4_SelectionChanged(TreeNavigator sender, SelectionStateChangedEventArgs e)
 {
     this.openDocumentbutton.Text = e.SelectedItem.Text;
     TreenavigatorItemsUpdate(this.treeNavigator4, e);
 }
Beispiel #5
0
        void treeNavigator1_SelectionChanged(TreeNavigator sender, SelectionStateChangedEventArgs e)
        {
            TreeMenuItem tm = e.SelectedItem;

            switch (tm.Text)
            {
            case "Windows Forms":
                this.richTextBox1.Text = "Windows Forms";
                this.richTextBox3.Text = "Essential Studio for WindowsForms contains all the controls that you need for building typical line-of-business web applications including grids, charts, gauges, menus, calendars, editors, and much more. It also includes some unique controls that enable your applications to read and write Excel, Word, and PDF documents.";
                break;

            case "ASP.NET":
                this.richTextBox1.Text = "ASP.NET";
                this.richTextBox3.Text = "Excellent toolset and a great support team. I’ve been using Syncfusion’s products" +
                                         " for a couple of years, and they save me a lot of time on ASP/MVC development. ";
                break;

            case "WinRT":
                this.richTextBox1.Text = "WinRT";
                this.richTextBox3.Text = "Essential Studio for WinRT contains all the controls you need to build line-of-business applications, including charts, gauges, maps, diagrams, and radial menus. It also includes a unique set of controls for reading and writing Excel, Word, and PDF documents in Windows store apps.";
                break;

            case "WPF":
                this.richTextBox1.Text = "WPF";
                this.richTextBox3.Text = "Essential Studio for WPF contains all the controls that you need for building typical line-of-business web applications including grids, charts, gauges, menus, calendars, editors, and much more. It also includes some unique controls that enable your applications to read and write Excel, Word, and PDF documents.";
                break;

            case "SilverLight":
                this.richTextBox1.Text = "SilverLight";
                this.richTextBox3.Text = "Essential Studio for Silverlight contains all the controls you need for building typical line-of-business web applications including grids, charts, gauges, menus, calendars, editors, and much more. It also includes some unique controls that enable your applications to read and write Excel, Word, and PDF documents.";
                break;

            case "Windows Phone":
                this.richTextBox1.Text = "Windows Phone";
                this.richTextBox3.Text = "Essential Studio for Windows Phone 7 contains all the controls you need to build line-of-business mobile applications including charts, gauges, maps, editors, and much more.";
                break;

            case "Orubase Studio":
                this.richTextBox1.Text = "Orubase Studio";
                this.richTextBox3.Text = "Essential Studio for Windows Phone 7 contains all the controls you need to build line-of-business mobile applications including charts, gauges, maps, editors, and much more.";
                break;

            case "Metro Studio":
                this.richTextBox1.Text = "Metro Studio";
                this.richTextBox3.Text = "Essential Studio for Windows Phone 7 contains all the controls you need to build line-of-business mobile applications including charts, gauges, maps, editors, and much more.";
                break;

            case "Ribbon":
                this.richTextBox1.Text = "Ribbon";
                this.richTextBox3.Text = "Our collection of Office 2007-style UI controls let you create Office-style menus, toolbars, window frames, etc. Bringing your application UI on par with industry standards and leaders has never been easier.";
                break;

            case "TreeViewAdv":
                this.richTextBox1.Text = "TreeViewAdv";
                this.richTextBox3.Text = "The TreeViewAdv control provides all the advanced capabilities that are missing in the framework version. Advanced features such as multiple columns, drag-and-drop, multi-node selection, and inline editing support are also available. It also has a feature for adding images, and it contains the built-in ability to perform item sorting on a tree view.";
                break;

            case "Diagram":
                this.richTextBox1.Text = "Diagram";
                this.richTextBox3.Text = "Essential Diagram for WindowsForms has the ability to present powerful and feature-rich diagrams. It provides an intuitive user-interaction model for creating and editing diagrams and data binding support. Its programmatic interface also places at your disposal many useful commands and methods that enable the performance of functionalities such as printing, data binding, serializing, and automatic layout algorithms. Virtualized rendering optimizes the rendering of large diagrams. It is fully localizable for any culture";
                break;

            case "Gauge":
                this.richTextBox1.Text = "Gauge";
                this.richTextBox3.Text = "Essential Gauge allows the use of code to draw gauges of various designs. It comes with sophisticated support to provide endless possibilities for customization. With Essential Gauge, users can display several data points or data ranges in a concise and compact area. Data in the control can be easily depicted and quickly understood by users of any level";
                break;

            case "XlsIO":
                this.richTextBox1.Text = "XlsIO";
                this.richTextBox3.Text = "Essential XlsIO is a .NET library that can read and write Microsoft Excel files. It features a full-fledged object model similar to the Microsoft Office Automation libraries. It can be used on systems that do not have Microsoft Excel installed, making it an excellent report engine for tabular data. Essential XlsIO enables users to create document-based reports in Windows Forms";
                break;

            case "Chart":
                this.richTextBox1.Text = "Chart";
                this.richTextBox3.Text = "Essential Chart for WinRT is a high-performance, visually stunning charting component that is easy to use. It includes common chart types ranging from line charts to specialized financial charts. It incorporates DirectX rendering to deliver the best possible performance";
                break;

            case "Maps":
                this.richTextBox1.Text = "Maps";
                this.richTextBox3.Text = "Essential Maps for WinRT is a powerful data-visualization control that can be used to articulate data as a map. It is frequently used in financial dashboards for plotting sales across geography";
                break;

            case "Carousel":
                this.richTextBox1.Text = "Carousel";
                this.richTextBox3.Text = "The carousel arranges items in an album-cover browser similar to iTunes. This layout is optimized for browsing a list of items on a touch device. Simply swipe to reveal the next item in a list.";
                break;

            case "GridData Control":
                this.richTextBox1.Text = "GridDatControl";
                this.richTextBox3.Text = "The GridData control for WPF is the most advanced data grid available in the market with unmatched performance and versatility. Its advanced feature set is exposed through a powerful yet easy-to-use API with countless customization options. You can easily get started data-binding the grid to any data source; format the data with a rich selection of cell types; and enable editing, sorting, filtering, and grouping within a few minutes. The seamless editing experience rivals that of Microsoft Excel itself. The GridData control has been designed especially for the WPF platform and makes use of all the nuances the platform has to offer. It is also MVVM compatible.";
                break;

            case "Spreadsheet":
                this.richTextBox1.Text = "Spreadsheet";
                this.richTextBox3.Text = "Essential Spreadsheet is a control for viewing and editing Microsoft Excel files in a familiar Excel-like interface without Excel installed. It combines some of our most popular components like our Grid control, Ribbon control, formula engine, and others to create a first of its kind offering for WPF for viewing and editing Excel files.";
                break;

            default:
                this.richTextBox1.Text = tm.Text;
                this.richTextBox3.Text = "Enterprise-Grade Applications in Less Time We can build web, mobile, and desktop applications better and faster than anyone because we build on top of our award-winning suite of components and frameworks, saving you time and money.";
                break;
            }
        }