public DrawPanel(AppStore store) { this.store = store; store.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(PropertyChangedEvent); this.Anchor = AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left; this.BackColor = Color.FromArgb(125, 125, 125); this.Resize += new EventHandler(OnResize); this.Paint += new PaintEventHandler(OnPaint); }
public ActionBar(AppStore store) { this.store = store; BackColor = Color.FromArgb(0, 0, 0); // File menu items ToolStripMenuItem file = new ToolStripMenuItem("File"); file.ForeColor = Color.FromArgb(255, 255, 255); ToolStripMenuItem newItem = new ToolStripMenuItem("New"); newItem.Click += new EventHandler(OnNew); file.DropDownItems.Add(newItem); ToolStripMenuItem openItem = new ToolStripMenuItem("Import"); openItem.Click += new EventHandler(OnOpen); file.DropDownItems.Add(openItem); ToolStripMenuItem importJAPG = new ToolStripMenuItem("Import JAPG"); importJAPG.Click += new EventHandler(OnImportJAPG); file.DropDownItems.Add(importJAPG); ToolStripMenuItem importJAMPG = new ToolStripMenuItem("Import JAMPG"); importJAMPG.Click += new EventHandler(OnImportJAMPG); file.DropDownItems.Add(importJAMPG); this.Items.Add(file); // Compress menu items ToolStripMenuItem compress = new ToolStripMenuItem("Compress"); compress.ForeColor = Color.FromArgb(255, 255, 255); ToolStripMenuItem jpeg = new ToolStripMenuItem("JAPG"); jpeg.Click += new EventHandler(OnJPEG); compress.DropDownItems.Add(jpeg); ToolStripMenuItem jampg = new ToolStripMenuItem("JAMPG"); jampg.Click += new EventHandler(OnJAMPG); compress.DropDownItems.Add(jampg); this.Items.Add(compress); }
public FrameList(AppStore store) { this.store = store; store.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(PropertyChangedEvent); this.Anchor = AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Left; this.BackColor = Color.FromArgb(200, 200, 200); this.View = View.Details; this.GridLines = true; this.FullRowSelect = true; this.HeaderStyle = ColumnHeaderStyle.Nonclickable; ColumnHeader column = new ColumnHeader(); column.Text = "Frames"; column.Width = 200 - 4; this.Columns.Add(column); this.ItemSelectionChanged += new ListViewItemSelectionChangedEventHandler(ItemClicked); }
public WindowForm() { InitializeComponent(); WindowState = FormWindowState.Maximized; store = new AppStore(); ActionBar bar = new ActionBar(store); this.Controls.Add(bar); FrameList list = new FrameList(store); list.Size = new Size(200, Height - 62); list.Location = new Point(0, 24); this.Controls.Add(list); DrawPanel panel = new DrawPanel(store); panel.Size = new Size(Width - 200, Height - 24); panel.Location = new Point(200, 0); this.Controls.Add(panel); }