Example #1
0
        /// <summary>
        ///   Called to edit a value in collection editor
        /// </summary>
        /// <param name = "context"></param>
        /// <param name = "isp"></param>
        /// <param name = "value"></param>
        /// <returns></returns>
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider isp, object value)
        {
            CListView originalControl = (CListView)context.Instance;

            object returnObject = base.EditValue(context, isp, value);

            originalControl.Refresh(); //.Invalidate( true );
            return(returnObject);
        }
Example #2
0
        /// <summary>
        ///   Constructor
        /// </summary>
        /// <param name = "parent"></param>
        public CListItem(CListView parent)
        {
            m_SubItems        = new GLSubItemCollection(parent);
            m_SubItems.Parent = parent;

            Parent = parent;                                    // this has to be after the sub item set becuase it tries to use the subitems

            SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created
        }
Example #3
0
        public bool GLLoad(CListItem item, CListSubItem subItem, CListView listctrl)
        {
            m_item    = item;
            m_subItem = subItem;
            m_Parent  = listctrl;

            Text = subItem.Text;

            Items.Add("i1");
            Items.Add("i2");
            Items.Add("i3");

            return(true);
        }
Example #4
0
        public bool GLLoad(CListItem item, CListSubItem subItem, CListView listctrl)
        {
            m_item = item;
            m_subItem = subItem;
            m_Parent = listctrl;

            Text = subItem.Text;

            Items.Add("i1");
            Items.Add("i2");
            Items.Add("i3");

            return true;
        }
Example #5
0
        public bool GLLoad(CListItem item, CListSubItem subItem, CListView listctrl)
        // populate this control however you wish with item
        {
            // set the styles you want for this
            BorderStyle = BorderStyle.None;
            AutoSize    = false;


            m_item    = item;
            m_subItem = subItem;
            m_Parent  = listctrl;

            Text = subItem.Text;

            return(true); // we don't do any heavy processing in this ctrl so we just return true
        }
Example #6
0
        public bool GLLoad(CListItem item, CListSubItem subItem, CListView listctrl)
        {
            Format = DateTimePickerFormat.Long;
            try
            {
                m_item    = item;
                m_subItem = subItem;
                m_Parent  = listctrl;

                Text = subItem.Text;

                //this.Value = subItem.Text;
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.ToString());

                Text = DateTime.Now.ToString();
            }

            return(true);
        }
