public Form1() { InitializeComponent(); CreateComponents(); this.viewModel = new ViewModel(); this.viewModel.Changed += viewModel_Changed; this.Icon = Rippix.Properties.Resources.MainIcon; this.Text = "Rippix"; this.ClientSize = new Size(800, 600); CreateFileMenuItems(); formatToolStripMenuItem = CreateFormatMenuItems(); colorToolStripMenuItem = CreateColorMenuItems(); CreateSeekItems(); seekController = new ImageSeekController(); inputController = new KeyboardSeekControlHelper(pixelViewPicture); inputController.Controller = seekController; toolTip1.SetToolTip(pixelViewPicture, inputController.HelpText); }
public Form1() { InitializeComponent(); this.viewModel = new ViewModel(); this.viewModel.Changed += viewModel_Changed; this.Icon = Rippix.Properties.Resources.MainIcon; this.Text = "Rippix"; this.ClientSize = new Size(800, 600); pixelView2.Height = (1 << paletteViewHeightFactor); propertyGrid1.Height = 300; CreateFormatMenuItems(); CreateColorMenuItems(); CreateSeekItems(); seekController = new ImageSeekController(); inputController = new KeyboardSeekControlHelper(pixelView1); inputController.Controller = seekController; toolTip1.SetToolTip(pixelView1, inputController.HelpText); }