Example #1
0
 private void InitializeComponent()
 {
     this.components              = new Container();
     this.ultraExplorerBar1       = new UltraExplorerBar();
     this.imageListExplorerbar    = new ImageList(this.components);
     this.ultraDockSmartPartInfo1 = new UltraDockSmartPartInfo();
     this.infoProvider            = new SmartPartInfoProvider();
     ((ISupportInitialize)this.ultraExplorerBar1).BeginInit();
     base.SuspendLayout();
     this.ultraExplorerBar1.Dock                  = DockStyle.Fill;
     this.ultraExplorerBar1.ImageListLarge        = this.imageListExplorerbar;
     this.ultraExplorerBar1.ImageListSmall        = this.imageListExplorerbar;
     this.ultraExplorerBar1.Location              = new Point(0, 0);
     this.ultraExplorerBar1.Name                  = "ultraExplorerBar1";
     this.ultraExplorerBar1.Size                  = new Size(150, 150);
     this.ultraExplorerBar1.TabIndex              = 0;
     this.imageListExplorerbar.ColorDepth         = ColorDepth.Depth8Bit;
     this.imageListExplorerbar.ImageSize          = new Size(0x10, 0x10);
     this.imageListExplorerbar.TransparentColor   = Color.Transparent;
     this.ultraDockSmartPartInfo1.DefaultLocation = DockedLocation.DockedBottom;
     this.ultraDockSmartPartInfo1.Description     = "Search";
     this.ultraDockSmartPartInfo1.PreferredSize   = new Size(140, 100);
     this.ultraDockSmartPartInfo1.Title           = "Search";
     this.ultraDockSmartPartInfo1.Pinned          = false;
     this.infoProvider.Items.Add(this.ultraDockSmartPartInfo1);
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     base.Controls.Add(this.ultraExplorerBar1);
     base.Name = "SearchPanel";
     ((ISupportInitialize)this.ultraExplorerBar1).EndInit();
     base.ResumeLayout(false);
 }
Example #2
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(TaskPanel));

            this.ultraExplorerBar1       = new UltraExplorerBar();
            this.ultraDockSmartPartInfo1 = new UltraDockSmartPartInfo();
            this.infoProvider            = new SmartPartInfoProvider();
            this.imageListExplorerbar    = new ImageList(this.components);
            ((ISupportInitialize)this.ultraExplorerBar1).BeginInit();
            base.SuspendLayout();
            this.ultraExplorerBar1.Dock                  = DockStyle.Fill;
            this.ultraExplorerBar1.ImageListLarge        = this.imageListExplorerbar;
            this.ultraExplorerBar1.ImageListSmall        = this.imageListExplorerbar;
            this.ultraExplorerBar1.Location              = new Point(0, 0);
            this.ultraExplorerBar1.Name                  = "ultraExplorerBar1";
            this.ultraExplorerBar1.Size                  = new Size(150, 150);
            this.ultraExplorerBar1.TabIndex              = 0;
            this.ultraDockSmartPartInfo1.DefaultLocation = DockedLocation.DockedRight;
            this.ultraDockSmartPartInfo1.Description     = "Tasks";
            this.ultraDockSmartPartInfo1.Pinned          = true;
            this.ultraDockSmartPartInfo1.PreferredSize   = new Size(180, 100);
            this.ultraDockSmartPartInfo1.Title           = "Tasks";
            this.ultraDockSmartPartInfo1.AllowClose      = false;
            this.infoProvider.Items.Add(this.ultraDockSmartPartInfo1);

            /*this.imageListExplorerbar.ImageStream = (ImageListStreamer) manager.GetObject("imageListExplorerbar.ImageStream");
             * this.imageListExplorerbar.TransparentColor = Color.Transparent;
             * this.imageListExplorerbar.Images.SetKeyName(0, "");
             * this.imageListExplorerbar.Images.SetKeyName(1, "");
             * this.imageListExplorerbar.Images.SetKeyName(2, "");
             * this.imageListExplorerbar.Images.SetKeyName(3, "");
             * this.imageListExplorerbar.Images.SetKeyName(4, "");
             * this.imageListExplorerbar.Images.SetKeyName(5, "");
             * this.imageListExplorerbar.Images.SetKeyName(6, "");
             * this.imageListExplorerbar.Images.SetKeyName(7, "");
             * this.imageListExplorerbar.Images.SetKeyName(8, "");
             * this.imageListExplorerbar.Images.SetKeyName(9, "");
             * this.imageListExplorerbar.Images.SetKeyName(10, "");
             * this.imageListExplorerbar.Images.SetKeyName(11, "");
             * this.imageListExplorerbar.Images.SetKeyName(12, "");
             * this.imageListExplorerbar.Images.SetKeyName(13, "dataprovider.ico");*/
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            base.Controls.Add(this.ultraExplorerBar1);
            base.Name = "TaskPanel";
            ((ISupportInitialize)this.ultraExplorerBar1).EndInit();
            base.ResumeLayout(false);
        }