Example #7
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Main));

            this.toolStrip1                 = new ToolStrip();
            this.toolStripLabel2            = new ToolStripLabel();
            this.toolStripDropDownButton1   = new ToolStripDropDownButton();
            this.allToolStripMenuItem       = new ToolStripMenuItem();
            this.selectedToolStripMenuItem  = new ToolStripMenuItem();
            this.completedToolStripMenuItem = new ToolStripMenuItem();
            this.toolStripButton2           = new ToolStripButton();
            this.toolStripSeparator1        = new ToolStripSeparator();
            this.toolStripButton3           = new ToolStripButton();
            this.toolStripButton4           = new ToolStripButton();
            this.listView1                         = new CListView();
            this.columnHeader3                     = new ColumnHeader();
            this.columnHeader5                     = new ColumnHeader();
            this.columnHeader1                     = new ColumnHeader();
            this.columnHeader2                     = new ColumnHeader();
            this.columnHeader7                     = new ColumnHeader();
            this.columnHeader4                     = new ColumnHeader();
            this.columnHeader6                     = new ColumnHeader();
            this.cmQueue                           = new ContextMenuStrip(this.components);
            this.editToolStripMenuItem             = new ToolStripMenuItem();
            this.removeToolStripMenuItem           = new ToolStripMenuItem();
            this.toolStripSeparator2               = new ToolStripSeparator();
            this.restartFTPUploadToolStripMenuItem = new ToolStripMenuItem();
            this.statusStrip1                      = new StatusStrip();
            this.tsStatus                          = new ToolStripStatusLabel();
            this.jobCheck                          = new Timer(this.components);
            this.ftpCheck                          = new Timer(this.components);
            this.freeDiskCheck                     = new Timer(this.components);
            this.toolStripButton1                  = new ToolStripButton();
            this.toolStrip1.SuspendLayout();
            this.cmQueue.SuspendLayout();
            this.statusStrip1.SuspendLayout();
            base.SuspendLayout();
            this.toolStrip1.AutoSize        = false;
            this.toolStrip1.BackgroundImage = Resources.ToolbarBg;
            this.toolStrip1.CanOverflow     = false;
            this.toolStrip1.GripStyle       = ToolStripGripStyle.Hidden;
            this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripLabel2, this.toolStripButton1, this.toolStripDropDownButton1, this.toolStripButton2, this.toolStripSeparator1, this.toolStripButton3, this.toolStripButton4 });
            this.toolStrip1.Location = new Point(0, 0);
            this.toolStrip1.Name     = "toolStrip1";
            this.toolStrip1.Padding  = new Padding(0);
            this.toolStrip1.Size     = new Size(0x2ba, 70);
            this.toolStrip1.TabIndex = 0;
            this.toolStrip1.Text     = "toolStrip1";
            this.toolStripLabel2.BackgroundImageLayout = ImageLayout.Center;
            this.toolStripLabel2.Image        = Resources.LogoToolbar;
            this.toolStripLabel2.ImageScaling = ToolStripItemImageScaling.None;
            this.toolStripLabel2.Margin       = new Padding(10, 0, 0, 0);
            this.toolStripLabel2.Name         = "toolStripLabel2";
            this.toolStripLabel2.Size         = new Size(0xc2, 70);
            this.toolStripDropDownButton1.DropDownItems.AddRange(new ToolStripItem[] { this.allToolStripMenuItem, this.selectedToolStripMenuItem, this.completedToolStripMenuItem });
            this.toolStripDropDownButton1.Image                 = Resources.No_entry;
            this.toolStripDropDownButton1.ImageScaling          = ToolStripItemImageScaling.None;
            this.toolStripDropDownButton1.ImageTransparentColor = Color.Magenta;
            this.toolStripDropDownButton1.Margin                = new Padding(5, 1, 0, 2);
            this.toolStripDropDownButton1.Name          = "toolStripDropDownButton1";
            this.toolStripDropDownButton1.Size          = new Size(0x57, 0x43);
            this.toolStripDropDownButton1.Text          = "Remove";
            this.allToolStripMenuItem.Name              = "allToolStripMenuItem";
            this.allToolStripMenuItem.Size              = new Size(0x98, 0x16);
            this.allToolStripMenuItem.Text              = "All";
            this.allToolStripMenuItem.Click            += new EventHandler(this.allToolStripMenuItem_Click);
            this.selectedToolStripMenuItem.Name         = "selectedToolStripMenuItem";
            this.selectedToolStripMenuItem.Size         = new Size(0x98, 0x16);
            this.selectedToolStripMenuItem.Text         = "Selected";
            this.selectedToolStripMenuItem.Click       += new EventHandler(this.selectedToolStripMenuItem_Click);
            this.completedToolStripMenuItem.Name        = "completedToolStripMenuItem";
            this.completedToolStripMenuItem.Size        = new Size(0x98, 0x16);
            this.completedToolStripMenuItem.Text        = "Completed";
            this.completedToolStripMenuItem.Click      += new EventHandler(this.completedToolStripMenuItem_Click);
            this.toolStripButton2.Image                 = Resources.Go;
            this.toolStripButton2.ImageScaling          = ToolStripItemImageScaling.None;
            this.toolStripButton2.ImageTransparentColor = Color.Magenta;
            this.toolStripButton2.Margin                = new Padding(5, 1, 0, 2);
            this.toolStripButton2.Name                  = "toolStripButton2";
            this.toolStripButton2.Size                  = new Size(0x4d, 0x43);
            this.toolStripButton2.Text                  = "Convert";
            this.toolStripButton2.Click                += new EventHandler(this.toolStripButton2_Click);
            this.toolStripSeparator1.Margin             = new Padding(10, 0, 10, 0);
            this.toolStripSeparator1.Name               = "toolStripSeparator1";
            this.toolStripSeparator1.Size               = new Size(6, 70);
            this.toolStripButton3.Image                 = Resources.Application;
            this.toolStripButton3.ImageScaling          = ToolStripItemImageScaling.None;
            this.toolStripButton3.ImageTransparentColor = Color.Magenta;
            this.toolStripButton3.Margin                = new Padding(5, 1, 0, 2);
            this.toolStripButton3.Name                  = "toolStripButton3";
            this.toolStripButton3.Size                  = new Size(0x4d, 0x43);
            this.toolStripButton3.Text                  = "Settings";
            this.toolStripButton3.Click                += new EventHandler(this.toolStripButton3_Click);
            this.toolStripButton4.Image                 = Resources.Info;
            this.toolStripButton4.ImageScaling          = ToolStripItemImageScaling.None;
            this.toolStripButton4.ImageTransparentColor = Color.Magenta;
            this.toolStripButton4.Margin                = new Padding(5, 1, 0, 2);
            this.toolStripButton4.Name                  = "toolStripButton4";
            this.toolStripButton4.Size                  = new Size(0x44, 0x43);
            this.toolStripButton4.Text                  = "About";
            this.toolStripButton4.Click                += new EventHandler(this.toolStripButton4_Click);
            this.listView1.BorderStyle                  = BorderStyle.None;
            this.listView1.Columns.AddRange(new ColumnHeader[] { this.columnHeader3, this.columnHeader5, this.columnHeader1, this.columnHeader2, this.columnHeader7, this.columnHeader4, this.columnHeader6 });
            this.listView1.ContextMenuStrip = this.cmQueue;
            this.listView1.Dock             = DockStyle.Top;
            this.listView1.Font             = new Font("Segoe UI", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.listView1.FullRowSelect    = true;
            this.listView1.GridLines        = true;
            this.listView1.Location         = new Point(0, 70);
            this.listView1.Name             = "listView1";
            this.listView1.Size             = new Size(0x2ba, 180);
            this.listView1.TabIndex         = 1;
            this.listView1.UseCompatibleStateImageBehavior = false;
            this.listView1.View      = View.Details;
            this.columnHeader3.Text  = "Name";
            this.columnHeader3.Width = 0xaf;
            this.columnHeader5.Text  = "Title ID";
            this.columnHeader5.Width = 0x44;
            this.columnHeader1.Text  = "Disc";
            this.columnHeader1.Width = 0x24;
            this.columnHeader2.Text  = "Size";
            this.columnHeader2.Width = 0x34;
            this.columnHeader7.Text  = "Padding";
            this.columnHeader7.Width = 0x3a;
            this.columnHeader4.Text  = "Progress";
            this.columnHeader4.Width = 0x6b;
            this.columnHeader6.Text  = "Status Message";
            this.columnHeader6.Width = 0xb8;
            this.cmQueue.Items.AddRange(new ToolStripItem[] { this.editToolStripMenuItem, this.removeToolStripMenuItem, this.toolStripSeparator2, this.restartFTPUploadToolStripMenuItem });
            this.cmQueue.Name = "cmQueue";
            this.cmQueue.Size = new Size(0xaf, 0x4c);
            this.editToolStripMenuItem.Name               = "editToolStripMenuItem";
            this.editToolStripMenuItem.Size               = new Size(0xae, 0x16);
            this.editToolStripMenuItem.Text               = "Edit";
            this.editToolStripMenuItem.Click             += new EventHandler(this.editToolStripMenuItem_Click);
            this.removeToolStripMenuItem.Name             = "removeToolStripMenuItem";
            this.removeToolStripMenuItem.Size             = new Size(0xae, 0x16);
            this.removeToolStripMenuItem.Text             = "Remove";
            this.removeToolStripMenuItem.Click           += new EventHandler(this.removeToolStripMenuItem_Click);
            this.toolStripSeparator2.Name                 = "toolStripSeparator2";
            this.toolStripSeparator2.Size                 = new Size(0xab, 6);
            this.restartFTPUploadToolStripMenuItem.Name   = "restartFTPUploadToolStripMenuItem";
            this.restartFTPUploadToolStripMenuItem.Size   = new Size(0xae, 0x16);
            this.restartFTPUploadToolStripMenuItem.Text   = "Restart FTP Upload";
            this.restartFTPUploadToolStripMenuItem.Click += new EventHandler(this.restartFTPUploadToolStripMenuItem_Click);
            this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.tsStatus });
            this.statusStrip1.Location                  = new Point(0, 0xfc);
            this.statusStrip1.Name                      = "statusStrip1";
            this.statusStrip1.Size                      = new Size(0x2ba, 0x16);
            this.statusStrip1.SizingGrip                = false;
            this.statusStrip1.TabIndex                  = 2;
            this.statusStrip1.Text                      = "statusStrip1";
            this.tsStatus.Name                          = "tsStatus";
            this.tsStatus.Size                          = new Size(0x1a, 0x11);
            this.tsStatus.Text                          = "Idle";
            this.freeDiskCheck.Enabled                  = true;
            this.freeDiskCheck.Interval                 = 0x7530;
            this.toolStripButton1.Image                 = Resources.Create;
            this.toolStripButton1.ImageScaling          = ToolStripItemImageScaling.None;
            this.toolStripButton1.ImageTransparentColor = Color.Magenta;
            this.toolStripButton1.Margin                = new Padding(0x19, 1, 0, 2);
            this.toolStripButton1.Name                  = "toolStripButton1";
            this.toolStripButton1.Size                  = new Size(0x4e, 0x43);
            this.toolStripButton1.Text                  = "Add ISO";
            this.toolStripButton1.Click                += new EventHandler(this.toolStripButton1_Click);
            base.AutoScaleDimensions                    = new SizeF(6f, 13f);
            base.AutoScaleMode                          = AutoScaleMode.Font;
            base.ClientSize = new Size(0x2ba, 0x112);
            base.Controls.Add(this.statusStrip1);
            base.Controls.Add(this.listView1);
            base.Controls.Add(this.toolStrip1);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.Icon            = (Icon)manager.GetObject("$this.Icon");
            base.MaximizeBox     = false;
            base.Name            = "Main";
            base.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "Iso2God";
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.cmQueue.ResumeLayout(false);
            this.statusStrip1.ResumeLayout(false);
            this.statusStrip1.PerformLayout();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Example #8
0
 /// <summary>
 ///   Constructor
 /// </summary>
 /// <param name = "newParent"></param>
 public GLItemCollection(CListView newParent)
 {
     Parent = newParent;
 }
Example #9
0
        /// <summary>
        ///   Constructor
        /// </summary>
        /// <param name = "parent"></param>
        public CListItem(CListView parent)
        {
            m_SubItems = new GLSubItemCollection(parent);
            m_SubItems.Parent = parent;

            Parent = parent; // this has to be after the sub item set becuase it tries to use the subitems

            SubItems.ChangedEvent += SubItemCollection_Changed; // this will only happen when a new item is created
        }
Example #10
0
 /// <summary>
 ///   Constructor that accepts parent pointer
 /// </summary>
 /// <param name = "parent"></param>
 public GLSubItemCollection(CListView parent)
 {
     m_Parent = parent;
 }
Example #11
0
 /// <summary>
 ///   Constructor
 /// </summary>
 /// <param name = "parent"></param>
 public GLColumnCollection(CListView parent)
 {
     Parent = parent;
 }
Example #12
0
 /// <summary>
 ///   Constructor
 /// </summary>
 /// <param name = "parent"></param>
 public GLColumnCollection(CListView parent)
 {
     Parent = parent;
 }
Example #13
0
 /// <summary>
 ///   Constructor
 /// </summary>
 /// <param name = "newParent"></param>
 public GLItemCollection(CListView newParent)
 {
     Parent = newParent;
 }
Example #14
0
 /// <summary>
 ///   Constructor that accepts parent pointer
 /// </summary>
 /// <param name = "parent"></param>
 public GLSubItemCollection(CListView parent)
 {
     m_Parent = parent;
 }