Example #3
0
 private void InitializeComponent()
 {
     this.components              = new System.ComponentModel.Container();
     this.infoProvider            = new Microsoft.Practices.CompositeUI.SmartParts.SmartPartInfoProvider();
     this.ultraDockSmartPartInfo1 = new Infragistics.Practices.CompositeUI.WinForms.UltraDockSmartPartInfo();
     this.ultraExplorerBar1       = new Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar();
     this.imageListExplorerbar    = new System.Windows.Forms.ImageList(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.ultraExplorerBar1)).BeginInit();
     this.SuspendLayout();
     //
     // ultraDockSmartPartInfo1
     //
     this.ultraDockSmartPartInfo1.AllowClose       = false;
     this.ultraDockSmartPartInfo1.DefaultPaneStyle = Infragistics.Win.UltraWinDock.ChildPaneStyle.VerticalSplit;
     this.ultraDockSmartPartInfo1.Description      = "Main Menu";
     this.ultraDockSmartPartInfo1.Pinned           = true;
     this.ultraDockSmartPartInfo1.PreferredSize    = new System.Drawing.Size(210, 100);
     this.ultraDockSmartPartInfo1.Title            = "Main Menu";
     this.infoProvider.Items.Add(this.ultraDockSmartPartInfo1);
     //
     // ultraExplorerBar1
     //
     this.ultraExplorerBar1.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.ultraExplorerBar1.ImageListLarge = this.imageListExplorerbar;
     this.ultraExplorerBar1.ImageListSmall = this.imageListExplorerbar;
     this.ultraExplorerBar1.Location       = new System.Drawing.Point(0, 0);
     this.ultraExplorerBar1.Name           = "ultraExplorerBar1";
     this.ultraExplorerBar1.Size           = new System.Drawing.Size(345, 150);
     this.ultraExplorerBar1.Style          = Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarStyle.OutlookNavigationPane;
     this.ultraExplorerBar1.TabIndex       = 0;
     //
     // imageListExplorerbar
     //
     this.imageListExplorerbar.ColorDepth       = System.Windows.Forms.ColorDepth.Depth8Bit;
     this.imageListExplorerbar.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageListExplorerbar.TransparentColor = System.Drawing.Color.Transparent;
     //
     // MenuPanel
     //
     this.Controls.Add(this.ultraExplorerBar1);
     this.Name = "MenuPanel";
     this.Size = new System.Drawing.Size(345, 150);
     ((System.ComponentModel.ISupportInitialize)(this.ultraExplorerBar1)).EndInit();
     this.ResumeLayout(false);
 }
Example #4
0
        public void PromjenaGodine(object sender, EventArgs e)
        {
            GODINESelectionListWorkItem item = this.WorkItem.Items.AddNew <GODINESelectionListWorkItem>("test");
            DataRow row2 = item.ShowModal(true, "", null);

            item.Terminate();
            if (row2 != null)
            {
                IEnumerator       enumerator = null;
                GODINEDataAdapter adapter    = new GODINEDataAdapter();
                GODINEDataSet     dataSet    = new GODINEDataSet();
                adapter.Fill(dataSet);
                try
                {
                    enumerator = dataSet.GODINE.Rows.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        DataRow current = (DataRow)enumerator.Current;
                        current["godineaktivna"] = false;
                    }
                }
                finally
                {
                    if (enumerator is IDisposable)
                    {
                        (enumerator as IDisposable).Dispose();
                    }
                }
                dataSet.GODINE.Select("idgodine =" + Conversions.ToString(row2["idgodine"]))[0]["godineaktivna"] = true;
                adapter.Update(dataSet);
                UltraExplorerBarWorkspace smartPart     = (UltraExplorerBarWorkspace)this.WorkItem.Workspaces["Dock"].SmartParts[1];
                UltraDockSmartPartInfo    smartPartInfo = new UltraDockSmartPartInfo {
                    DefaultPaneStyle = ChildPaneStyle.VerticalSplit,
                    Description      = Deklarit.Resources.Resources.MainMenu
                };
                Size size = new System.Drawing.Size(180, 100);
                smartPartInfo.PreferredSize   = size;
                smartPartInfo.DefaultLocation = DockedLocation.DockedLeft;
                smartPartInfo.Title           = "Aktivna godina:" + Conversions.ToString((int)mipsed.application.framework.Application.ActiveYear);
                this.WorkItem.Workspaces["Dock"].ApplySmartPartInfo(smartPart, smartPartInfo);
            }
        }