private void InitializeComponent() { TrayIcon = new NotifyIcon(); TrayIcon.BalloonTipIcon = ToolTipIcon.Info; TrayIcon.Text = "STORJ Virtual Disk"; TrayIcon.Icon = Properties.Resources.TrayIcon; TrayIconContextMenu = new ContextMenuStrip(); CloseMenuItem = new ToolStripMenuItem(); TrayIconContextMenu.SuspendLayout(); // // TrayIconContextMenu // this.TrayIconContextMenu.Items.AddRange(new ToolStripItem[] { this.CloseMenuItem}); this.TrayIconContextMenu.Name = "TrayIconContextMenu"; this.TrayIconContextMenu.Size = new Size(153, 70); // // CloseMenuItem // this.CloseMenuItem.Name = "CloseMenuItem"; this.CloseMenuItem.Size = new Size(152, 22); this.CloseMenuItem.Text = "Exit"; this.CloseMenuItem.Click += new EventHandler(this.CloseMenuItem_Click); TrayIconContextMenu.ResumeLayout(false); TrayIcon.ContextMenuStrip = TrayIconContextMenu; }
void ContextMenuStrip_Opening(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = false; System.Windows.Forms.ContextMenuStrip menu = sender as System.Windows.Forms.ContextMenuStrip; menu.SuspendLayout(); // repopulate the context menu with stuff provided by the backend menu.Items.Clear(); List <NodeIdWrapper> selection = new List <NodeIdWrapper>(); foreach (TreeNodeAdv node in treeControl.SelectedNodes) { GrtTreeNode treeNode = node.Tag as GrtTreeNode; selection.Add(treeNode.NodeId); } List <MySQL.Base.MenuItem> itemsBE = model.get_popup_items_for_nodes(selection); FillMenuItems(itemsBE, menu.Items); menu.ResumeLayout(); }
public TaskBarIconMenu() { TrayIcon_Menu = new ContextMenuStrip(); TrayIcon_Artist = new ToolStripLabel(); TrayIcon_Title = new ToolStripLabel(); TrayIcon_Diff = new ToolStripLabel(); TrayIcon_Play = new ToolStripMenuItem(); TrayIcon_PlayNext = new ToolStripMenuItem(); TrayIcon_PlayPrev = new ToolStripMenuItem(); TrayIcon_Exit = new ToolStripMenuItem(); TrayIcon_Menu.SuspendLayout(); TrayIcon_Menu.Items.AddRange(new ToolStripItem[] { TrayIcon_Artist, TrayIcon_Title, TrayIcon_Diff, TrayIcon_Play, TrayIcon_PlayNext, TrayIcon_PlayPrev, TrayIcon_Exit}); TrayIcon_Menu.Name = "TrayIcon_Menu"; TrayIcon_Menu.Size = new Size(176, 176); // TrayIcon_Artist TrayIcon_Artist.Name = "TrayIcon_Artist"; TrayIcon_Artist.Text = LanguageManager.Get("TrayIcon_Aritst_Text"); TrayIcon_Artist.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 134); // TrayIcon_Title TrayIcon_Title.Name = "TrayIcon_Title"; TrayIcon_Title.Text = LanguageManager.Get("TrayIcon_Title_Text"); TrayIcon_Title.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 134); // TrayIcon_Diff TrayIcon_Diff.Name = "TrayIcon_Diff"; TrayIcon_Diff.Text = LanguageManager.Get("TrayIcon_Diff_Text"); TrayIcon_Diff.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold, GraphicsUnit.Point, 134); // TrayIcon_Play TrayIcon_Play.Name = "TrayIcon_Play"; TrayIcon_Play.Text = LanguageManager.Get("TrayIcon_Play_Pause_Text"); TrayIcon_Play.Click += delegate { SendKeys.Send("%{F5}"); }; // TrayIcon_PlayNext TrayIcon_PlayNext.Name = "TrayIcon_PlayNext"; TrayIcon_PlayNext.Text = LanguageManager.Get("TrayIcon_PlayNext_Text"); TrayIcon_PlayNext.Click += delegate { SendKeys.Send("%{RIGHT}"); }; // TrayIcon_PlayNext TrayIcon_PlayPrev.Name = "TrayIcon_PlayPrev"; TrayIcon_PlayPrev.Text = LanguageManager.Get("TrayIcon_PlayPrev_Text"); TrayIcon_PlayPrev.Click += delegate { SendKeys.Send("%{LEFT}"); }; // TrayIcon_Exit TrayIcon_Exit.Name = "TrayIcon_Exit"; TrayIcon_Exit.Text = LanguageManager.Get("TrayIcon_Exit_Text"); TrayIcon_Exit.Click += delegate { if ( MessageBox.Show(LanguageManager.Get("Comfirm_Exit_Text"), LanguageManager.Get("Tip_Text"), MessageBoxButtons.YesNo) != DialogResult.Yes) return; Core.MainIsVisible = false; Core.Exit(); Environment.Exit(0); }; TrayIcon_Menu.ResumeLayout(false); }
static NotificationProvider() { _notifyIcon = new NotifyIcon { //BalloonTipIcon = ToolTipIcon.Info, Visible = true, Icon = Resources.lensert_icon_fresh, Text = "Lensert" }; _backlog = new ConcurrentQueue<Notification>(); _notifyIcon.BalloonTipClicked += OnBalloonClicked; _notifyIcon.BalloonTipClosed += OnBalloonClosed; var trayIconContextMenu = new ContextMenuStrip(); var closeMenuItem = new ToolStripMenuItem(); trayIconContextMenu.SuspendLayout(); trayIconContextMenu.Items.AddRange(new ToolStripItem[] {closeMenuItem}); trayIconContextMenu.Name = "trayIconContextMenu"; trayIconContextMenu.Size = new Size(153, 70); closeMenuItem.Name = "closeMenuItem"; closeMenuItem.Size = new Size(152, 22); closeMenuItem.Text = "Close"; closeMenuItem.Click += CloseMenuItem_Click; trayIconContextMenu.ResumeLayout(false); _notifyIcon.ContextMenuStrip = trayIconContextMenu; }
private ImgyazurIcon() { contextMenuStrip = new ContextMenuStrip(); contextMenuStrip.SuspendLayout(); exitMenuItem = new ToolStripMenuItem(); exitMenuItem.Name = "exitMenuItem"; exitMenuItem.Text = "Exit"; exitMenuItem.Click += new EventHandler(exitMenuItem_Click); startOnBootMenuItem = new ToolStripMenuItem(); startOnBootMenuItem.Name = "startOnBootMenuItem"; startOnBootMenuItem.Text = "Start On Boot"; startOnBootMenuItem.CheckOnClick = true; if (rkApp.GetValue("imgyazur") == null) startOnBootMenuItem.Checked = false; else startOnBootMenuItem.Checked = true; startOnBootMenuItem.CheckedChanged += new EventHandler(startOnBootMenuItem_CheckedChanged); copyAfterUploadMenuItem = new ToolStripMenuItem(); copyAfterUploadMenuItem.Name = "copyAfterUploadMenuItem"; copyAfterUploadMenuItem.Text = "Copy URL After Upload"; copyAfterUploadMenuItem.CheckOnClick = true; copyAfterUploadMenuItem.Checked = Properties.Settings.Default.copyToClipboard; copyAfterUploadMenuItem.CheckedChanged += new EventHandler(copyAfterUploadMenuItem_CheckedChanged); openAfterUploadMenuItem = new ToolStripMenuItem(); openAfterUploadMenuItem.Name = "openAfterUploadMenuItem"; openAfterUploadMenuItem.Text = "Open URL After Upload"; openAfterUploadMenuItem.CheckOnClick = true; openAfterUploadMenuItem.Checked = Properties.Settings.Default.openAfterUpload; openAfterUploadMenuItem.CheckedChanged += new EventHandler(openAfterUploadMenuItem_CheckedChanged); changeHotkeyMenuItem = new ToolStripMenuItem(); changeHotkeyMenuItem.Name = "changeHotkeyMenuItem"; changeHotkeyMenuItem.Text = "Change Hotkey"; changeHotkeyMenuItem.Click += new EventHandler(changeHotkeyMenuItem_Click); contextMenuStrip.Items.AddRange(new ToolStripItem[] { startOnBootMenuItem, copyAfterUploadMenuItem, openAfterUploadMenuItem, changeHotkeyMenuItem, exitMenuItem }); contextMenuStrip.Name = "contextMenuStrip"; contextMenuStrip.ResumeLayout(false); notifyIcon = new NotifyIcon(); notifyIcon.BalloonTipText = "imgyazur"; notifyIcon.Text = defaultText; notifyIcon.Visible = true; notifyIcon.Icon = Properties.Resources.imgur; notifyIcon.ContextMenuStrip = contextMenuStrip; notifyIcon.MouseClick += new MouseEventHandler(notifyIcon_MouseClick); notifyIcon.ShowBalloonTip(10000, "imgyazur is now running", "Press " + keyComboSettings.ToKeyCombo().ToString() + " or click this icon to start capturing.", ToolTipIcon.Info); Hook KeyboardHook = new Hook("imgyazur keyboard hook"); KeyboardHook.KeyDownEvent += GlobalKeyDown; }
private void InitializeComponent() { components = new Container(); _notifyIcon1 = new NotifyIcon(components); _contextMenuStrip1 = new ContextMenuStrip(components); _btnAbout = new ToolStripMenuItem(); _btnStop = new ToolStripMenuItem(); _btnSettings = new ToolStripMenuItem(); _btnUpdates = new ToolStripMenuItem(); _contextMenuStrip1.SuspendLayout(); _notifyIcon1.ContextMenuStrip = _contextMenuStrip1; var imgStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("WallpaperChange.favicon.ico"); if (imgStream != null) { var ico = new Icon(imgStream); _notifyIcon1.Icon = ico; } _notifyIcon1.Tag = "WallpaperChange"; _notifyIcon1.Text = @"WallpaperChange"; _notifyIcon1.Visible = true; _contextMenuStrip1.Items.AddRange(new ToolStripItem[] {_btnAbout, _btnUpdates, _btnSettings, _btnStop}); _contextMenuStrip1.Name = "_contextMenuStrip1"; _contextMenuStrip1.Size = new Size(176, 76); _btnAbout.Name = "_btnAbout"; _btnAbout.AutoSize = true; _btnAbout.Text = @"About"; _btnAbout.Click += btnAbout_Click; _btnStop.Name = "_btnStop"; _btnStop.AutoSize = true; _btnStop.Text = @"Stop"; _btnStop.Click += btnStop_Click; _btnSettings.Name = "_btnSettings"; _btnSettings.Text = @"Settings"; _btnSettings.AutoSize = true; _btnSettings.Click += btnSettings_Click; _btnUpdates.Name = "_btnUpdates"; _btnUpdates.Text = CheckForApplicationUpdates; _btnUpdates.AutoSize = true; _btnUpdates.Click += btnUpdates_Click; _contextMenuStrip1.ResumeLayout(false); _wallpaperTimer = new Timer {AutoReset = false}; _wallpaperTimer.Elapsed += WallpaperTimerElapsed; _wallpaperTimer.Interval = 10000; WallpaperTimerElapsed(null, null); _updateTimer = new Timer {AutoReset = false}; _updateTimer.Elapsed += (sender, args) => CheckForUpdates(); _updateTimer.Interval = TimeSpan.FromDays(1).TotalMilliseconds; CheckForUpdates(); }
private ContextMenuStrip CreateNotifyIconMenu() { var notifyIconMenu = new System.Windows.Forms.ContextMenuStrip(); notifyIconMenu.SuspendLayout(); notifyIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { CreateShowHelp(), CreateVersionCheck(), CreateSeparator(), CreateShowHTMLUI(), CreateShowGUI(), CreateSeparator(), CreateQuit(), }); notifyIconMenu.ShowImageMargin = false; notifyIconMenu.ResumeLayout(false); return(notifyIconMenu); }
public UpPhotoGUI(MainWindow newParent) { Application.EnableVisualStyles(); parent = newParent; UpPhotoTrayMenu = new ContextMenuStrip(components); UpPhotoTrayMenu.SuspendLayout(); UpPhotoTrayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { AboutItem, ViewItem, ExitItem, DownloadPhotosItem }); AboutItem.Text = "About UpPhoto"; AboutItem.Click += (x, y) => { Process.Start(@"http://www.upphoto.ca/instructions.php"); }; ViewItem.Text = "View UpPhoto folder"; ViewItem.Click += ViewItem_Click; ExitItem.Text = "Exit"; ExitItem.Click += ExitItem_Click; DownloadPhotosItem.Text = "Download my photos from Facebook"; DownloadPhotosItem.CheckOnClick = true; DownloadPhotosItem.Checked = false; UpPhotoIcon = new NotifyIcon(components); UpPhotoIcon.ContextMenuStrip = UpPhotoTrayMenu; UpPhotoIcon.Text = "UpPhoto"; UpPhotoIcon.Visible = true; UpPhotoIcon.MouseClick += TrayIcon_Click; UpPhotoIcon.DoubleClick += ViewItem_Click; UpPhotoIcon.BalloonTipTitle = "Thank you for using UpPhoto!"; UpPhotoIcon.BalloonTipText = "Click on this icon to view your UpPhoto folder. Put photos in the folder, and they will be uploaded to Facebook."; UpPhotoTrayMenu.ResumeLayout(true); }
private void InitializeComponent() { TrayIcon = new NotifyIcon(); TrayIcon.BalloonTipIcon = ToolTipIcon.Info; //TrayIcon.BalloonTipText = "O Serviço Sihl está em execução! Para fechar clique com o botão direito!"; TrayIcon.BalloonTipTitle = "Sihl Suporte"; TrayIcon.Text = "Sihl Suporte"; //The icon is added to the project resources. projeto = Assembly.LoadFrom(Environment.CurrentDirectory + @"\SihlHosting.exe"); TrayIcon.Icon = new Icon(Path.GetDirectoryName(projeto.Location) + "\\suporte.ico"); //Optional - handle doubleclicks on the icon: TrayIcon.DoubleClick += TrayIcon_DoubleClick; //Optional - Add a context menu to the TrayIcon: TrayIconContextMenu = new ContextMenuStrip(); CloseMenuItem = new ToolStripMenuItem(); TrayIconContextMenu.SuspendLayout(); // // TrayIconContextMenu // this.TrayIconContextMenu.Items.AddRange(new ToolStripItem[] { this.CloseMenuItem}); this.TrayIconContextMenu.Name = "TrayIconContextMenu"; this.TrayIconContextMenu.Size = new Size(153, 70); // // CloseMenuItem // this.CloseMenuItem.Name = "CloseMenuItem"; this.CloseMenuItem.Size = new Size(152, 22); this.CloseMenuItem.Text = "Fechar Sihl Suporte"; this.CloseMenuItem.Click += new EventHandler(this.CloseMenuItem_Click); TrayIconContextMenu.ResumeLayout(false); TrayIcon.ContextMenuStrip = TrayIconContextMenu; }
private void InitTray() { TrayIcon = new NotifyIcon(); TrayIcon.Visible = true; TrayIcon.Icon = SystemIcons.Asterisk; TrayIcon.DoubleClick += new System.EventHandler(this.trayTrayIcon_DoubleClick); var ContextMenu = new ContextMenuStrip(); var CloseMenuItem = new ToolStripMenuItem(); ContextMenu.SuspendLayout(); ContextMenu.Items.Add(CloseMenuItem); CloseMenuItem.Name = "ContextMenu"; CloseMenuItem.Text = "Exit"; CloseMenuItem.Click += new EventHandler((e, b) => { this.Close(); Environment.Exit(0); }); ContextMenu.ResumeLayout(false); TrayIcon.ContextMenuStrip = ContextMenu; }
private ContextMenuStrip createContextMenuStrip(MyPictureBox pb) { ContextMenuStrip contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); contextMenuStrip1.SuspendLayout(); ToolStripMenuItem serverToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem torch = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem focus = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotate0 = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotate90 = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotate180 = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotate270 = new System.Windows.Forms.ToolStripMenuItem(); contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { serverToolStripMenuItem, rotateToolStripMenuItem }); contextMenuStrip1.Size = new System.Drawing.Size(153, 48); // // rotateToolStripMenuItem // rotateToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { rotate0, rotate90, rotate180, rotate270 }); rotateToolStripMenuItem.Size = new System.Drawing.Size(152, 22); rotateToolStripMenuItem.Text = "Rotate"; torch.Size = new System.Drawing.Size(152, 22); torch.Text = "LED"; torch.CheckOnClick = true; torch.CheckedChanged += (s, d) => { try { WebClient wc = new WebClient(); wc.DownloadString("http://" + (s as ToolStripMenuItem).OwnerItem.Text + ":8080/" + (!torch.Checked ? "disable" : "enable") + "torch"); } catch { } }; focus.Size = new System.Drawing.Size(152, 22); focus.Text = "Focus"; focus.CheckOnClick = true; focus.CheckedChanged += (s, d) => { try { WebClient wc = new WebClient(); wc.DownloadString("http://" + (s as ToolStripMenuItem).OwnerItem.Text + ":8080/" + (!focus.Checked ? "no" : "") + "focus"); } catch { } }; serverToolStripMenuItem.Size = new System.Drawing.Size(152, 22); serverToolStripMenuItem.Text = pb.pbInfo.Server; //http://192.168.1.8:8080/enabletorch //http://192.168.1.8:8080/focus //http://192.168.1.8:8080/disabletorch //http://192.168.1.8:8080/enabletorch serverToolStripMenuItem.Click += (s, d) => { Process.Start("http://" + (s as ToolStripMenuItem).Text + ":8080"); }; serverToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { torch, focus }); // // rotate0 // rotate0.Size = new System.Drawing.Size(152, 22); rotate0.Text = "0"; rotate0.Click += (a, b) => { pbInfo pbi = pb.pbInfo; pb.Image.RotateFlip(Stuff.getRotateFlipType(360 - pbi.Rotate)); pbi.Rotate = 0; pb.Size = new Size(320, 240); pb.Refresh(); }; // // rotate90 // rotate90.Size = new System.Drawing.Size(152, 22); rotate90.Text = "90"; rotate90.Click += (a, b) => { pbInfo pbi = pb.pbInfo; pb.Image.RotateFlip(Stuff.getRotateFlipType(360 - pbi.Rotate)); pbi.Rotate = 90; pb.Size = new Size(240, 320); pb.Refresh(); }; // // rotate180 // rotate180.Size = new System.Drawing.Size(152, 22); rotate180.Text = "180"; rotate180.Click += (a, b) => { pbInfo pbi = pb.pbInfo; pb.Image.RotateFlip(Stuff.getRotateFlipType(360 - pbi.Rotate)); pbi.Rotate = 180; pb.Size = new Size(320, 240); pb.Refresh(); }; // // rotate270 // rotate270.Size = new System.Drawing.Size(152, 22); rotate270.Text = "270"; rotate270.Click += (a, b) => { pbInfo pbi = pb.pbInfo; pb.Image.RotateFlip(Stuff.getRotateFlipType(360 - pbi.Rotate)); pbi.Rotate = 270; pb.Size = new Size(240, 320); pb.Refresh(); }; contextMenuStrip1.ResumeLayout(); return(contextMenuStrip1); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.ContextMenuStrip notifyIconMenu; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); HandBrake.ApplicationServices.Model.Encoding.AllowedPassthru allowedPassthru1 = new HandBrake.ApplicationServices.Model.Encoding.AllowedPassthru(); this.btn_restore = new System.Windows.Forms.ToolStripMenuItem(); this.DVD_Save = new System.Windows.Forms.SaveFileDialog(); this.ToolTip = new System.Windows.Forms.ToolTip(this.components); this.text_destination = new System.Windows.Forms.TextBox(); this.drp_videoEncoder = new System.Windows.Forms.ComboBox(); this.check_largeFile = new System.Windows.Forms.CheckBox(); this.check_turbo = new System.Windows.Forms.CheckBox(); this.drp_videoFramerate = new System.Windows.Forms.ComboBox(); this.slider_videoQuality = new System.Windows.Forms.TrackBar(); this.text_bitrate = new System.Windows.Forms.TextBox(); this.check_optimiseMP4 = new System.Windows.Forms.CheckBox(); this.check_iPodAtom = new System.Windows.Forms.CheckBox(); this.data_chpt = new System.Windows.Forms.DataGridView(); this.number = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.name = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ChaptersMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.mnu_resetChapters = new System.Windows.Forms.ToolStripMenuItem(); this.drop_format = new System.Windows.Forms.ComboBox(); this.drop_chapterFinish = new System.Windows.Forms.ComboBox(); this.drop_chapterStart = new System.Windows.Forms.ComboBox(); this.drop_angle = new System.Windows.Forms.ComboBox(); this.drp_dvdtitle = new System.Windows.Forms.ComboBox(); this.btn_importChapters = new System.Windows.Forms.Button(); this.btn_export = new System.Windows.Forms.Button(); this.drop_mode = new System.Windows.Forms.ComboBox(); this.btn_generate_Query = new System.Windows.Forms.Button(); this.radio_cq = new System.Windows.Forms.RadioButton(); this.radio_avgBitrate = new System.Windows.Forms.RadioButton(); this.check_2PassEncode = new System.Windows.Forms.CheckBox(); this.btn_file_source = new System.Windows.Forms.ToolStripMenuItem(); this.treeView_presets = new System.Windows.Forms.TreeView(); this.presets_menu = new System.Windows.Forms.ContextMenuStrip(this.components); this.pmnu_expandAll = new System.Windows.Forms.ToolStripMenuItem(); this.pmnu_collapse = new System.Windows.Forms.ToolStripMenuItem(); this.sep1 = new System.Windows.Forms.ToolStripSeparator(); this.pmnu_import = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.pmnu_saveChanges = new System.Windows.Forms.ToolStripMenuItem(); this.pmnu_delete = new System.Windows.Forms.ToolStripMenuItem(); this.DVD_Open = new System.Windows.Forms.FolderBrowserDialog(); this.File_Open = new System.Windows.Forms.OpenFileDialog(); this.ISO_Open = new System.Windows.Forms.OpenFileDialog(); this.FileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mnu_killCLI = new System.Windows.Forms.ToolStripMenuItem(); this.mnu_exit = new System.Windows.Forms.ToolStripMenuItem(); this.mnu_open3 = new System.Windows.Forms.ToolStripMenuItem(); this.ToolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mnu_encode = new System.Windows.Forms.ToolStripMenuItem(); this.mnu_encodeLog = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this.mnu_options = new System.Windows.Forms.ToolStripMenuItem(); this.frmMainMenu = new System.Windows.Forms.MenuStrip(); this.label5 = new System.Windows.Forms.Label(); this.Label47 = new System.Windows.Forms.Label(); this.Label3 = new System.Windows.Forms.Label(); this.tab_audio = new System.Windows.Forms.TabPage(); this.AudioSettings = new Handbrake.Controls.AudioPanel(); this.AudioMenuRowHeightHack = new System.Windows.Forms.ImageList(this.components); this.tab_video = new System.Windows.Forms.TabPage(); this.panel1 = new System.Windows.Forms.Panel(); this.radio_constantFramerate = new System.Windows.Forms.RadioButton(); this.radio_peakAndVariable = new System.Windows.Forms.RadioButton(); this.label25 = new System.Windows.Forms.Label(); this.Label2 = new System.Windows.Forms.Label(); this.lbl_SliderValue = new System.Windows.Forms.Label(); this.lbl_framerate = new System.Windows.Forms.Label(); this.tab_picture = new System.Windows.Forms.TabPage(); this.PictureSettings = new Handbrake.Controls.PictureSettings(); this.Check_ChapterMarkers = new System.Windows.Forms.CheckBox(); this.tabs_panel = new System.Windows.Forms.TabControl(); this.tab_filters = new System.Windows.Forms.TabPage(); this.Filters = new Handbrake.Controls.Filters(); this.tab_subtitles = new System.Windows.Forms.TabPage(); this.Subtitles = new Handbrake.Controls.Subtitles(); this.tab_chapters = new System.Windows.Forms.TabPage(); this.label31 = new System.Windows.Forms.Label(); this.tab_advanced = new System.Windows.Forms.TabPage(); this.advancedEncoderOpts = new Handbrake.Controls.AdvancedEncoderOpts(); this.x264Panel = new Handbrake.Controls.x264Panel(); this.tab_query = new System.Windows.Forms.TabPage(); this.btn_clear = new System.Windows.Forms.Button(); this.label34 = new System.Windows.Forms.Label(); this.label33 = new System.Windows.Forms.Label(); this.rtf_query = new System.Windows.Forms.RichTextBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.presetsToolStrip = new System.Windows.Forms.ToolStrip(); this.BtnAddPreset = new System.Windows.Forms.ToolStripButton(); this.BtnRemovePreset = new System.Windows.Forms.ToolStripButton(); this.toolStripDropDownButton2 = new System.Windows.Forms.ToolStripDropDownButton(); this.MnuSetDefaultPreset = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.MnuImportPreset = new System.Windows.Forms.ToolStripMenuItem(); this.MnuExportPreset = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this.MnuResetBuiltInPresets = new System.Windows.Forms.ToolStripMenuItem(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.btn_source = new System.Windows.Forms.ToolStripDropDownButton(); this.btn_dvd_source = new System.Windows.Forms.ToolStripMenuItem(); this.btnTitleSpecific = new System.Windows.Forms.ToolStripMenuItem(); this.FileTitleSpecificScan = new System.Windows.Forms.ToolStripMenuItem(); this.FolderTitleSpecificScan = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator(); this.btn_start = new System.Windows.Forms.ToolStripButton(); this.btn_add2Queue = new System.Windows.Forms.ToolStripSplitButton(); this.mnu_AddAllTitles = new System.Windows.Forms.ToolStripMenuItem(); this.mnu_AddTittleRange = new System.Windows.Forms.ToolStripMenuItem(); this.btn_showQueue = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.tb_preview = new System.Windows.Forms.ToolStripButton(); this.btn_ActivityWindow = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); this.MnuUserGuide = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); this.MnuCheckForUpdates = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator(); this.MnuAboutHandBrake = new System.Windows.Forms.ToolStripMenuItem(); this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components); this.StatusStrip = new System.Windows.Forms.StatusStrip(); this.ProgressBarStatus = new System.Windows.Forms.ToolStripProgressBar(); this.lbl_encode = new System.Windows.Forms.ToolStripStatusLabel(); this.lbl_updateCheck = new System.Windows.Forms.ToolStripStatusLabel(); this.lbl_libhb_warning = new System.Windows.Forms.ToolStripStatusLabel(); this.hbproc = new System.Diagnostics.Process(); this.File_Save = new System.Windows.Forms.SaveFileDialog(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.btn_destBrowse = new System.Windows.Forms.Button(); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.Label10 = new System.Windows.Forms.Label(); this.lbl_angle = new System.Windows.Forms.Label(); this.Label13 = new System.Windows.Forms.Label(); this.label_duration = new System.Windows.Forms.Label(); this.lbl_duration = new System.Windows.Forms.Label(); this.labelStaticDestination = new System.Windows.Forms.Label(); this.labelPreset = new System.Windows.Forms.Label(); this.labelSource = new System.Windows.Forms.Label(); this.labelStaticSource = new System.Windows.Forms.Label(); this.SourceLayoutPanel = new System.Windows.Forms.FlowLayoutPanel(); this.openPreset = new System.Windows.Forms.OpenFileDialog(); this.File_ChapterImport = new System.Windows.Forms.OpenFileDialog(); notifyIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components); notifyIconMenu.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.slider_videoQuality)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.data_chpt)).BeginInit(); this.ChaptersMenu.SuspendLayout(); this.presets_menu.SuspendLayout(); this.frmMainMenu.SuspendLayout(); this.tab_audio.SuspendLayout(); this.tab_video.SuspendLayout(); this.panel1.SuspendLayout(); this.tab_picture.SuspendLayout(); this.tabs_panel.SuspendLayout(); this.tab_filters.SuspendLayout(); this.tab_subtitles.SuspendLayout(); this.tab_chapters.SuspendLayout(); this.tab_advanced.SuspendLayout(); this.tab_query.SuspendLayout(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.presetsToolStrip.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.StatusStrip.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); this.tableLayoutPanel3.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.SourceLayoutPanel.SuspendLayout(); this.SuspendLayout(); // // notifyIconMenu // notifyIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btn_restore}); notifyIconMenu.Name = "notifyIconMenu"; notifyIconMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; notifyIconMenu.Size = new System.Drawing.Size(114, 26); // // btn_restore // this.btn_restore.Image = global::Handbrake.Properties.Resources.Restore; this.btn_restore.Name = "btn_restore"; this.btn_restore.Size = new System.Drawing.Size(113, 22); this.btn_restore.Text = "Restore"; this.btn_restore.Click += new System.EventHandler(this.btn_restore_Click); // // DVD_Save // this.DVD_Save.Filter = "mp4|*.mp4;*.m4v|mkv|*.mkv"; this.DVD_Save.SupportMultiDottedExtensions = true; // // ToolTip // this.ToolTip.Active = false; this.ToolTip.AutomaticDelay = 1000; this.ToolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; this.ToolTip.ToolTipTitle = "Tooltip"; // // text_destination // this.text_destination.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.text_destination.Location = new System.Drawing.Point(36, 3); this.text_destination.Name = "text_destination"; this.text_destination.Size = new System.Drawing.Size(603, 21); this.text_destination.TabIndex = 1; this.ToolTip.SetToolTip(this.text_destination, "Location where the encoded file will be saved."); this.text_destination.TextChanged += new System.EventHandler(this.text_destination_TextChanged); // // drp_videoEncoder // this.drp_videoEncoder.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drp_videoEncoder.FormattingEnabled = true; this.drp_videoEncoder.Items.AddRange(new object[] { "H.264 (x264)", "MPEG-4 (FFmpeg)", "MPEG-2 (FFmpeg)", "VP3 (Theora)"}); this.drp_videoEncoder.Location = new System.Drawing.Point(125, 35); this.drp_videoEncoder.Name = "drp_videoEncoder"; this.drp_videoEncoder.Size = new System.Drawing.Size(126, 21); this.drp_videoEncoder.TabIndex = 6; this.ToolTip.SetToolTip(this.drp_videoEncoder, "Select a video encoder"); this.drp_videoEncoder.SelectedIndexChanged += new System.EventHandler(this.drp_videoEncoder_SelectedIndexChanged); // // check_largeFile // this.check_largeFile.Anchor = System.Windows.Forms.AnchorStyles.Left; this.check_largeFile.AutoSize = true; this.check_largeFile.BackColor = System.Drawing.Color.Transparent; this.check_largeFile.Location = new System.Drawing.Point(179, 5); this.check_largeFile.Name = "check_largeFile"; this.check_largeFile.Size = new System.Drawing.Size(91, 17); this.check_largeFile.TabIndex = 2; this.check_largeFile.Text = "Large file size"; this.ToolTip.SetToolTip(this.check_largeFile, "Caution: This option will likely break device compatibility with all but the Appl" + "eTV Take 2.\r\nChecking this box enables a 64bit mp4 file which can be over 4GB."); this.check_largeFile.UseVisualStyleBackColor = false; // // check_turbo // this.check_turbo.AutoSize = true; this.check_turbo.BackColor = System.Drawing.Color.Transparent; this.check_turbo.Enabled = false; this.check_turbo.Location = new System.Drawing.Point(495, 134); this.check_turbo.Name = "check_turbo"; this.check_turbo.Size = new System.Drawing.Size(101, 17); this.check_turbo.TabIndex = 9; this.check_turbo.Text = "Turbo first Pass"; this.ToolTip.SetToolTip(this.check_turbo, "Makes the first pass of a 2 pass encode faster."); this.check_turbo.UseVisualStyleBackColor = false; // // drp_videoFramerate // this.drp_videoFramerate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drp_videoFramerate.FormattingEnabled = true; this.drp_videoFramerate.Items.AddRange(new object[] { "Same as source", "5", "10", "12", "15", "23.976", "24", "25", "29.97"}); this.drp_videoFramerate.Location = new System.Drawing.Point(125, 62); this.drp_videoFramerate.Name = "drp_videoFramerate"; this.drp_videoFramerate.Size = new System.Drawing.Size(125, 21); this.drp_videoFramerate.TabIndex = 2; this.ToolTip.SetToolTip(this.drp_videoFramerate, "Can be left to \"Same as source\" in most cases."); this.drp_videoFramerate.SelectedIndexChanged += new System.EventHandler(this.drp_videoFramerate_SelectedIndexChanged); // // slider_videoQuality // this.slider_videoQuality.BackColor = System.Drawing.SystemColors.Window; this.slider_videoQuality.Enabled = false; this.slider_videoQuality.Location = new System.Drawing.Point(377, 60); this.slider_videoQuality.Margin = new System.Windows.Forms.Padding(0); this.slider_videoQuality.Maximum = 100; this.slider_videoQuality.Name = "slider_videoQuality"; this.slider_videoQuality.Size = new System.Drawing.Size(322, 45); this.slider_videoQuality.TabIndex = 13; this.slider_videoQuality.TickFrequency = 17; this.ToolTip.SetToolTip(this.slider_videoQuality, resources.GetString("slider_videoQuality.ToolTip")); this.slider_videoQuality.ValueChanged += new System.EventHandler(this.slider_videoQuality_Scroll); // // text_bitrate // this.text_bitrate.Location = new System.Drawing.Point(489, 107); this.text_bitrate.Name = "text_bitrate"; this.text_bitrate.Size = new System.Drawing.Size(81, 21); this.text_bitrate.TabIndex = 14; this.ToolTip.SetToolTip(this.text_bitrate, resources.GetString("text_bitrate.ToolTip")); // // check_optimiseMP4 // this.check_optimiseMP4.Anchor = System.Windows.Forms.AnchorStyles.Left; this.check_optimiseMP4.AutoSize = true; this.check_optimiseMP4.BackColor = System.Drawing.Color.Transparent; this.check_optimiseMP4.Location = new System.Drawing.Point(276, 5); this.check_optimiseMP4.Name = "check_optimiseMP4"; this.check_optimiseMP4.Size = new System.Drawing.Size(96, 17); this.check_optimiseMP4.TabIndex = 3; this.check_optimiseMP4.Text = "Web optimized"; this.ToolTip.SetToolTip(this.check_optimiseMP4, "MP4 files can be optimized for progressive downloads over the Web,\r\nbut note that" + " QuickTime can only read the files as long as the file extension is .mp4\r\nCan on" + "ly be used with H.264 "); this.check_optimiseMP4.UseVisualStyleBackColor = false; // // check_iPodAtom // this.check_iPodAtom.Anchor = System.Windows.Forms.AnchorStyles.Left; this.check_iPodAtom.AutoSize = true; this.check_iPodAtom.BackColor = System.Drawing.Color.Transparent; this.check_iPodAtom.Location = new System.Drawing.Point(378, 5); this.check_iPodAtom.Name = "check_iPodAtom"; this.check_iPodAtom.Size = new System.Drawing.Size(102, 17); this.check_iPodAtom.TabIndex = 4; this.check_iPodAtom.Text = "iPod 5G support"; this.ToolTip.SetToolTip(this.check_iPodAtom, "Support for legacy 5th Generation iPods.\r\nEncodes will not sync if this option is" + " not enabled for H.264 encodes."); this.check_iPodAtom.UseVisualStyleBackColor = false; // // data_chpt // this.data_chpt.AllowUserToAddRows = false; this.data_chpt.AllowUserToDeleteRows = false; this.data_chpt.AllowUserToResizeRows = false; this.data_chpt.BackgroundColor = System.Drawing.Color.White; this.data_chpt.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; this.data_chpt.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.data_chpt.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.number, this.name}); this.data_chpt.ContextMenuStrip = this.ChaptersMenu; this.data_chpt.Location = new System.Drawing.Point(16, 55); this.data_chpt.MultiSelect = false; this.data_chpt.Name = "data_chpt"; this.data_chpt.RowHeadersVisible = false; this.data_chpt.Size = new System.Drawing.Size(684, 236); this.data_chpt.TabIndex = 3; this.ToolTip.SetToolTip(this.data_chpt, resources.GetString("data_chpt.ToolTip")); // // number // dataGridViewCellStyle1.Format = "N0"; dataGridViewCellStyle1.NullValue = null; this.number.DefaultCellStyle = dataGridViewCellStyle1; this.number.Frozen = true; this.number.HeaderText = "Chapter Number"; this.number.MaxInputLength = 3; this.number.Name = "number"; this.number.Resizable = System.Windows.Forms.DataGridViewTriState.False; this.number.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; this.number.Width = 165; // // name // this.name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.name.HeaderText = "Chapter Name"; this.name.Name = "name"; this.name.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; // // ChaptersMenu // this.ChaptersMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnu_resetChapters}); this.ChaptersMenu.Name = "presets_menu"; this.ChaptersMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; this.ChaptersMenu.Size = new System.Drawing.Size(188, 26); this.ChaptersMenu.Text = ";"; // // mnu_resetChapters // this.mnu_resetChapters.Name = "mnu_resetChapters"; this.mnu_resetChapters.Size = new System.Drawing.Size(187, 22); this.mnu_resetChapters.Text = "Reset Chapter Names"; this.mnu_resetChapters.Click += new System.EventHandler(this.mnu_resetChapters_Click); // // drop_format // this.drop_format.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drop_format.FormattingEnabled = true; this.drop_format.Items.AddRange(new object[] { "MP4 File", "MKV File"}); this.drop_format.Location = new System.Drawing.Point(67, 3); this.drop_format.Name = "drop_format"; this.drop_format.Size = new System.Drawing.Size(106, 21); this.drop_format.TabIndex = 1; this.ToolTip.SetToolTip(this.drop_format, "Select the file container format.\r\nHandBrake supports MKV and MP4(M4v)"); this.drop_format.SelectedIndexChanged += new System.EventHandler(this.drop_format_SelectedIndexChanged); // // drop_chapterFinish // this.drop_chapterFinish.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drop_chapterFinish.FormattingEnabled = true; this.drop_chapterFinish.Location = new System.Drawing.Point(509, 3); this.drop_chapterFinish.Name = "drop_chapterFinish"; this.drop_chapterFinish.Size = new System.Drawing.Size(69, 21); this.drop_chapterFinish.TabIndex = 7; this.ToolTip.SetToolTip(this.drop_chapterFinish, "Select the chapter range you would like to enocde. (default: All Chapters)"); this.drop_chapterFinish.SelectedIndexChanged += new System.EventHandler(this.chapersChanged); // // drop_chapterStart // this.drop_chapterStart.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drop_chapterStart.FormattingEnabled = true; this.drop_chapterStart.Location = new System.Drawing.Point(383, 3); this.drop_chapterStart.Name = "drop_chapterStart"; this.drop_chapterStart.Size = new System.Drawing.Size(69, 21); this.drop_chapterStart.TabIndex = 5; this.ToolTip.SetToolTip(this.drop_chapterStart, "Select the chapter range you would like to enocde. (default: All Chapters)"); this.drop_chapterStart.SelectedIndexChanged += new System.EventHandler(this.chapersChanged); // // drop_angle // this.drop_angle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drop_angle.FormattingEnabled = true; this.drop_angle.Location = new System.Drawing.Point(209, 3); this.drop_angle.Name = "drop_angle"; this.drop_angle.Size = new System.Drawing.Size(45, 21); this.drop_angle.TabIndex = 3; this.ToolTip.SetToolTip(this.drop_angle, "Select the chapter range you would like to enocde. (default: All Chapters)"); // // drp_dvdtitle // this.drp_dvdtitle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drp_dvdtitle.DropDownWidth = 180; this.drp_dvdtitle.FormattingEnabled = true; this.drp_dvdtitle.Items.AddRange(new object[] { "Automatic"}); this.drp_dvdtitle.Location = new System.Drawing.Point(40, 3); this.drp_dvdtitle.Name = "drp_dvdtitle"; this.drp_dvdtitle.Size = new System.Drawing.Size(119, 21); this.drp_dvdtitle.TabIndex = 1; this.ToolTip.SetToolTip(this.drp_dvdtitle, "Select the title you wish to encode.\r\n\r\nWhen a DVD is in use, HandBrake will try " + "to determine the \"Main Feature\" title automatically.\r\nPlease note, this is not a" + "lways accurate and should be checked."); this.drp_dvdtitle.SelectedIndexChanged += new System.EventHandler(this.drp_dvdtitle_SelectedIndexChanged); this.drp_dvdtitle.Click += new System.EventHandler(this.drp_dvdtitle_Click); // // btn_importChapters // this.btn_importChapters.AutoSize = true; this.btn_importChapters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btn_importChapters.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btn_importChapters.Location = new System.Drawing.Point(544, 28); this.btn_importChapters.Name = "btn_importChapters"; this.btn_importChapters.Size = new System.Drawing.Size(75, 23); this.btn_importChapters.TabIndex = 1; this.btn_importChapters.Text = "Import"; this.ToolTip.SetToolTip(this.btn_importChapters, resources.GetString("btn_importChapters.ToolTip")); this.btn_importChapters.UseVisualStyleBackColor = true; this.btn_importChapters.Click += new System.EventHandler(this.btn_importChapters_Click); // // btn_export // this.btn_export.AutoSize = true; this.btn_export.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btn_export.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btn_export.Location = new System.Drawing.Point(625, 28); this.btn_export.Name = "btn_export"; this.btn_export.Size = new System.Drawing.Size(75, 23); this.btn_export.TabIndex = 0; this.btn_export.Text = "Export"; this.ToolTip.SetToolTip(this.btn_export, resources.GetString("btn_export.ToolTip")); this.btn_export.UseVisualStyleBackColor = true; this.btn_export.Click += new System.EventHandler(this.btn_export_Click); // // drop_mode // this.drop_mode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.drop_mode.FormattingEnabled = true; this.drop_mode.Items.AddRange(new object[] { "Chapters", "Seconds", "Frames"}); this.drop_mode.Location = new System.Drawing.Point(295, 3); this.drop_mode.Name = "drop_mode"; this.drop_mode.Size = new System.Drawing.Size(77, 21); this.drop_mode.TabIndex = 4; this.ToolTip.SetToolTip(this.drop_mode, resources.GetString("drop_mode.ToolTip")); this.drop_mode.SelectedIndexChanged += new System.EventHandler(this.drop_mode_SelectedIndexChanged); // // btn_generate_Query // this.btn_generate_Query.FlatAppearance.BorderColor = System.Drawing.Color.Black; this.btn_generate_Query.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btn_generate_Query.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btn_generate_Query.Location = new System.Drawing.Point(16, 104); this.btn_generate_Query.Name = "btn_generate_Query"; this.btn_generate_Query.Size = new System.Drawing.Size(126, 22); this.btn_generate_Query.TabIndex = 2; this.btn_generate_Query.Text = "Generate Query"; this.ToolTip.SetToolTip(this.btn_generate_Query, "This will allow you to override the generated query.\r\nNote, The query in the box " + "below will always override any automatically generated query, even if you change" + " title or source."); this.btn_generate_Query.UseVisualStyleBackColor = true; this.btn_generate_Query.Click += new System.EventHandler(this.btn_generate_Query_Click); // // radio_cq // this.radio_cq.AutoSize = true; this.radio_cq.BackColor = System.Drawing.Color.Transparent; this.radio_cq.Location = new System.Drawing.Point(366, 37); this.radio_cq.Name = "radio_cq"; this.radio_cq.Size = new System.Drawing.Size(110, 17); this.radio_cq.TabIndex = 3; this.radio_cq.Text = "Constant Quality:"; this.ToolTip.SetToolTip(this.radio_cq, resources.GetString("radio_cq.ToolTip")); this.radio_cq.UseVisualStyleBackColor = false; this.radio_cq.CheckedChanged += new System.EventHandler(this.radio_cq_CheckedChanged); // // radio_avgBitrate // this.radio_avgBitrate.AutoSize = true; this.radio_avgBitrate.BackColor = System.Drawing.Color.Transparent; this.radio_avgBitrate.Checked = true; this.radio_avgBitrate.Location = new System.Drawing.Point(367, 108); this.radio_avgBitrate.Name = "radio_avgBitrate"; this.radio_avgBitrate.Size = new System.Drawing.Size(116, 17); this.radio_avgBitrate.TabIndex = 4; this.radio_avgBitrate.TabStop = true; this.radio_avgBitrate.Text = "Avg Bitrate (kbps):"; this.ToolTip.SetToolTip(this.radio_avgBitrate, resources.GetString("radio_avgBitrate.ToolTip")); this.radio_avgBitrate.UseVisualStyleBackColor = false; this.radio_avgBitrate.CheckedChanged += new System.EventHandler(this.radio_avgBitrate_CheckedChanged); // // check_2PassEncode // this.check_2PassEncode.AutoSize = true; this.check_2PassEncode.BackColor = System.Drawing.Color.Transparent; this.check_2PassEncode.Location = new System.Drawing.Point(385, 134); this.check_2PassEncode.Name = "check_2PassEncode"; this.check_2PassEncode.Size = new System.Drawing.Size(104, 17); this.check_2PassEncode.TabIndex = 10; this.check_2PassEncode.Text = "2-Pass Encoding"; this.ToolTip.SetToolTip(this.check_2PassEncode, resources.GetString("check_2PassEncode.ToolTip")); this.check_2PassEncode.UseVisualStyleBackColor = false; this.check_2PassEncode.CheckedChanged += new System.EventHandler(this.check_2PassEncode_CheckedChanged); // // btn_file_source // this.btn_file_source.Image = global::Handbrake.Properties.Resources.Movies_Small; this.btn_file_source.Name = "btn_file_source"; this.btn_file_source.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); this.btn_file_source.Size = new System.Drawing.Size(182, 22); this.btn_file_source.Text = "Video File"; this.btn_file_source.Click += new System.EventHandler(this.BtnFileScanClicked); // // treeView_presets // this.treeView_presets.ContextMenuStrip = this.presets_menu; this.treeView_presets.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.treeView_presets.ForeColor = System.Drawing.Color.DarkBlue; this.treeView_presets.FullRowSelect = true; this.treeView_presets.HideSelection = false; this.treeView_presets.ItemHeight = 21; this.treeView_presets.Location = new System.Drawing.Point(0, 0); this.treeView_presets.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0); this.treeView_presets.Name = "treeView_presets"; this.treeView_presets.ShowLines = false; this.treeView_presets.Size = new System.Drawing.Size(240, 424); this.treeView_presets.TabIndex = 0; this.treeView_presets.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_presets_AfterSelect); this.treeView_presets.KeyUp += new System.Windows.Forms.KeyEventHandler(this.treeView_presets_deleteKey); this.treeView_presets.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeview_presets_mouseDown); this.treeView_presets.MouseMove += new System.Windows.Forms.MouseEventHandler(this.TreeViewPresetsMouseMove); // // presets_menu // this.presets_menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.pmnu_expandAll, this.pmnu_collapse, this.sep1, this.pmnu_import, this.toolStripSeparator2, this.pmnu_saveChanges, this.pmnu_delete}); this.presets_menu.Name = "presets_menu"; this.presets_menu.Size = new System.Drawing.Size(148, 126); this.presets_menu.Text = ";"; this.presets_menu.Opening += new System.ComponentModel.CancelEventHandler(this.presets_menu_Opening); // // pmnu_expandAll // this.pmnu_expandAll.Name = "pmnu_expandAll"; this.pmnu_expandAll.Size = new System.Drawing.Size(147, 22); this.pmnu_expandAll.Text = "Expand All"; this.pmnu_expandAll.Click += new System.EventHandler(this.pmnu_expandAll_Click); // // pmnu_collapse // this.pmnu_collapse.Name = "pmnu_collapse"; this.pmnu_collapse.Size = new System.Drawing.Size(147, 22); this.pmnu_collapse.Text = "Collapse All"; this.pmnu_collapse.Click += new System.EventHandler(this.pmnu_collapse_Click); // // sep1 // this.sep1.Name = "sep1"; this.sep1.Size = new System.Drawing.Size(144, 6); // // pmnu_import // this.pmnu_import.Name = "pmnu_import"; this.pmnu_import.Size = new System.Drawing.Size(147, 22); this.pmnu_import.Text = "Import"; this.pmnu_import.Click += new System.EventHandler(this.pmnu_import_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(144, 6); // // pmnu_saveChanges // this.pmnu_saveChanges.Name = "pmnu_saveChanges"; this.pmnu_saveChanges.Size = new System.Drawing.Size(147, 22); this.pmnu_saveChanges.Text = "Save Changes"; this.pmnu_saveChanges.Click += new System.EventHandler(this.pmnu_saveChanges_Click); // // pmnu_delete // this.pmnu_delete.Name = "pmnu_delete"; this.pmnu_delete.Size = new System.Drawing.Size(147, 22); this.pmnu_delete.Text = "Delete"; this.pmnu_delete.Click += new System.EventHandler(this.pmnu_delete_click); // // DVD_Open // this.DVD_Open.Description = "Select a VIDEO_TS folder or a folder which contains a collection of video files."; // // File_Open // this.File_Open.DefaultExt = "hb"; this.File_Open.Filter = "hb|*.hb"; // // ISO_Open // this.ISO_Open.DefaultExt = "ISO"; this.ISO_Open.Filter = "All Files|*.*"; this.ISO_Open.RestoreDirectory = true; this.ISO_Open.SupportMultiDottedExtensions = true; // // FileToolStripMenuItem // this.FileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnu_killCLI, this.mnu_exit}); this.FileToolStripMenuItem.Name = "FileToolStripMenuItem"; this.FileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.FileToolStripMenuItem.Text = "&File"; // // mnu_killCLI // this.mnu_killCLI.Name = "mnu_killCLI"; this.mnu_killCLI.Size = new System.Drawing.Size(138, 22); this.mnu_killCLI.Text = "Cancel Scan"; this.mnu_killCLI.Visible = false; this.mnu_killCLI.Click += new System.EventHandler(this.mnu_killCLI_Click); // // mnu_exit // this.mnu_exit.Name = "mnu_exit"; this.mnu_exit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4))); this.mnu_exit.Size = new System.Drawing.Size(138, 22); this.mnu_exit.Text = "E&xit"; this.mnu_exit.Click += new System.EventHandler(this.mnu_exit_Click); // // mnu_open3 // this.mnu_open3.Name = "mnu_open3"; this.mnu_open3.Size = new System.Drawing.Size(32, 19); // // ToolsToolStripMenuItem // this.ToolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnu_encode, this.mnu_encodeLog, this.ToolStripSeparator5, this.mnu_options}); this.ToolsToolStripMenuItem.Name = "ToolsToolStripMenuItem"; this.ToolsToolStripMenuItem.Size = new System.Drawing.Size(48, 20); this.ToolsToolStripMenuItem.Text = "&Tools"; // // mnu_encode // this.mnu_encode.Image = global::Handbrake.Properties.Resources.Queue_Small; this.mnu_encode.Name = "mnu_encode"; this.mnu_encode.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q))); this.mnu_encode.Size = new System.Drawing.Size(201, 22); this.mnu_encode.Text = "Show Queue"; this.mnu_encode.Click += new System.EventHandler(this.mnu_encode_Click); // // mnu_encodeLog // this.mnu_encodeLog.Image = global::Handbrake.Properties.Resources.ActivityWindow_small; this.mnu_encodeLog.Name = "mnu_encodeLog"; this.mnu_encodeLog.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.L))); this.mnu_encodeLog.Size = new System.Drawing.Size(201, 22); this.mnu_encodeLog.Text = "Activity Window"; this.mnu_encodeLog.Click += new System.EventHandler(this.mnu_encodeLog_Click); // // ToolStripSeparator5 // this.ToolStripSeparator5.Name = "ToolStripSeparator5"; this.ToolStripSeparator5.Size = new System.Drawing.Size(198, 6); // // mnu_options // this.mnu_options.Image = global::Handbrake.Properties.Resources.Pref_Small; this.mnu_options.Name = "mnu_options"; this.mnu_options.Size = new System.Drawing.Size(201, 22); this.mnu_options.Text = "Options"; this.mnu_options.Click += new System.EventHandler(this.mnu_options_Click); // // frmMainMenu // this.frmMainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.FileToolStripMenuItem, this.ToolsToolStripMenuItem}); this.frmMainMenu.Location = new System.Drawing.Point(0, 0); this.frmMainMenu.Name = "frmMainMenu"; this.frmMainMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; this.frmMainMenu.Size = new System.Drawing.Size(1002, 24); this.frmMainMenu.TabIndex = 0; this.frmMainMenu.TabStop = true; this.frmMainMenu.Text = "MenuStrip"; // // label5 // this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left; this.label5.AutoSize = true; this.label5.ForeColor = System.Drawing.Color.Black; this.label5.Location = new System.Drawing.Point(3, 7); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(58, 13); this.label5.TabIndex = 0; this.label5.Text = "Container:"; // // Label47 // this.Label47.AutoSize = true; this.Label47.BackColor = System.Drawing.Color.Transparent; this.Label47.ForeColor = System.Drawing.Color.Black; this.Label47.Location = new System.Drawing.Point(13, 39); this.Label47.Name = "Label47"; this.Label47.Size = new System.Drawing.Size(70, 13); this.Label47.TabIndex = 7; this.Label47.Text = "Video Codec:"; // // Label3 // this.Label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.Label3.AutoSize = true; this.Label3.ForeColor = System.Drawing.Color.Black; this.Label3.Location = new System.Drawing.Point(3, 8); this.Label3.Name = "Label3"; this.Label3.Size = new System.Drawing.Size(27, 13); this.Label3.TabIndex = 0; this.Label3.Text = "File:"; // // tab_audio // this.tab_audio.BackColor = System.Drawing.Color.Transparent; this.tab_audio.Controls.Add(this.AudioSettings); this.tab_audio.Location = new System.Drawing.Point(4, 22); this.tab_audio.Name = "tab_audio"; this.tab_audio.Padding = new System.Windows.Forms.Padding(3); this.tab_audio.Size = new System.Drawing.Size(724, 308); this.tab_audio.TabIndex = 3; this.tab_audio.Text = "Audio"; this.tab_audio.UseVisualStyleBackColor = true; // // AudioSettings // this.AudioSettings.BackColor = System.Drawing.Color.Transparent; this.AudioSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.AudioSettings.Location = new System.Drawing.Point(0, 0); this.AudioSettings.Name = "AudioSettings"; allowedPassthru1.AudioAllowAACPass = true; allowedPassthru1.AudioAllowAC3Pass = true; allowedPassthru1.AudioAllowDTSHDPass = true; allowedPassthru1.AudioAllowDTSPass = true; allowedPassthru1.AudioAllowMP3Pass = true; allowedPassthru1.AudioEncoderFallback = HandBrake.Interop.Model.Encoding.AudioEncoder.Ac3; this.AudioSettings.PassthruSettings = allowedPassthru1; this.AudioSettings.Size = new System.Drawing.Size(720, 310); this.AudioSettings.TabIndex = 0; // // AudioMenuRowHeightHack // this.AudioMenuRowHeightHack.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; this.AudioMenuRowHeightHack.ImageSize = new System.Drawing.Size(1, 18); this.AudioMenuRowHeightHack.TransparentColor = System.Drawing.Color.Transparent; // // tab_video // this.tab_video.BackColor = System.Drawing.Color.Transparent; this.tab_video.Controls.Add(this.panel1); this.tab_video.Controls.Add(this.drp_videoFramerate); this.tab_video.Controls.Add(this.radio_cq); this.tab_video.Controls.Add(this.radio_avgBitrate); this.tab_video.Controls.Add(this.drp_videoEncoder); this.tab_video.Controls.Add(this.Label47); this.tab_video.Controls.Add(this.label25); this.tab_video.Controls.Add(this.check_turbo); this.tab_video.Controls.Add(this.check_2PassEncode); this.tab_video.Controls.Add(this.Label2); this.tab_video.Controls.Add(this.slider_videoQuality); this.tab_video.Controls.Add(this.text_bitrate); this.tab_video.Controls.Add(this.lbl_SliderValue); this.tab_video.Controls.Add(this.lbl_framerate); this.tab_video.Location = new System.Drawing.Point(4, 22); this.tab_video.Name = "tab_video"; this.tab_video.Padding = new System.Windows.Forms.Padding(3); this.tab_video.Size = new System.Drawing.Size(724, 308); this.tab_video.TabIndex = 2; this.tab_video.Text = "Video"; this.tab_video.UseVisualStyleBackColor = true; // // panel1 // this.panel1.Controls.Add(this.radio_constantFramerate); this.panel1.Controls.Add(this.radio_peakAndVariable); this.panel1.Location = new System.Drawing.Point(125, 92); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(184, 59); this.panel1.TabIndex = 20; // // radio_constantFramerate // this.radio_constantFramerate.AutoSize = true; this.radio_constantFramerate.BackColor = System.Drawing.Color.Transparent; this.radio_constantFramerate.Checked = true; this.radio_constantFramerate.Location = new System.Drawing.Point(0, 0); this.radio_constantFramerate.Name = "radio_constantFramerate"; this.radio_constantFramerate.Size = new System.Drawing.Size(122, 17); this.radio_constantFramerate.TabIndex = 17; this.radio_constantFramerate.TabStop = true; this.radio_constantFramerate.Text = "Constant Framerate"; this.radio_constantFramerate.UseVisualStyleBackColor = false; // // radio_peakAndVariable // this.radio_peakAndVariable.AutoSize = true; this.radio_peakAndVariable.BackColor = System.Drawing.Color.Transparent; this.radio_peakAndVariable.Location = new System.Drawing.Point(0, 23); this.radio_peakAndVariable.Name = "radio_peakAndVariable"; this.radio_peakAndVariable.Size = new System.Drawing.Size(116, 17); this.radio_peakAndVariable.TabIndex = 19; this.radio_peakAndVariable.Text = "Variable Framerate"; this.radio_peakAndVariable.UseVisualStyleBackColor = false; // // label25 // this.label25.AutoSize = true; this.label25.BackColor = System.Drawing.Color.Transparent; this.label25.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label25.Location = new System.Drawing.Point(13, 13); this.label25.Name = "label25"; this.label25.Size = new System.Drawing.Size(38, 13); this.label25.TabIndex = 8; this.label25.Text = "Video"; // // Label2 // this.Label2.AutoSize = true; this.Label2.BackColor = System.Drawing.Color.Transparent; this.Label2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label2.Location = new System.Drawing.Point(363, 13); this.Label2.Name = "Label2"; this.Label2.Size = new System.Drawing.Size(47, 13); this.Label2.TabIndex = 11; this.Label2.Text = "Quality"; // // lbl_SliderValue // this.lbl_SliderValue.AutoSize = true; this.lbl_SliderValue.BackColor = System.Drawing.Color.Transparent; this.lbl_SliderValue.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbl_SliderValue.Location = new System.Drawing.Point(487, 39); this.lbl_SliderValue.Name = "lbl_SliderValue"; this.lbl_SliderValue.Size = new System.Drawing.Size(21, 13); this.lbl_SliderValue.TabIndex = 15; this.lbl_SliderValue.Text = "RF"; // // lbl_framerate // this.lbl_framerate.AutoSize = true; this.lbl_framerate.BackColor = System.Drawing.Color.Transparent; this.lbl_framerate.Location = new System.Drawing.Point(13, 65); this.lbl_framerate.Name = "lbl_framerate"; this.lbl_framerate.Size = new System.Drawing.Size(90, 13); this.lbl_framerate.TabIndex = 16; this.lbl_framerate.Text = "Framerate (FPS):"; // // tab_picture // this.tab_picture.BackColor = System.Drawing.Color.Transparent; this.tab_picture.Controls.Add(this.PictureSettings); this.tab_picture.Location = new System.Drawing.Point(4, 22); this.tab_picture.Name = "tab_picture"; this.tab_picture.Padding = new System.Windows.Forms.Padding(3); this.tab_picture.Size = new System.Drawing.Size(724, 308); this.tab_picture.TabIndex = 0; this.tab_picture.Text = "Picture"; this.tab_picture.UseVisualStyleBackColor = true; // // PictureSettings // this.PictureSettings.BackColor = System.Drawing.Color.Transparent; this.PictureSettings.CurrentlySelectedPreset = null; this.PictureSettings.Enabled = false; this.PictureSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.PictureSettings.Location = new System.Drawing.Point(0, 0); this.PictureSettings.Name = "PictureSettings"; this.PictureSettings.PresetMaximumResolution = new System.Drawing.Size(0, 0); this.PictureSettings.Size = new System.Drawing.Size(666, 279); this.PictureSettings.SizeSet = false; this.PictureSettings.TabIndex = 0; // // Check_ChapterMarkers // this.Check_ChapterMarkers.AutoSize = true; this.Check_ChapterMarkers.BackColor = System.Drawing.Color.Transparent; this.Check_ChapterMarkers.Location = new System.Drawing.Point(16, 32); this.Check_ChapterMarkers.Name = "Check_ChapterMarkers"; this.Check_ChapterMarkers.Size = new System.Drawing.Size(140, 17); this.Check_ChapterMarkers.TabIndex = 4; this.Check_ChapterMarkers.Text = "Create chapter markers"; this.Check_ChapterMarkers.UseVisualStyleBackColor = false; this.Check_ChapterMarkers.CheckedChanged += new System.EventHandler(this.Check_ChapterMarkers_CheckedChanged); // // tabs_panel // this.tabs_panel.Controls.Add(this.tab_picture); this.tabs_panel.Controls.Add(this.tab_filters); this.tabs_panel.Controls.Add(this.tab_video); this.tabs_panel.Controls.Add(this.tab_audio); this.tabs_panel.Controls.Add(this.tab_subtitles); this.tabs_panel.Controls.Add(this.tab_chapters); this.tabs_panel.Controls.Add(this.tab_advanced); this.tabs_panel.Controls.Add(this.tab_query); this.tabs_panel.Location = new System.Drawing.Point(12, 218); this.tabs_panel.Name = "tabs_panel"; this.tabs_panel.SelectedIndex = 0; this.tabs_panel.Size = new System.Drawing.Size(732, 334); this.tabs_panel.TabIndex = 6; // // tab_filters // this.tab_filters.Controls.Add(this.Filters); this.tab_filters.Location = new System.Drawing.Point(4, 22); this.tab_filters.Name = "tab_filters"; this.tab_filters.Size = new System.Drawing.Size(724, 308); this.tab_filters.TabIndex = 1; this.tab_filters.Text = "Video Filters"; this.tab_filters.UseVisualStyleBackColor = true; // // Filters // this.Filters.BackColor = System.Drawing.Color.Transparent; this.Filters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Filters.Location = new System.Drawing.Point(0, 0); this.Filters.Name = "Filters"; this.Filters.Size = new System.Drawing.Size(713, 310); this.Filters.TabIndex = 0; // // tab_subtitles // this.tab_subtitles.Controls.Add(this.Subtitles); this.tab_subtitles.Location = new System.Drawing.Point(4, 22); this.tab_subtitles.Name = "tab_subtitles"; this.tab_subtitles.Padding = new System.Windows.Forms.Padding(3); this.tab_subtitles.Size = new System.Drawing.Size(724, 308); this.tab_subtitles.TabIndex = 4; this.tab_subtitles.Text = "Subtitles"; this.tab_subtitles.UseVisualStyleBackColor = true; // // Subtitles // this.Subtitles.BackColor = System.Drawing.Color.Transparent; this.Subtitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Subtitles.Location = new System.Drawing.Point(0, 0); this.Subtitles.Name = "Subtitles"; this.Subtitles.Size = new System.Drawing.Size(722, 310); this.Subtitles.TabIndex = 0; // // tab_chapters // this.tab_chapters.BackColor = System.Drawing.Color.Transparent; this.tab_chapters.Controls.Add(this.btn_export); this.tab_chapters.Controls.Add(this.btn_importChapters); this.tab_chapters.Controls.Add(this.label31); this.tab_chapters.Controls.Add(this.data_chpt); this.tab_chapters.Controls.Add(this.Check_ChapterMarkers); this.tab_chapters.Location = new System.Drawing.Point(4, 22); this.tab_chapters.Name = "tab_chapters"; this.tab_chapters.Size = new System.Drawing.Size(724, 308); this.tab_chapters.TabIndex = 5; this.tab_chapters.Text = "Chapters"; this.tab_chapters.UseVisualStyleBackColor = true; // // label31 // this.label31.AutoSize = true; this.label31.BackColor = System.Drawing.Color.Transparent; this.label31.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label31.Location = new System.Drawing.Point(13, 13); this.label31.Name = "label31"; this.label31.Size = new System.Drawing.Size(102, 13); this.label31.TabIndex = 2; this.label31.Text = "Chapter Markers"; // // tab_advanced // this.tab_advanced.BackColor = System.Drawing.Color.Transparent; this.tab_advanced.Controls.Add(this.advancedEncoderOpts); this.tab_advanced.Controls.Add(this.x264Panel); this.tab_advanced.Location = new System.Drawing.Point(4, 22); this.tab_advanced.Name = "tab_advanced"; this.tab_advanced.Padding = new System.Windows.Forms.Padding(3); this.tab_advanced.Size = new System.Drawing.Size(724, 308); this.tab_advanced.TabIndex = 6; this.tab_advanced.Text = "Advanced"; this.tab_advanced.UseVisualStyleBackColor = true; // // advancedEncoderOpts // this.advancedEncoderOpts.AdavancedQuery = ""; this.advancedEncoderOpts.BackColor = System.Drawing.Color.Transparent; this.advancedEncoderOpts.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.advancedEncoderOpts.Location = new System.Drawing.Point(0, 0); this.advancedEncoderOpts.Name = "advancedEncoderOpts"; this.advancedEncoderOpts.Size = new System.Drawing.Size(720, 209); this.advancedEncoderOpts.TabIndex = 1; // // x264Panel // this.x264Panel.BackColor = System.Drawing.Color.Transparent; this.x264Panel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.x264Panel.Location = new System.Drawing.Point(0, 0); this.x264Panel.Name = "x264Panel"; this.x264Panel.Size = new System.Drawing.Size(720, 306); this.x264Panel.TabIndex = 0; this.x264Panel.X264Query = ""; // // tab_query // this.tab_query.Controls.Add(this.btn_clear); this.tab_query.Controls.Add(this.label34); this.tab_query.Controls.Add(this.btn_generate_Query); this.tab_query.Controls.Add(this.label33); this.tab_query.Controls.Add(this.rtf_query); this.tab_query.Location = new System.Drawing.Point(4, 22); this.tab_query.Name = "tab_query"; this.tab_query.Size = new System.Drawing.Size(724, 308); this.tab_query.TabIndex = 7; this.tab_query.Text = "Query Editor"; this.tab_query.UseVisualStyleBackColor = true; // // btn_clear // this.btn_clear.FlatAppearance.BorderColor = System.Drawing.Color.Black; this.btn_clear.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btn_clear.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btn_clear.Location = new System.Drawing.Point(634, 104); this.btn_clear.Name = "btn_clear"; this.btn_clear.Size = new System.Drawing.Size(75, 22); this.btn_clear.TabIndex = 0; this.btn_clear.Text = "Clear"; this.btn_clear.UseVisualStyleBackColor = true; this.btn_clear.Click += new System.EventHandler(this.btn_clear_Click); // // label34 // this.label34.AutoSize = true; this.label34.Location = new System.Drawing.Point(13, 35); this.label34.Name = "label34"; this.label34.Size = new System.Drawing.Size(631, 52); this.label34.TabIndex = 1; this.label34.Text = resources.GetString("label34.Text"); // // label33 // this.label33.AutoSize = true; this.label33.BackColor = System.Drawing.Color.Transparent; this.label33.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label33.Location = new System.Drawing.Point(13, 13); this.label33.Name = "label33"; this.label33.Size = new System.Drawing.Size(77, 13); this.label33.TabIndex = 3; this.label33.Text = "Query Editor"; // // rtf_query // this.rtf_query.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.rtf_query.Location = new System.Drawing.Point(16, 132); this.rtf_query.Name = "rtf_query"; this.rtf_query.Size = new System.Drawing.Size(693, 161); this.rtf_query.TabIndex = 4; this.rtf_query.Text = ""; // // groupBox2 // this.groupBox2.Controls.Add(this.splitContainer1); this.groupBox2.ForeColor = System.Drawing.Color.Black; this.groupBox2.Location = new System.Drawing.Point(750, 70); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(246, 482); this.groupBox2.TabIndex = 4; this.groupBox2.TabStop = false; this.groupBox2.Text = "Presets"; // // splitContainer1 // this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.Location = new System.Drawing.Point(3, 17); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.treeView_presets); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.presetsToolStrip); this.splitContainer1.Size = new System.Drawing.Size(240, 462); this.splitContainer1.SplitterDistance = 424; this.splitContainer1.TabIndex = 0; // // presetsToolStrip // this.presetsToolStrip.CanOverflow = false; this.presetsToolStrip.Dock = System.Windows.Forms.DockStyle.Fill; this.presetsToolStrip.GripMargin = new System.Windows.Forms.Padding(0); this.presetsToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.presetsToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.BtnAddPreset, this.BtnRemovePreset, this.toolStripDropDownButton2}); this.presetsToolStrip.Location = new System.Drawing.Point(0, 0); this.presetsToolStrip.Name = "presetsToolStrip"; this.presetsToolStrip.Padding = new System.Windows.Forms.Padding(0); this.presetsToolStrip.Size = new System.Drawing.Size(240, 34); this.presetsToolStrip.TabIndex = 2; this.presetsToolStrip.Text = "toolStrip2"; // // BtnAddPreset // this.BtnAddPreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.BtnAddPreset.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.BtnAddPreset.Image = global::Handbrake.Properties.Resources.Add16; this.BtnAddPreset.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnAddPreset.Name = "BtnAddPreset"; this.BtnAddPreset.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never; this.BtnAddPreset.Padding = new System.Windows.Forms.Padding(8, 0, 8, 0); this.BtnAddPreset.Size = new System.Drawing.Size(65, 31); this.BtnAddPreset.Text = "Add"; this.BtnAddPreset.Click += new System.EventHandler(this.BtnAddPreset_Click); // // BtnRemovePreset // this.BtnRemovePreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.BtnRemovePreset.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.BtnRemovePreset.Image = global::Handbrake.Properties.Resources.Close; this.BtnRemovePreset.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnRemovePreset.Name = "BtnRemovePreset"; this.BtnRemovePreset.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never; this.BtnRemovePreset.Padding = new System.Windows.Forms.Padding(0, 0, 8, 0); this.BtnRemovePreset.Size = new System.Drawing.Size(82, 31); this.BtnRemovePreset.Text = "Remove"; this.BtnRemovePreset.Click += new System.EventHandler(this.BtnRemovePreset_Click); // // toolStripDropDownButton2 // this.toolStripDropDownButton2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.MnuSetDefaultPreset, this.toolStripSeparator3, this.MnuImportPreset, this.MnuExportPreset, this.toolStripSeparator6, this.MnuResetBuiltInPresets}); this.toolStripDropDownButton2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.toolStripDropDownButton2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.toolStripDropDownButton2.Image = global::Handbrake.Properties.Resources.Options24; this.toolStripDropDownButton2.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripDropDownButton2.Name = "toolStripDropDownButton2"; this.toolStripDropDownButton2.Overflow = System.Windows.Forms.ToolStripItemOverflow.Never; this.toolStripDropDownButton2.Size = new System.Drawing.Size(79, 31); this.toolStripDropDownButton2.Text = "Options"; // // MnuSetDefaultPreset // this.MnuSetDefaultPreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MnuSetDefaultPreset.Name = "MnuSetDefaultPreset"; this.MnuSetDefaultPreset.Size = new System.Drawing.Size(178, 22); this.MnuSetDefaultPreset.Text = "Set Default"; this.MnuSetDefaultPreset.Click += new System.EventHandler(this.MnuSetDefaultPreset_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(175, 6); // // MnuImportPreset // this.MnuImportPreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MnuImportPreset.Name = "MnuImportPreset"; this.MnuImportPreset.Size = new System.Drawing.Size(178, 22); this.MnuImportPreset.Text = "Import"; this.MnuImportPreset.Click += new System.EventHandler(this.MnuImportPreset_Click); // // MnuExportPreset // this.MnuExportPreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MnuExportPreset.Name = "MnuExportPreset"; this.MnuExportPreset.Size = new System.Drawing.Size(178, 22); this.MnuExportPreset.Text = "Export"; this.MnuExportPreset.Click += new System.EventHandler(this.MnuExportPreset_Click); // // toolStripSeparator6 // this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new System.Drawing.Size(175, 6); // // MnuResetBuiltInPresets // this.MnuResetBuiltInPresets.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MnuResetBuiltInPresets.Name = "MnuResetBuiltInPresets"; this.MnuResetBuiltInPresets.Size = new System.Drawing.Size(178, 22); this.MnuResetBuiltInPresets.Text = "Reset Built-In Presets"; this.MnuResetBuiltInPresets.Click += new System.EventHandler(this.MnuResetBuiltInPresets_Click); // // toolStrip1 // this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btn_source, this.toolStripSeparator10, this.btn_start, this.btn_add2Queue, this.btn_showQueue, this.toolStripSeparator4, this.tb_preview, this.btn_ActivityWindow, this.toolStripSeparator8, this.toolStripDropDownButton1}); this.toolStrip1.Location = new System.Drawing.Point(0, 24); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; this.toolStrip1.Size = new System.Drawing.Size(1002, 39); this.toolStrip1.TabIndex = 1; this.toolStrip1.TabStop = true; this.toolStrip1.Text = "toolStrip1"; // // btn_source // this.btn_source.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btn_file_source, this.btn_dvd_source, this.btnTitleSpecific, this.toolStripSeparator1}); this.btn_source.Image = global::Handbrake.Properties.Resources.Movies; this.btn_source.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_source.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_source.Name = "btn_source"; this.btn_source.Size = new System.Drawing.Size(88, 36); this.btn_source.Text = "Source"; this.btn_source.ToolTipText = "Open a new source file or folder."; this.btn_source.Click += new System.EventHandler(this.btn_source_Click); // // btn_dvd_source // this.btn_dvd_source.Image = global::Handbrake.Properties.Resources.folder; this.btn_dvd_source.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_dvd_source.Name = "btn_dvd_source"; this.btn_dvd_source.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.O))); this.btn_dvd_source.Size = new System.Drawing.Size(182, 22); this.btn_dvd_source.Text = "Folder"; this.btn_dvd_source.Click += new System.EventHandler(this.BtnFolderScanClicked); // // btnTitleSpecific // this.btnTitleSpecific.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.FileTitleSpecificScan, this.FolderTitleSpecificScan}); this.btnTitleSpecific.Name = "btnTitleSpecific"; this.btnTitleSpecific.Size = new System.Drawing.Size(182, 22); this.btnTitleSpecific.Text = "Title Specific Scan"; // // FileTitleSpecificScan // this.FileTitleSpecificScan.Image = global::Handbrake.Properties.Resources.Movies_Small; this.FileTitleSpecificScan.Name = "FileTitleSpecificScan"; this.FileTitleSpecificScan.Size = new System.Drawing.Size(125, 22); this.FileTitleSpecificScan.Text = "Video File"; this.FileTitleSpecificScan.Click += new System.EventHandler(this.VideoTitleSpecificScanClick); // // FolderTitleSpecificScan // this.FolderTitleSpecificScan.Image = global::Handbrake.Properties.Resources.folder; this.FolderTitleSpecificScan.Name = "FolderTitleSpecificScan"; this.FolderTitleSpecificScan.Size = new System.Drawing.Size(125, 22); this.FolderTitleSpecificScan.Text = "Folder"; this.FolderTitleSpecificScan.Click += new System.EventHandler(this.FolderTitleSpecificScanClick); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(179, 6); // // toolStripSeparator10 // this.toolStripSeparator10.Name = "toolStripSeparator10"; this.toolStripSeparator10.Size = new System.Drawing.Size(6, 39); // // btn_start // this.btn_start.Image = global::Handbrake.Properties.Resources.Play; this.btn_start.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_start.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_start.Name = "btn_start"; this.btn_start.Size = new System.Drawing.Size(67, 36); this.btn_start.Text = "Start"; this.btn_start.ToolTipText = "Start the encoding process"; this.btn_start.Click += new System.EventHandler(this.btn_start_Click); // // btn_add2Queue // this.btn_add2Queue.DropDownButtonWidth = 20; this.btn_add2Queue.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnu_AddAllTitles, this.mnu_AddTittleRange}); this.btn_add2Queue.Image = global::Handbrake.Properties.Resources.AddToQueue; this.btn_add2Queue.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_add2Queue.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_add2Queue.Name = "btn_add2Queue"; this.btn_add2Queue.Size = new System.Drawing.Size(138, 36); this.btn_add2Queue.Text = "Add to Queue"; this.btn_add2Queue.ToolTipText = "Add a new item to the Queue"; this.btn_add2Queue.ButtonClick += new System.EventHandler(this.btn_add2Queue_Click); // // mnu_AddAllTitles // this.mnu_AddAllTitles.Name = "mnu_AddAllTitles"; this.mnu_AddAllTitles.Size = new System.Drawing.Size(192, 22); this.mnu_AddAllTitles.Text = "Add All (Experimental)"; this.mnu_AddAllTitles.ToolTipText = "Add all titles to the queue.\r\nUse caution with this feature as incorrect usage ma" + "y result in a queue of failed encodes."; this.mnu_AddAllTitles.Click += new System.EventHandler(this.mnu_AddAllTitles_Click); // // mnu_AddTittleRange // this.mnu_AddTittleRange.Name = "mnu_AddTittleRange"; this.mnu_AddTittleRange.Size = new System.Drawing.Size(192, 22); this.mnu_AddTittleRange.Text = "Add Range"; this.mnu_AddTittleRange.Visible = false; this.mnu_AddTittleRange.Click += new System.EventHandler(this.mnu_AddTittleRange_Click); // // btn_showQueue // this.btn_showQueue.Image = global::Handbrake.Properties.Resources.Queue; this.btn_showQueue.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_showQueue.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_showQueue.Name = "btn_showQueue"; this.btn_showQueue.Size = new System.Drawing.Size(110, 36); this.btn_showQueue.Tag = ""; this.btn_showQueue.Text = "Show Queue"; this.btn_showQueue.Click += new System.EventHandler(this.btn_showQueue_Click); // // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(6, 39); // // tb_preview // this.tb_preview.Image = global::Handbrake.Properties.Resources.window; this.tb_preview.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tb_preview.ImageTransparentColor = System.Drawing.Color.Magenta; this.tb_preview.Name = "tb_preview"; this.tb_preview.Size = new System.Drawing.Size(84, 36); this.tb_preview.Text = "Preview"; this.tb_preview.Click += new System.EventHandler(this.tb_preview_Click); // // btn_ActivityWindow // this.btn_ActivityWindow.Image = global::Handbrake.Properties.Resources.ActivityWindow; this.btn_ActivityWindow.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.btn_ActivityWindow.ImageTransparentColor = System.Drawing.Color.Magenta; this.btn_ActivityWindow.Name = "btn_ActivityWindow"; this.btn_ActivityWindow.Size = new System.Drawing.Size(130, 36); this.btn_ActivityWindow.Text = "Activity Window"; this.btn_ActivityWindow.ToolTipText = "Displays the activity window which displays the log of the last completed or curr" + "ently running encode."; this.btn_ActivityWindow.Click += new System.EventHandler(this.btn_ActivityWindow_Click); // // toolStripSeparator8 // this.toolStripSeparator8.Name = "toolStripSeparator8"; this.toolStripSeparator8.Size = new System.Drawing.Size(6, 39); // // toolStripDropDownButton1 // this.toolStripDropDownButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripDropDownButton1.AutoSize = false; this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.MnuUserGuide, this.toolStripSeparator9, this.MnuCheckForUpdates, this.toolStripSeparator11, this.MnuAboutHandBrake}); this.toolStripDropDownButton1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.toolStripDropDownButton1.Image = global::Handbrake.Properties.Resources.Help24; this.toolStripDropDownButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripDropDownButton1.Margin = new System.Windows.Forms.Padding(0, 1, 8, 2); this.toolStripDropDownButton1.Name = "toolStripDropDownButton1"; this.toolStripDropDownButton1.Size = new System.Drawing.Size(69, 36); this.toolStripDropDownButton1.Text = "Help"; // // MnuUserGuide // this.MnuUserGuide.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MnuUserGuide.Image = global::Handbrake.Properties.Resources.info16; this.MnuUserGuide.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.MnuUserGuide.Name = "MnuUserGuide"; this.MnuUserGuide.Size = new System.Drawing.Size(192, 24); this.MnuUserGuide.Text = "HandBrake User Guide"; this.MnuUserGuide.Click += new System.EventHandler(this.MnuUserGuide_Click); // // toolStripSeparator9 // this.toolStripSeparator9.Name = "toolStripSeparator9"; this.toolStripSeparator9.Size = new System.Drawing.Size(189, 6); // // MnuCheckForUpdates // this.MnuCheckForUpdates.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MnuCheckForUpdates.Name = "MnuCheckForUpdates"; this.MnuCheckForUpdates.Size = new System.Drawing.Size(192, 24); this.MnuCheckForUpdates.Text = "Check for Updates"; this.MnuCheckForUpdates.Click += new System.EventHandler(this.MnuCheckForUpdates_Click); // // toolStripSeparator11 // this.toolStripSeparator11.Name = "toolStripSeparator11"; this.toolStripSeparator11.Size = new System.Drawing.Size(189, 6); // // MnuAboutHandBrake // this.MnuAboutHandBrake.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MnuAboutHandBrake.Image = global::Handbrake.Properties.Resources.hb16; this.MnuAboutHandBrake.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.MnuAboutHandBrake.Name = "MnuAboutHandBrake"; this.MnuAboutHandBrake.Size = new System.Drawing.Size(192, 24); this.MnuAboutHandBrake.Text = "About HandBrake"; this.MnuAboutHandBrake.Click += new System.EventHandler(this.MnuAboutHandBrake_Click); // // notifyIcon // this.notifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info; this.notifyIcon.BalloonTipText = "HandBrake Status Here"; this.notifyIcon.BalloonTipTitle = "HandBrake"; this.notifyIcon.ContextMenuStrip = notifyIconMenu; this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon"))); this.notifyIcon.Text = "HandBrake"; this.notifyIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon_MouseDoubleClick); // // StatusStrip // this.StatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.ProgressBarStatus, this.lbl_encode, this.lbl_updateCheck, this.lbl_libhb_warning}); this.StatusStrip.Location = new System.Drawing.Point(0, 561); this.StatusStrip.Name = "StatusStrip"; this.StatusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; this.StatusStrip.Size = new System.Drawing.Size(1002, 22); this.StatusStrip.SizingGrip = false; this.StatusStrip.TabIndex = 7; this.StatusStrip.Text = "statusStrip1"; // // ProgressBarStatus // this.ProgressBarStatus.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.ProgressBarStatus.Name = "ProgressBarStatus"; this.ProgressBarStatus.Size = new System.Drawing.Size(100, 16); this.ProgressBarStatus.Visible = false; // // lbl_encode // this.lbl_encode.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbl_encode.Name = "lbl_encode"; this.lbl_encode.Size = new System.Drawing.Size(28, 17); this.lbl_encode.Text = "{0}"; // // lbl_updateCheck // this.lbl_updateCheck.BackColor = System.Drawing.Color.Transparent; this.lbl_updateCheck.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.lbl_updateCheck.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbl_updateCheck.Name = "lbl_updateCheck"; this.lbl_updateCheck.Size = new System.Drawing.Size(139, 17); this.lbl_updateCheck.Text = "Checking for Updates ..."; this.lbl_updateCheck.Visible = false; // // lbl_libhb_warning // this.lbl_libhb_warning.ForeColor = System.Drawing.Color.Red; this.lbl_libhb_warning.Name = "lbl_libhb_warning"; this.lbl_libhb_warning.Size = new System.Drawing.Size(198, 17); this.lbl_libhb_warning.Text = "Warning: Experimental LibHB in use!"; this.lbl_libhb_warning.Visible = false; // // hbproc // this.hbproc.StartInfo.Domain = ""; this.hbproc.StartInfo.LoadUserProfile = false; this.hbproc.StartInfo.Password = null; this.hbproc.StartInfo.StandardErrorEncoding = null; this.hbproc.StartInfo.StandardOutputEncoding = null; this.hbproc.StartInfo.UserName = ""; this.hbproc.SynchronizingObject = this; // // File_Save // this.File_Save.DefaultExt = "hb"; this.File_Save.Filter = "hb|*.hb"; // // tableLayoutPanel2 // this.tableLayoutPanel2.AutoSize = true; this.tableLayoutPanel2.ColumnCount = 3; this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.Controls.Add(this.Label3, 0, 0); this.tableLayoutPanel2.Controls.Add(this.text_destination, 1, 0); this.tableLayoutPanel2.Controls.Add(this.btn_destBrowse, 2, 0); this.tableLayoutPanel2.Location = new System.Drawing.Point(21, 132); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 1; this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); this.tableLayoutPanel2.Size = new System.Drawing.Size(723, 29); this.tableLayoutPanel2.TabIndex = 3; // // btn_destBrowse // this.btn_destBrowse.AutoSize = true; this.btn_destBrowse.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btn_destBrowse.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btn_destBrowse.Location = new System.Drawing.Point(645, 3); this.btn_destBrowse.Name = "btn_destBrowse"; this.btn_destBrowse.Size = new System.Drawing.Size(75, 23); this.btn_destBrowse.TabIndex = 2; this.btn_destBrowse.Text = "Browse"; this.btn_destBrowse.UseVisualStyleBackColor = true; this.btn_destBrowse.Click += new System.EventHandler(this.btn_destBrowse_Click); // // tableLayoutPanel3 // this.tableLayoutPanel3.AutoSize = true; this.tableLayoutPanel3.ColumnCount = 5; this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel3.Controls.Add(this.label5, 0, 0); this.tableLayoutPanel3.Controls.Add(this.drop_format, 1, 0); this.tableLayoutPanel3.Controls.Add(this.check_largeFile, 2, 0); this.tableLayoutPanel3.Controls.Add(this.check_optimiseMP4, 3, 0); this.tableLayoutPanel3.Controls.Add(this.check_iPodAtom, 4, 0); this.tableLayoutPanel3.Location = new System.Drawing.Point(21, 180); this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.RowCount = 1; this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.Size = new System.Drawing.Size(723, 27); this.tableLayoutPanel3.TabIndex = 5; // // tableLayoutPanel1 // this.tableLayoutPanel1.AutoSize = true; this.tableLayoutPanel1.ColumnCount = 12; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 35F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 5F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel1.Controls.Add(this.Label10, 0, 0); this.tableLayoutPanel1.Controls.Add(this.drp_dvdtitle, 1, 0); this.tableLayoutPanel1.Controls.Add(this.lbl_angle, 2, 0); this.tableLayoutPanel1.Controls.Add(this.drop_angle, 3, 0); this.tableLayoutPanel1.Controls.Add(this.drop_chapterStart, 7, 0); this.tableLayoutPanel1.Controls.Add(this.Label13, 8, 0); this.tableLayoutPanel1.Controls.Add(this.drop_chapterFinish, 9, 0); this.tableLayoutPanel1.Controls.Add(this.label_duration, 10, 0); this.tableLayoutPanel1.Controls.Add(this.lbl_duration, 11, 0); this.tableLayoutPanel1.Controls.Add(this.drop_mode, 5, 0); this.tableLayoutPanel1.Location = new System.Drawing.Point(21, 86); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 1; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(723, 28); this.tableLayoutPanel1.TabIndex = 2; // // Label10 // this.Label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.Label10.AutoSize = true; this.Label10.ForeColor = System.Drawing.Color.Black; this.Label10.Location = new System.Drawing.Point(3, 7); this.Label10.Name = "Label10"; this.Label10.Size = new System.Drawing.Size(31, 13); this.Label10.TabIndex = 0; this.Label10.Text = "Title:"; // // lbl_angle // this.lbl_angle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.lbl_angle.AutoSize = true; this.lbl_angle.ForeColor = System.Drawing.Color.Black; this.lbl_angle.Location = new System.Drawing.Point(165, 7); this.lbl_angle.Name = "lbl_angle"; this.lbl_angle.Size = new System.Drawing.Size(38, 13); this.lbl_angle.TabIndex = 2; this.lbl_angle.Text = "Angle:"; // // Label13 // this.Label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.Label13.AutoSize = true; this.Label13.Location = new System.Drawing.Point(458, 7); this.Label13.Name = "Label13"; this.Label13.Size = new System.Drawing.Size(45, 13); this.Label13.TabIndex = 6; this.Label13.Text = "through"; // // label_duration // this.label_duration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.label_duration.AutoSize = true; this.label_duration.BackColor = System.Drawing.Color.Transparent; this.label_duration.Location = new System.Drawing.Point(584, 7); this.label_duration.Name = "label_duration"; this.label_duration.Size = new System.Drawing.Size(52, 13); this.label_duration.TabIndex = 8; this.label_duration.Text = "Duration:"; // // lbl_duration // this.lbl_duration.Anchor = System.Windows.Forms.AnchorStyles.Left; this.lbl_duration.AutoSize = true; this.lbl_duration.BackColor = System.Drawing.Color.Transparent; this.lbl_duration.Location = new System.Drawing.Point(642, 7); this.lbl_duration.Name = "lbl_duration"; this.lbl_duration.Size = new System.Drawing.Size(39, 13); this.lbl_duration.TabIndex = 9; this.lbl_duration.Text = "--:--:--"; // // labelStaticDestination // this.labelStaticDestination.AutoSize = true; this.labelStaticDestination.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStaticDestination.Location = new System.Drawing.Point(9, 116); this.labelStaticDestination.Name = "labelStaticDestination"; this.labelStaticDestination.Size = new System.Drawing.Size(75, 13); this.labelStaticDestination.TabIndex = 3; this.labelStaticDestination.Text = "Destination:"; // // labelPreset // this.labelPreset.AutoSize = true; this.labelPreset.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelPreset.Location = new System.Drawing.Point(9, 164); this.labelPreset.Name = "labelPreset"; this.labelPreset.Size = new System.Drawing.Size(180, 13); this.labelPreset.TabIndex = 5; this.labelPreset.Text = "Output Settings (Preset: None)"; // // labelSource // this.labelSource.AutoSize = true; this.labelSource.Location = new System.Drawing.Point(55, 0); this.labelSource.Name = "labelSource"; this.labelSource.Size = new System.Drawing.Size(137, 13); this.labelSource.TabIndex = 1; this.labelSource.Text = "Select \"Source\" to continue"; // // labelStaticSource // this.labelStaticSource.AutoSize = true; this.labelStaticSource.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStaticSource.Location = new System.Drawing.Point(0, 0); this.labelStaticSource.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); this.labelStaticSource.Name = "labelStaticSource"; this.labelStaticSource.Size = new System.Drawing.Size(49, 13); this.labelStaticSource.TabIndex = 0; this.labelStaticSource.Text = "Source:"; // // SourceLayoutPanel // this.SourceLayoutPanel.AutoSize = true; this.SourceLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.SourceLayoutPanel.Controls.Add(this.labelStaticSource); this.SourceLayoutPanel.Controls.Add(this.labelSource); this.SourceLayoutPanel.Location = new System.Drawing.Point(9, 70); this.SourceLayoutPanel.Margin = new System.Windows.Forms.Padding(0); this.SourceLayoutPanel.Name = "SourceLayoutPanel"; this.SourceLayoutPanel.Size = new System.Drawing.Size(195, 13); this.SourceLayoutPanel.TabIndex = 2; // // openPreset // this.openPreset.DefaultExt = "plist"; this.openPreset.Filter = "Plist Files|*.plist"; // // File_ChapterImport // this.File_ChapterImport.Filter = "CSV Files|*.csv"; // // frmMain // this.AllowDrop = true; this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoSize = true; this.ClientSize = new System.Drawing.Size(1002, 583); this.Controls.Add(this.tableLayoutPanel3); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.SourceLayoutPanel); this.Controls.Add(this.frmMainMenu); this.Controls.Add(this.tableLayoutPanel2); this.Controls.Add(this.labelPreset); this.Controls.Add(this.groupBox2); this.Controls.Add(this.StatusStrip); this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.tabs_panel); this.Controls.Add(this.labelStaticDestination); this.DoubleBuffered = true; this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.MinimumSize = new System.Drawing.Size(900, 500); this.Name = "frmMain"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "HandBrake"; notifyIconMenu.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.slider_videoQuality)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.data_chpt)).EndInit(); this.ChaptersMenu.ResumeLayout(false); this.presets_menu.ResumeLayout(false); this.frmMainMenu.ResumeLayout(false); this.frmMainMenu.PerformLayout(); this.tab_audio.ResumeLayout(false); this.tab_video.ResumeLayout(false); this.tab_video.PerformLayout(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.tab_picture.ResumeLayout(false); this.tabs_panel.ResumeLayout(false); this.tab_filters.ResumeLayout(false); this.tab_subtitles.ResumeLayout(false); this.tab_chapters.ResumeLayout(false); this.tab_chapters.PerformLayout(); this.tab_advanced.ResumeLayout(false); this.tab_query.ResumeLayout(false); this.tab_query.PerformLayout(); this.groupBox2.ResumeLayout(false); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); this.presetsToolStrip.ResumeLayout(false); this.presetsToolStrip.PerformLayout(); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.StatusStrip.ResumeLayout(false); this.StatusStrip.PerformLayout(); this.tableLayoutPanel2.ResumeLayout(false); this.tableLayoutPanel2.PerformLayout(); this.tableLayoutPanel3.ResumeLayout(false); this.tableLayoutPanel3.PerformLayout(); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.SourceLayoutPanel.ResumeLayout(false); this.SourceLayoutPanel.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify the contents of this method with the /// code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.Label labelID; System.Windows.Forms.Label labelDisplay; System.Windows.Forms.Label labelParent; System.Windows.Forms.ContextMenuStrip contextMenuStrip; System.Windows.Forms.ToolStripMenuItem expandAllToolStripMenuItem; System.Windows.Forms.ToolStripMenuItem closeAllToolStripMenuItem; System.Windows.Forms.Label labelFind; this.m_TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.m_ComboBoxID = new System.Windows.Forms.ComboBox(); this.m_ComboBoxParentID = new System.Windows.Forms.ComboBox(); this.m_TreeView = new CsvTools.MultiselectTreeView(); this.m_TextBoxValue = new System.Windows.Forms.TextBox(); this.m_ComboBoxDisplay2 = new System.Windows.Forms.ComboBox(); this.m_ComboBoxDisplay1 = new System.Windows.Forms.ComboBox(); labelID = new System.Windows.Forms.Label(); labelDisplay = new System.Windows.Forms.Label(); labelParent = new System.Windows.Forms.Label(); contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); expandAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); closeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); labelFind = new System.Windows.Forms.Label(); contextMenuStrip.SuspendLayout(); this.m_TableLayoutPanel1.SuspendLayout(); this.SuspendLayout(); // labelID labelID.Anchor = System.Windows.Forms.AnchorStyles.Right; labelID.AutoSize = true; labelID.Location = new System.Drawing.Point(52, 6); labelID.Name = "labelID"; labelID.Size = new System.Drawing.Size(19, 15); labelID.TabIndex = 3; labelID.Text = "ID"; // labelDisplay labelDisplay.Anchor = System.Windows.Forms.AnchorStyles.Right; labelDisplay.AutoSize = true; labelDisplay.Location = new System.Drawing.Point(24, 33); labelDisplay.Name = "labelDisplay"; labelDisplay.Size = new System.Drawing.Size(47, 15); labelDisplay.TabIndex = 5; labelDisplay.Text = "Display"; // labelParent labelParent.Anchor = System.Windows.Forms.AnchorStyles.Right; labelParent.AutoSize = true; labelParent.Location = new System.Drawing.Point(13, 60); labelParent.Name = "labelParent"; labelParent.Size = new System.Drawing.Size(58, 15); labelParent.TabIndex = 7; labelParent.Text = "Parent ID"; // contextMenuStrip contextMenuStrip.ImageScalingSize = new System.Drawing.Size(20, 20); contextMenuStrip.Items.AddRange( new System.Windows.Forms.ToolStripItem[] { expandAllToolStripMenuItem, closeAllToolStripMenuItem }); contextMenuStrip.Name = "contextMenuStrip"; contextMenuStrip.Size = new System.Drawing.Size(150, 52); // expandAllToolStripMenuItem expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem"; expandAllToolStripMenuItem.Size = new System.Drawing.Size(149, 24); expandAllToolStripMenuItem.Text = "Expand All"; expandAllToolStripMenuItem.Click += new System.EventHandler(this.ExpandAllToolStripMenuItem_Click); // closeAllToolStripMenuItem closeAllToolStripMenuItem.Name = "closeAllToolStripMenuItem"; closeAllToolStripMenuItem.Size = new System.Drawing.Size(149, 24); closeAllToolStripMenuItem.Text = "Close All"; closeAllToolStripMenuItem.Click += new System.EventHandler(this.CloseAllToolStripMenuItem_Click); // labelFind labelFind.Anchor = System.Windows.Forms.AnchorStyles.Right; labelFind.AutoSize = true; labelFind.Location = new System.Drawing.Point(40, 86); labelFind.Name = "labelFind"; labelFind.Size = new System.Drawing.Size(31, 15); labelFind.TabIndex = 5; labelFind.Text = "Find"; // m_TableLayoutPanel1 this.m_TableLayoutPanel1.ColumnCount = 3; this.m_TableLayoutPanel1.ColumnStyles.Add( new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 74F)); this.m_TableLayoutPanel1.ColumnStyles.Add( new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.m_TableLayoutPanel1.ColumnStyles.Add( new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.m_TableLayoutPanel1.Controls.Add(labelID, 0, 0); this.m_TableLayoutPanel1.Controls.Add(labelDisplay, 0, 1); this.m_TableLayoutPanel1.Controls.Add(labelParent, 0, 2); this.m_TableLayoutPanel1.Controls.Add(this.m_ComboBoxID, 1, 0); this.m_TableLayoutPanel1.Controls.Add(this.m_ComboBoxParentID, 1, 2); this.m_TableLayoutPanel1.Controls.Add(this.m_TreeView, 0, 4); this.m_TableLayoutPanel1.Controls.Add(this.m_TextBoxValue, 1, 3); this.m_TableLayoutPanel1.Controls.Add(labelFind, 0, 3); this.m_TableLayoutPanel1.Controls.Add(this.m_ComboBoxDisplay2, 2, 1); this.m_TableLayoutPanel1.Controls.Add(this.m_ComboBoxDisplay1, 1, 1); this.m_TableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.m_TableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.m_TableLayoutPanel1.Name = "m_TableLayoutPanel1"; this.m_TableLayoutPanel1.RowCount = 5; this.m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.m_TableLayoutPanel1.RowStyles.Add( new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.m_TableLayoutPanel1.Size = new System.Drawing.Size(502, 368); this.m_TableLayoutPanel1.TabIndex = 10; // m_ComboBoxID this.m_TableLayoutPanel1.SetColumnSpan(this.m_ComboBoxID, 2); this.m_ComboBoxID.Dock = System.Windows.Forms.DockStyle.Top; this.m_ComboBoxID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_ComboBoxID.FormattingEnabled = true; this.m_ComboBoxID.Location = new System.Drawing.Point(77, 3); this.m_ComboBoxID.Name = "m_ComboBoxID"; this.m_ComboBoxID.Size = new System.Drawing.Size(422, 21); this.m_ComboBoxID.TabIndex = 0; this.m_ComboBoxID.SelectedIndexChanged += new System.EventHandler(this.TimeDisplayRestart); // m_ComboBoxParentID this.m_TableLayoutPanel1.SetColumnSpan(this.m_ComboBoxParentID, 2); this.m_ComboBoxParentID.Dock = System.Windows.Forms.DockStyle.Top; this.m_ComboBoxParentID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_ComboBoxParentID.FormattingEnabled = true; this.m_ComboBoxParentID.Location = new System.Drawing.Point(77, 57); this.m_ComboBoxParentID.Name = "m_ComboBoxParentID"; this.m_ComboBoxParentID.Size = new System.Drawing.Size(422, 21); this.m_ComboBoxParentID.TabIndex = 1; this.m_ComboBoxParentID.SelectedIndexChanged += new System.EventHandler(this.TimeDisplayRestart); // m_TreeView this.m_TableLayoutPanel1.SetColumnSpan(this.m_TreeView, 3); this.m_TreeView.ContextMenuStrip = contextMenuStrip; this.m_TreeView.Dock = System.Windows.Forms.DockStyle.Fill; this.m_TreeView.Location = new System.Drawing.Point(3, 110); this.m_TreeView.Name = "m_TreeView"; this.m_TreeView.Size = new System.Drawing.Size(496, 255); this.m_TreeView.TabIndex = 9; // m_TextBoxValue this.m_TextBoxValue.Dock = System.Windows.Forms.DockStyle.Top; this.m_TextBoxValue.Location = new System.Drawing.Point(77, 84); this.m_TextBoxValue.Name = "m_TextBoxValue"; this.m_TextBoxValue.Size = new System.Drawing.Size(208, 20); this.m_TextBoxValue.TabIndex = 2; this.m_TextBoxValue.TextChanged += new System.EventHandler(this.TimerSearchRestart); // m_ComboBoxDisplay2 this.m_ComboBoxDisplay2.Dock = System.Windows.Forms.DockStyle.Top; this.m_ComboBoxDisplay2.FormattingEnabled = true; this.m_ComboBoxDisplay2.Location = new System.Drawing.Point(291, 30); this.m_ComboBoxDisplay2.Name = "m_ComboBoxDisplay2"; this.m_ComboBoxDisplay2.Size = new System.Drawing.Size(208, 21); this.m_ComboBoxDisplay2.TabIndex = 15; this.m_ComboBoxDisplay2.SelectedIndexChanged += new System.EventHandler(this.TimeDisplayRestart); // m_ComboBoxDisplay1 this.m_ComboBoxDisplay1.Dock = System.Windows.Forms.DockStyle.Top; this.m_ComboBoxDisplay1.FormattingEnabled = true; this.m_ComboBoxDisplay1.Location = new System.Drawing.Point(77, 30); this.m_ComboBoxDisplay1.Name = "m_ComboBoxDisplay1"; this.m_ComboBoxDisplay1.Size = new System.Drawing.Size(208, 21); this.m_ComboBoxDisplay1.TabIndex = 16; this.m_ComboBoxDisplay1.SelectedIndexChanged += new System.EventHandler(this.TimeDisplayRestart); // FormHierarchyDisplay this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(502, 368); this.Controls.Add(this.m_TableLayoutPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.MinimumSize = new System.Drawing.Size(339, 196); this.Name = "FormHierarchyDisplay"; this.Text = "Hierarchy"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormHierarchyDisplay_FormClosing); this.Load += new System.EventHandler(this.FormHierarchyDisplay_Load); contextMenuStrip.ResumeLayout(false); this.m_TableLayoutPanel1.ResumeLayout(false); this.m_TableLayoutPanel1.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { components = new Container(); clmIndex = new ColumnHeader(); clmName = new ColumnHeader(); lstSets = new ListView(); clmType = new ColumnHeader(); clmDataOffset = new ColumnHeader(); clmAudioOffset = new ColumnHeader(); clmEntryOffset = new ColumnHeader(); contextMenuStrip1 = new ContextMenuStrip(components); mnuPath = new ToolStripMenuItem(); mnuExport = new ToolStripMenuItem(); mnuReplace = new ToolStripMenuItem(); _deleteToolStripMenuItem = new ToolStripMenuItem(); menuStrip1 = new MenuStrip(); newFileToolStripMenuItem = new ToolStripMenuItem(); rWSDToolStripMenuItem = new ToolStripMenuItem(); rSEQToolStripMenuItem = new ToolStripMenuItem(); rBNKToolStripMenuItem = new ToolStripMenuItem(); rSTMToolStripMenuItem = new ToolStripMenuItem(); externalReferenceToolStripMenuItem = new ToolStripMenuItem(); audioPlaybackPanel1 = new AudioPlaybackPanel(); editToolStripMenuItem = new ToolStripMenuItem(); makeAllExternalToolStripMenuItem = new ToolStripMenuItem(); makeAllInternalToolStripMenuItem = new ToolStripMenuItem(); contextMenuStrip1.SuspendLayout(); menuStrip1.SuspendLayout(); SuspendLayout(); // // clmIndex // clmIndex.Text = "Index"; clmIndex.Width = 40; // // clmName // clmName.Text = "Name"; clmName.Width = 40; // // lstSets // lstSets.AutoArrange = false; lstSets.BorderStyle = BorderStyle.None; lstSets.Columns.AddRange(new ColumnHeader[] { clmIndex, clmType, clmName, clmDataOffset, clmAudioOffset, clmEntryOffset }); lstSets.ContextMenuStrip = contextMenuStrip1; lstSets.Dock = DockStyle.Fill; lstSets.FullRowSelect = true; lstSets.GridLines = true; lstSets.HideSelection = false; lstSets.LabelWrap = false; lstSets.Location = new Drawing.Point(0, 28); lstSets.MultiSelect = false; lstSets.Name = "lstSets"; lstSets.Size = new Drawing.Size(389, 105); lstSets.TabIndex = 0; lstSets.UseCompatibleStateImageBehavior = false; lstSets.View = View.Details; lstSets.ColumnClick += new ColumnClickEventHandler(lstSets_ColumnClick); lstSets.SelectedIndexChanged += lstSets_SelectedIndexChanged; lstSets.DoubleClick += lstSets_DoubleClick; lstSets.KeyDown += new KeyEventHandler(lstSets_KeyDown); // // clmType // clmType.Text = "Type"; // // clmDataOffset // clmDataOffset.Text = "Data Offset"; clmDataOffset.Width = 70; // // clmAudioOffset // clmAudioOffset.Text = "Audio Offset"; clmAudioOffset.Width = 70; // // clmEntryOffset // clmEntryOffset.Text = "Entry Offset"; clmEntryOffset.Width = 80; // // contextMenuStrip1 // contextMenuStrip1.ImageScalingSize = new Drawing.Size(20, 20); contextMenuStrip1.Items.AddRange(new ToolStripItem[] { mnuPath, mnuExport, mnuReplace, _deleteToolStripMenuItem }); contextMenuStrip1.Name = "contextMenuStrip1"; contextMenuStrip1.Size = new Drawing.Size(138, 108); contextMenuStrip1.Opening += new CancelEventHandler(contextMenuStrip1_Opening); // // mnuPath // mnuPath.Name = "mnuPath"; mnuPath.Size = new Drawing.Size(137, 26); mnuPath.Text = "Path..."; mnuPath.Click += mnuPath_Click; // // mnuExport // mnuExport.Name = "mnuExport"; mnuExport.Size = new Drawing.Size(137, 26); mnuExport.Text = "Export"; mnuExport.Click += mnuExport_Click; // // mnuReplace // mnuReplace.Name = "mnuReplace"; mnuReplace.Size = new Drawing.Size(137, 26); mnuReplace.Text = "Replace"; mnuReplace.Click += mnuReplace_Click; // // _deleteToolStripMenuItem // _deleteToolStripMenuItem.Name = "_deleteToolStripMenuItem"; _deleteToolStripMenuItem.Size = new Drawing.Size(137, 26); _deleteToolStripMenuItem.Text = "Delete"; _deleteToolStripMenuItem.Click += _deleteToolStripMenuItem_Click; // // menuStrip1 // menuStrip1.ImageScalingSize = new Drawing.Size(20, 20); menuStrip1.Items.AddRange(new ToolStripItem[] { newFileToolStripMenuItem, editToolStripMenuItem }); menuStrip1.Location = new Drawing.Point(0, 0); menuStrip1.Name = "menuStrip1"; menuStrip1.Size = new Drawing.Size(389, 28); menuStrip1.TabIndex = 1; menuStrip1.Text = "menuStrip1"; // // newFileToolStripMenuItem // newFileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { rWSDToolStripMenuItem, rSEQToolStripMenuItem, rBNKToolStripMenuItem, rSTMToolStripMenuItem, externalReferenceToolStripMenuItem }); newFileToolStripMenuItem.Name = "newFileToolStripMenuItem"; newFileToolStripMenuItem.Size = new Drawing.Size(78, 24); newFileToolStripMenuItem.Text = "New File"; // // rWSDToolStripMenuItem // rWSDToolStripMenuItem.Name = "rWSDToolStripMenuItem"; rWSDToolStripMenuItem.Size = new Drawing.Size(207, 26); rWSDToolStripMenuItem.Text = "RWSD"; rWSDToolStripMenuItem.Click += rWSDToolStripMenuItem_Click; // // rSEQToolStripMenuItem // rSEQToolStripMenuItem.Name = "rSEQToolStripMenuItem"; rSEQToolStripMenuItem.Size = new Drawing.Size(207, 26); rSEQToolStripMenuItem.Text = "RSEQ"; rSEQToolStripMenuItem.Click += rSEQToolStripMenuItem_Click; // // rBNKToolStripMenuItem // rBNKToolStripMenuItem.Name = "rBNKToolStripMenuItem"; rBNKToolStripMenuItem.Size = new Drawing.Size(207, 26); rBNKToolStripMenuItem.Text = "RBNK"; rBNKToolStripMenuItem.Click += rBNKToolStripMenuItem_Click; // // rSTMToolStripMenuItem // rSTMToolStripMenuItem.Name = "rSTMToolStripMenuItem"; rSTMToolStripMenuItem.Size = new Drawing.Size(207, 26); rSTMToolStripMenuItem.Text = "RSTM"; rSTMToolStripMenuItem.Click += rSTMToolStripMenuItem_Click; // // externalReferenceToolStripMenuItem // externalReferenceToolStripMenuItem.Name = "externalReferenceToolStripMenuItem"; externalReferenceToolStripMenuItem.Size = new Drawing.Size(207, 26); externalReferenceToolStripMenuItem.Text = "External Reference"; externalReferenceToolStripMenuItem.Click += externalReferenceToolStripMenuItem_Click; // // audioPlaybackPanel1 // audioPlaybackPanel1.Dock = DockStyle.Bottom; audioPlaybackPanel1.Location = new Drawing.Point(0, 133); audioPlaybackPanel1.Name = "audioPlaybackPanel1"; audioPlaybackPanel1.Size = new Drawing.Size(389, 120); audioPlaybackPanel1.TabIndex = 2; audioPlaybackPanel1.TargetStreams = null; audioPlaybackPanel1.Visible = false; audioPlaybackPanel1.Volume = 0; // // editToolStripMenuItem // editToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { makeAllExternalToolStripMenuItem, makeAllInternalToolStripMenuItem }); editToolStripMenuItem.Name = "editToolStripMenuItem"; editToolStripMenuItem.Size = new Drawing.Size(47, 24); editToolStripMenuItem.Text = "Edit"; // // makeAllExternalToolStripMenuItem // makeAllExternalToolStripMenuItem.Name = "makeAllExternalToolStripMenuItem"; makeAllExternalToolStripMenuItem.Size = new Drawing.Size(197, 26); makeAllExternalToolStripMenuItem.Text = "Make all external"; makeAllExternalToolStripMenuItem.Click += makeAllExternalToolStripMenuItem_Click; // // makeAllInternalToolStripMenuItem // makeAllInternalToolStripMenuItem.Name = "makeAllInternalToolStripMenuItem"; makeAllInternalToolStripMenuItem.Size = new Drawing.Size(197, 26); makeAllInternalToolStripMenuItem.Text = "Make all internal"; makeAllInternalToolStripMenuItem.Click += makeAllInternalToolStripMenuItem_Click; // // SoundPackControl // Controls.Add(lstSets); Controls.Add(audioPlaybackPanel1); Controls.Add(menuStrip1); Name = "SoundPackControl"; Size = new Drawing.Size(389, 253); DoubleClick += lstSets_DoubleClick; contextMenuStrip1.ResumeLayout(false); menuStrip1.ResumeLayout(false); menuStrip1.PerformLayout(); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { components = new Container(); lblPrimary = new Label(); lstColors = new ListBox(); ctxMenu = new ContextMenuStrip(components); selectAllToolStripMenuItem = new ToolStripMenuItem(); toolStripMenuItem1 = new ToolStripSeparator(); copyToolStripMenuItem = new ToolStripMenuItem(); pasteToolStripMenuItem = new ToolStripMenuItem(); toolStripSeparator1 = new ToolStripSeparator(); editToolStripMenuItem = new ToolStripMenuItem(); lblBase = new Label(); lblColor = new Label(); pnlPrimary = new Panel(); lblCNoA = new Label(); allToolStripMenuItem1 = new ToolStripMenuItem(); colorToolStripMenuItem1 = new ToolStripMenuItem(); alphaToolStripMenuItem1 = new ToolStripMenuItem(); ctxMenu.SuspendLayout(); pnlPrimary.SuspendLayout(); SuspendLayout(); // // lblPrimary // lblPrimary.Location = new Drawing.Point(5, 2); lblPrimary.Name = "lblPrimary"; lblPrimary.Size = new Drawing.Size(61, 20); lblPrimary.TabIndex = 0; lblPrimary.Text = "Base Color:"; lblPrimary.TextAlign = ContentAlignment.MiddleLeft; // // lstColors // lstColors.ContextMenuStrip = ctxMenu; lstColors.Dock = DockStyle.Fill; lstColors.DrawMode = DrawMode.OwnerDrawFixed; lstColors.FormattingEnabled = true; lstColors.IntegralHeight = false; lstColors.Location = new Drawing.Point(0, 24); lstColors.Name = "lstColors"; lstColors.SelectionMode = SelectionMode.MultiExtended; lstColors.Size = new Drawing.Size(334, 218); lstColors.TabIndex = 1; lstColors.DrawItem += new DrawItemEventHandler(lstColors_DrawItem); lstColors.DoubleClick += lstColors_DoubleClick; lstColors.KeyDown += new KeyEventHandler(lstColors_KeyDown); lstColors.MouseDown += new MouseEventHandler(lstColors_MouseDown); // // ctxMenu // ctxMenu.Items.AddRange(new ToolStripItem[] { selectAllToolStripMenuItem, toolStripMenuItem1, copyToolStripMenuItem, pasteToolStripMenuItem, toolStripSeparator1, editToolStripMenuItem }); ctxMenu.Name = "ctxMenu"; ctxMenu.Size = new Drawing.Size(165, 104); // // selectAllToolStripMenuItem // selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; selectAllToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.A; selectAllToolStripMenuItem.Size = new Drawing.Size(164, 22); selectAllToolStripMenuItem.Text = "Select All"; selectAllToolStripMenuItem.Click += selectAllToolStripMenuItem_Click; // // toolStripMenuItem1 // toolStripMenuItem1.Name = "toolStripMenuItem1"; toolStripMenuItem1.Size = new Drawing.Size(161, 6); // // copyToolStripMenuItem // copyToolStripMenuItem.Name = "copyToolStripMenuItem"; copyToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.C; copyToolStripMenuItem.Size = new Drawing.Size(164, 22); copyToolStripMenuItem.Text = "Copy"; copyToolStripMenuItem.Click += copyToolStripMenuItem_Click; // // pasteToolStripMenuItem // pasteToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { allToolStripMenuItem1, colorToolStripMenuItem1, alphaToolStripMenuItem1 }); pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; pasteToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.V; pasteToolStripMenuItem.Size = new Drawing.Size(164, 22); pasteToolStripMenuItem.Text = "Paste"; // // toolStripSeparator1 // toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new Drawing.Size(161, 6); // // editToolStripMenuItem // editToolStripMenuItem.Name = "editToolStripMenuItem"; editToolStripMenuItem.Size = new Drawing.Size(164, 22); editToolStripMenuItem.Text = "Edit..."; editToolStripMenuItem.Click += editToolStripMenuItem_Click; // // lblBase // lblBase.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; lblBase.BackColor = Color.Transparent; lblBase.Font = new Font("Courier New", 9F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); lblBase.Location = new Drawing.Point(72, 2); lblBase.Name = "lblBase"; lblBase.Size = new Drawing.Size(149, 20); lblBase.TabIndex = 2; lblBase.TextAlign = ContentAlignment.MiddleLeft; lblBase.Click += lblBase_Click; // // lblColor // lblColor.Anchor = AnchorStyles.Top | AnchorStyles.Right; lblColor.BorderStyle = BorderStyle.FixedSingle; lblColor.Location = new Drawing.Point(231, 5); lblColor.Name = "lblColor"; lblColor.Size = new Drawing.Size(41, 14); lblColor.TabIndex = 3; lblColor.Click += lblBase_Click; // // pnlPrimary // pnlPrimary.BackColor = Color.White; pnlPrimary.BorderStyle = BorderStyle.FixedSingle; pnlPrimary.Controls.Add(lblColor); pnlPrimary.Controls.Add(lblCNoA); pnlPrimary.Controls.Add(lblPrimary); pnlPrimary.Controls.Add(lblBase); pnlPrimary.Dock = DockStyle.Top; pnlPrimary.Location = new Drawing.Point(0, 0); pnlPrimary.Name = "pnlPrimary"; pnlPrimary.Size = new Drawing.Size(334, 24); pnlPrimary.TabIndex = 4; // // lblCNoA // lblCNoA.Anchor = AnchorStyles.Top | AnchorStyles.Right; lblCNoA.BorderStyle = BorderStyle.FixedSingle; lblCNoA.Location = new Drawing.Point(271, 5); lblCNoA.Name = "lblCNoA"; lblCNoA.Size = new Drawing.Size(41, 14); lblCNoA.TabIndex = 4; lblCNoA.Click += lblBase_Click; // // allToolStripMenuItem1 // allToolStripMenuItem1.Name = "allToolStripMenuItem1"; allToolStripMenuItem1.Size = new Drawing.Size(152, 22); allToolStripMenuItem1.Text = "All"; allToolStripMenuItem1.Click += allToolStripMenuItem_Click; // // colorToolStripMenuItem1 // colorToolStripMenuItem1.Name = "colorToolStripMenuItem1"; colorToolStripMenuItem1.Size = new Drawing.Size(152, 22); colorToolStripMenuItem1.Text = "Color"; colorToolStripMenuItem1.Click += colorToolStripMenuItem_Click; // // alphaToolStripMenuItem1 // alphaToolStripMenuItem1.Name = "alphaToolStripMenuItem1"; alphaToolStripMenuItem1.Size = new Drawing.Size(152, 22); alphaToolStripMenuItem1.Text = "Alpha"; alphaToolStripMenuItem1.Click += alphaToolStripMenuItem_Click; // // CLRControl // Controls.Add(lstColors); Controls.Add(pnlPrimary); DoubleBuffered = true; Name = "CLRControl"; Size = new Drawing.Size(334, 242); KeyDown += new KeyEventHandler(CLRControl_KeyDown); ctxMenu.ResumeLayout(false); pnlPrimary.ResumeLayout(false); ResumeLayout(false); }
private void InitializeComponent() { components = new Container(); FrameScale = new CheckBox(); toolStripMenuItem7 = new ToolStripMenuItem(); btnPaste = new Button(); toolStripMenuItem4 = new ToolStripMenuItem(); FrameRot = new CheckBox(); btnCopy = new Button(); toolStripMenuItem3 = new ToolStripMenuItem(); btnCut = new Button(); subtract = new ToolStripMenuItem(); toolStripMenuItem5 = new ToolStripMenuItem(); toolStripMenuItem6 = new ToolStripMenuItem(); toolStripMenuItem8 = new ToolStripMenuItem(); FrameTrans = new CheckBox(); numScaleY = new NumericInputBox(); add = new ToolStripMenuItem(); numRot = new NumericInputBox(); toolStripSeparator1 = new ToolStripSeparator(); Source = new ToolStripMenuItem(); numTransX = new NumericInputBox(); numTransY = new NumericInputBox(); lblTransX = new Label(); removeAllToolStripMenuItem = new ToolStripMenuItem(); lblRot = new Label(); ctxBox = new ContextMenuStrip(components); addCustomAmountToolStripMenuItem = new ToolStripMenuItem(); btnDelete = new Button(); grpTransform = new GroupBox(); lblScaleX = new Label(); numScaleX = new NumericInputBox(); AllScale = new CheckBox(); grpTransAll = new GroupBox(); AllRot = new CheckBox(); AllTrans = new CheckBox(); btnClean = new Button(); btnPasteAll = new Button(); btnCopyAll = new Button(); btnClear = new Button(); btnInsert = new Button(); ctxBox.SuspendLayout(); grpTransform.SuspendLayout(); grpTransAll.SuspendLayout(); SuspendLayout(); // // FrameScale // FrameScale.AutoSize = true; FrameScale.Checked = true; FrameScale.CheckState = CheckState.Checked; FrameScale.Location = new Drawing.Point(249, 58); FrameScale.Name = "FrameScale"; FrameScale.Size = new Drawing.Size(53, 17); FrameScale.TabIndex = 35; FrameScale.Text = "Scale"; FrameScale.UseVisualStyleBackColor = true; // // toolStripMenuItem7 // toolStripMenuItem7.Name = "toolStripMenuItem7"; toolStripMenuItem7.Size = new Drawing.Size(100, 22); toolStripMenuItem7.Text = "+45"; // // btnPaste // btnPaste.Location = new Drawing.Point(101, 55); btnPaste.Name = "btnPaste"; btnPaste.Size = new Drawing.Size(50, 20); btnPaste.TabIndex = 23; btnPaste.Text = "Paste"; btnPaste.UseVisualStyleBackColor = true; btnPaste.Click += new EventHandler(btnPaste_Click); // // toolStripMenuItem4 // toolStripMenuItem4.Name = "toolStripMenuItem4"; toolStripMenuItem4.Size = new Drawing.Size(100, 22); toolStripMenuItem4.Text = "+90"; // // FrameRot // FrameRot.AutoSize = true; FrameRot.Checked = true; FrameRot.CheckState = CheckState.Checked; FrameRot.Location = new Drawing.Point(208, 58); FrameRot.Name = "FrameRot"; FrameRot.Size = new Drawing.Size(43, 17); FrameRot.TabIndex = 34; FrameRot.Text = "Rot"; FrameRot.UseVisualStyleBackColor = true; // // btnCopy // btnCopy.Location = new Drawing.Point(52, 55); btnCopy.Name = "btnCopy"; btnCopy.Size = new Drawing.Size(50, 20); btnCopy.TabIndex = 22; btnCopy.Text = "Copy"; btnCopy.UseVisualStyleBackColor = true; btnCopy.Click += new EventHandler(btnCopy_Click); // // toolStripMenuItem3 // toolStripMenuItem3.Name = "toolStripMenuItem3"; toolStripMenuItem3.Size = new Drawing.Size(100, 22); toolStripMenuItem3.Text = "+180"; // // btnCut // btnCut.Location = new Drawing.Point(3, 55); btnCut.Name = "btnCut"; btnCut.Size = new Drawing.Size(50, 20); btnCut.TabIndex = 21; btnCut.Text = "Cut"; btnCut.UseVisualStyleBackColor = true; btnCut.Click += new EventHandler(btnCut_Click); // // subtract // subtract.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem5, toolStripMenuItem6, toolStripMenuItem8 }); subtract.Name = "subtract"; subtract.Size = new Drawing.Size(166, 22); subtract.Text = "Subtract From All"; // // toolStripMenuItem5 // toolStripMenuItem5.Name = "toolStripMenuItem5"; toolStripMenuItem5.Size = new Drawing.Size(97, 22); toolStripMenuItem5.Text = "-180"; // // toolStripMenuItem6 // toolStripMenuItem6.Name = "toolStripMenuItem6"; toolStripMenuItem6.Size = new Drawing.Size(97, 22); toolStripMenuItem6.Text = "-90"; // // toolStripMenuItem8 // toolStripMenuItem8.Name = "toolStripMenuItem8"; toolStripMenuItem8.Size = new Drawing.Size(97, 22); toolStripMenuItem8.Text = "-45"; // // FrameTrans // FrameTrans.AutoSize = true; FrameTrans.Checked = true; FrameTrans.CheckState = CheckState.Checked; FrameTrans.Location = new Drawing.Point(155, 58); FrameTrans.Name = "FrameTrans"; FrameTrans.Size = new Drawing.Size(53, 17); FrameTrans.TabIndex = 33; FrameTrans.Text = "Trans"; FrameTrans.UseVisualStyleBackColor = true; // // numScaleY // numScaleY.BorderStyle = BorderStyle.FixedSingle; numScaleY.Integral = false; numScaleY.Location = new Drawing.Point(154, 35); numScaleY.MaximumValue = 3.402823E+38F; numScaleY.MinimumValue = -3.402823E+38F; numScaleY.Name = "numScaleY"; numScaleY.Size = new Drawing.Size(82, 20); numScaleY.TabIndex = 18; numScaleY.Text = "0"; numScaleY.ValueChanged += new EventHandler(BoxChangedCreateUndo); numScaleY.MouseDown += new MouseEventHandler(box_MouseDown); // // add // add.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem3, toolStripMenuItem4, toolStripMenuItem7 }); add.Name = "add"; add.Size = new Drawing.Size(166, 22); add.Text = "Add To All"; // // numRot // numRot.BorderStyle = BorderStyle.FixedSingle; numRot.Integral = false; numRot.Location = new Drawing.Point(235, 35); numRot.MaximumValue = 3.402823E+38F; numRot.MinimumValue = -3.402823E+38F; numRot.Name = "numRot"; numRot.Size = new Drawing.Size(82, 20); numRot.TabIndex = 15; numRot.Text = "0"; numRot.ValueChanged += new EventHandler(BoxChangedCreateUndo); numRot.MouseDown += new MouseEventHandler(box_MouseDown); // // toolStripSeparator1 // toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new Drawing.Size(163, 6); // // Source // Source.Enabled = false; Source.Name = "Source"; Source.Size = new Drawing.Size(166, 22); Source.Text = "Source"; // // numTransX // numTransX.BorderStyle = BorderStyle.FixedSingle; numTransX.Integral = false; numTransX.Location = new Drawing.Point(73, 16); numTransX.MaximumValue = 3.402823E+38F; numTransX.MinimumValue = -3.402823E+38F; numTransX.Name = "numTransX"; numTransX.Size = new Drawing.Size(82, 20); numTransX.TabIndex = 3; numTransX.Text = "0"; numTransX.ValueChanged += new EventHandler(BoxChangedCreateUndo); numTransX.MouseDown += new MouseEventHandler(box_MouseDown); // // numTransY // numTransY.BorderStyle = BorderStyle.FixedSingle; numTransY.Integral = false; numTransY.Location = new Drawing.Point(154, 16); numTransY.MaximumValue = 3.402823E+38F; numTransY.MinimumValue = -3.402823E+38F; numTransY.Name = "numTransY"; numTransY.Size = new Drawing.Size(82, 20); numTransY.TabIndex = 13; numTransY.Text = "0"; numTransY.ValueChanged += new EventHandler(BoxChangedCreateUndo); numTransY.MouseDown += new MouseEventHandler(box_MouseDown); // // lblTransX // lblTransX.BorderStyle = BorderStyle.FixedSingle; lblTransX.Location = new Drawing.Point(4, 16); lblTransX.Name = "lblTransX"; lblTransX.Size = new Drawing.Size(70, 20); lblTransX.TabIndex = 4; lblTransX.Text = "Translation:"; lblTransX.TextAlign = ContentAlignment.MiddleRight; // // removeAllToolStripMenuItem // removeAllToolStripMenuItem.Name = "removeAllToolStripMenuItem"; removeAllToolStripMenuItem.Size = new Drawing.Size(166, 22); removeAllToolStripMenuItem.Text = "Remove All"; // // lblRot // lblRot.BorderStyle = BorderStyle.FixedSingle; lblRot.Location = new Drawing.Point(235, 16); lblRot.Name = "lblRot"; lblRot.Size = new Drawing.Size(82, 20); lblRot.TabIndex = 7; lblRot.Text = "Rotation:"; lblRot.TextAlign = ContentAlignment.MiddleLeft; // // ctxBox // ctxBox.Items.AddRange(new ToolStripItem[] { Source, toolStripSeparator1, add, subtract, removeAllToolStripMenuItem, addCustomAmountToolStripMenuItem }); ctxBox.Name = "ctxBox"; ctxBox.Size = new Drawing.Size(167, 120); // // addCustomAmountToolStripMenuItem // addCustomAmountToolStripMenuItem.Name = "addCustomAmountToolStripMenuItem"; addCustomAmountToolStripMenuItem.Size = new Drawing.Size(166, 22); addCustomAmountToolStripMenuItem.Text = "Edit All..."; addCustomAmountToolStripMenuItem.Click += new EventHandler(addCustomAmountToolStripMenuItem_Click_1); // // btnDelete // btnDelete.Location = new Drawing.Point(6, 16); btnDelete.Name = "btnDelete"; btnDelete.Size = new Drawing.Size(50, 20); btnDelete.TabIndex = 25; btnDelete.Text = "Delete"; btnDelete.UseVisualStyleBackColor = true; btnDelete.Click += new EventHandler(btnDelete_Click); // // grpTransform // grpTransform.Controls.Add(lblScaleX); grpTransform.Controls.Add(numScaleX); grpTransform.Controls.Add(FrameScale); grpTransform.Controls.Add(btnPaste); grpTransform.Controls.Add(FrameRot); grpTransform.Controls.Add(btnCopy); grpTransform.Controls.Add(FrameTrans); grpTransform.Controls.Add(btnCut); grpTransform.Controls.Add(numScaleY); grpTransform.Controls.Add(numRot); grpTransform.Controls.Add(numTransX); grpTransform.Controls.Add(numTransY); grpTransform.Controls.Add(lblTransX); grpTransform.Controls.Add(lblRot); grpTransform.Dock = DockStyle.Left; grpTransform.Enabled = false; grpTransform.Location = new Drawing.Point(0, 0); grpTransform.Name = "grpTransform"; grpTransform.Size = new Drawing.Size(321, 78); grpTransform.TabIndex = 28; grpTransform.TabStop = false; grpTransform.Text = "Transform Frame"; // // lblScaleX // lblScaleX.BorderStyle = BorderStyle.FixedSingle; lblScaleX.Location = new Drawing.Point(4, 35); lblScaleX.Name = "lblScaleX"; lblScaleX.Size = new Drawing.Size(70, 20); lblScaleX.TabIndex = 37; lblScaleX.Text = "Scale:"; lblScaleX.TextAlign = ContentAlignment.MiddleRight; // // numScaleX // numScaleX.BorderStyle = BorderStyle.FixedSingle; numScaleX.Integral = false; numScaleX.Location = new Drawing.Point(73, 35); numScaleX.MaximumValue = 3.402823E+38F; numScaleX.MinimumValue = -3.402823E+38F; numScaleX.Name = "numScaleX"; numScaleX.Size = new Drawing.Size(82, 20); numScaleX.TabIndex = 36; numScaleX.Text = "0"; numScaleX.ValueChanged += new EventHandler(BoxChangedCreateUndo); numScaleX.MouseDown += new MouseEventHandler(box_MouseDown); // // AllScale // AllScale.AutoSize = true; AllScale.Checked = true; AllScale.CheckState = CheckState.Checked; AllScale.Location = new Drawing.Point(108, 57); AllScale.Name = "AllScale"; AllScale.Size = new Drawing.Size(53, 17); AllScale.TabIndex = 32; AllScale.Text = "Scale"; AllScale.UseVisualStyleBackColor = true; // // grpTransAll // grpTransAll.Controls.Add(AllScale); grpTransAll.Controls.Add(AllRot); grpTransAll.Controls.Add(AllTrans); grpTransAll.Controls.Add(btnClean); grpTransAll.Controls.Add(btnPasteAll); grpTransAll.Controls.Add(btnCopyAll); grpTransAll.Controls.Add(btnClear); grpTransAll.Controls.Add(btnInsert); grpTransAll.Controls.Add(btnDelete); grpTransAll.Dock = DockStyle.Fill; grpTransAll.Enabled = false; grpTransAll.Location = new Drawing.Point(321, 0); grpTransAll.Name = "grpTransAll"; grpTransAll.Size = new Drawing.Size(162, 78); grpTransAll.TabIndex = 29; grpTransAll.TabStop = false; grpTransAll.Text = "Transform All"; // // AllRot // AllRot.AutoSize = true; AllRot.Checked = true; AllRot.CheckState = CheckState.Checked; AllRot.Location = new Drawing.Point(108, 38); AllRot.Name = "AllRot"; AllRot.Size = new Drawing.Size(43, 17); AllRot.TabIndex = 31; AllRot.Text = "Rot"; AllRot.UseVisualStyleBackColor = true; // // AllTrans // AllTrans.AutoSize = true; AllTrans.Checked = true; AllTrans.CheckState = CheckState.Checked; AllTrans.Location = new Drawing.Point(108, 19); AllTrans.Name = "AllTrans"; AllTrans.Size = new Drawing.Size(53, 17); AllTrans.TabIndex = 30; AllTrans.Text = "Trans"; AllTrans.UseVisualStyleBackColor = true; // // btnClean // btnClean.Location = new Drawing.Point(55, 35); btnClean.Name = "btnClean"; btnClean.Size = new Drawing.Size(50, 20); btnClean.TabIndex = 29; btnClean.Text = "Clean"; btnClean.UseVisualStyleBackColor = true; btnClean.Click += new EventHandler(btnClean_Click); // // btnPasteAll // btnPasteAll.Location = new Drawing.Point(6, 35); btnPasteAll.Name = "btnPasteAll"; btnPasteAll.Size = new Drawing.Size(50, 20); btnPasteAll.TabIndex = 28; btnPasteAll.Text = "Paste"; btnPasteAll.UseVisualStyleBackColor = true; btnPasteAll.Click += new EventHandler(btnPasteAll_Click); // // btnCopyAll // btnCopyAll.Location = new Drawing.Point(6, 54); btnCopyAll.Name = "btnCopyAll"; btnCopyAll.Size = new Drawing.Size(50, 20); btnCopyAll.TabIndex = 27; btnCopyAll.Text = "Copy"; btnCopyAll.UseVisualStyleBackColor = true; btnCopyAll.Click += new EventHandler(btnCopyAll_Click); // // btnClear // btnClear.Location = new Drawing.Point(55, 16); btnClear.Name = "btnClear"; btnClear.Size = new Drawing.Size(50, 20); btnClear.TabIndex = 26; btnClear.Text = "Clear"; btnClear.UseVisualStyleBackColor = true; btnClear.Click += new EventHandler(btnClear_Click); // // btnInsert // btnInsert.Location = new Drawing.Point(55, 54); btnInsert.Name = "btnInsert"; btnInsert.Size = new Drawing.Size(50, 20); btnInsert.TabIndex = 24; btnInsert.Text = "Insert"; btnInsert.UseVisualStyleBackColor = true; btnInsert.Click += new EventHandler(btnInsert_Click); // // SRT0Editor // Controls.Add(grpTransAll); Controls.Add(grpTransform); MinimumSize = new Drawing.Size(483, 78); Name = "SRT0Editor"; Size = new Drawing.Size(483, 78); ctxBox.ResumeLayout(false); grpTransform.ResumeLayout(false); grpTransform.PerformLayout(); grpTransAll.ResumeLayout(false); grpTransAll.PerformLayout(); ResumeLayout(false); }
public ControlTreeDataGrid(IApplicationController controller, FormDataEntryLogic dataEntryController) { EditMode = DataGridViewEditMode.EditOnEnter; AutoGenerateColumns = false; AllowUserToDeleteRows = false; AllowUserToAddRows = false; Controller = controller; DataEntryController = dataEntryController; CellClick += new DataGridViewCellEventHandler(ControlTreeDataGrid_CellClick); _BS_trees = new BindingSource(); ((System.ComponentModel.ISupportInitialize)_BS_trees).BeginInit(); _BS_trees.DataSource = typeof(TreeVM); DataSource = _BS_trees; ((System.ComponentModel.ISupportInitialize)_BS_trees).EndInit(); //_BS_TreeSpecies = new BindingSource(); //((System.ComponentModel.ISupportInitialize)_BS_TreeSpecies).BeginInit(); //_BS_TreeSpecies.DataSource = typeof(TreeDefaultValueDO); //((System.ComponentModel.ISupportInitialize)_BS_TreeSpecies).EndInit(); //_BS_TreeSampleGroups = new BindingSource(); //((System.ComponentModel.ISupportInitialize)_BS_TreeSampleGroups).BeginInit(); //_BS_TreeSampleGroups.DataSource = typeof(SampleGroupDO); //((System.ComponentModel.ISupportInitialize)_BS_TreeSampleGroups).EndInit(); var columns = DataEntryController.Unit.MakeTreeColumns(); base.Columns.AddRange(columns.ToArray()); _speciesColumn = base.Columns["TreeDefaultValue"] as DataGridViewComboBoxColumn; _sgColumn = base.Columns["SampleGroup"] as DataGridViewComboBoxColumn; _stratumColumn = base.Columns["Stratum"] as DataGridViewComboBoxColumn; _treeNumberColumn = base.Columns["TreeNumber"] as DataGridViewTextBoxColumn; _initialsColoumn = base.Columns["Initials"] as DataGridViewComboBoxColumn; _errorMessageColumn = base.Columns["Error"] as DataGridViewTextBoxColumn; _logsColumn = base.Columns["Logs"] as DataGridViewButtonColumn; if (_speciesColumn != null) { _speciesColumn.DataSource = Controller._cDal.From<TreeDefaultValueDO>().Read().ToList(); } if (_sgColumn != null) { _sgColumn.DataSource = DataEntryController.Unit.TreeSampleGroups.ToList(); } if (_stratumColumn != null) { _stratumColumn.DataSource = DataEntryController.Unit.TreeStrata; } if (_initialsColoumn != null) { _initialsColoumn.DataSource = Controller.Settings.Cruisers.ToArray(); } if (_logsColumn != null) { _logsColumn.Visible = Controller.ViewController.EnableLogGrading; } _contexMenu = new ContextMenuStrip(new System.ComponentModel.Container()); logToolStripMenuItem = new ToolStripMenuItem(); _contexMenu.SuspendLayout(); this.ColumnHeaderMouseClick += new DataGridViewCellMouseEventHandler(ControlTreeDataGrid_ColumnHeaderMouseClick); _contexMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { logToolStripMenuItem }); _contexMenu.Name = "_contexMenu"; _contexMenu.Size = new System.Drawing.Size(181, 26); logToolStripMenuItem.Name = "logToolStripMenuItem"; logToolStripMenuItem.Size = new System.Drawing.Size(180, 22); logToolStripMenuItem.Text = Controller.ViewController.EnableLogGrading ? "Disable Log Grading" : "Enable Log Grading"; logToolStripMenuItem.Click += logToolStripMenuItem_Click; _contexMenu.ResumeLayout(false); }
private void InitializeComponent() { components = new Container(); ComponentResourceManager resources = new ComponentResourceManager(typeof (cRemote)); TreeNode treeNode1 = new TreeNode("Connections"); conMenu = new ContextMenuStrip(components); menAddServer = new ToolStripMenuItem(); menAddContainer = new ToolStripMenuItem(); menAddLink = new ToolStripMenuItem(); ToolStripSeparator5 = new ToolStripSeparator(); menConnect = new ToolStripMenuItem(); conMenSep1 = new ToolStripSeparator(); menDelete = new ToolStripMenuItem(); conMenSep2 = new ToolStripSeparator(); menMoveUp = new ToolStripMenuItem(); menMoveDown = new ToolStripMenuItem(); toolStripSeparator1 = new ToolStripSeparator(); duplicateToolStripMenuItem_duplicate = new ToolStripMenuItem(); imageList_connections = new ImageList(components); toolTip_window = new ToolTip(components); button_new_credential = new Button(); btn_del_credential = new Button(); btn_save_credential = new Button(); button_new_link = new Button(); button_new_container = new Button(); button_new_server = new Button(); button_save_connection = new Button(); button_win_state = new Button(); faTabStrip_all = new FATabStrip(); faTabStripItem_configs = new FATabStripItem(); panel_configs = new Panel(); panel_config_details = new Panel(); grpConfAppearance = new GroupBox(); lblConfResolution = new Label(); lblConfColors = new Label(); cmbConfResolution = new ComboBox(); cmbConfColors = new ComboBox(); lblConfOptions = new Label(); chkConfWallpaper = new CheckBox(); chkConfCacheBitmaps = new CheckBox(); chkConfThemes = new CheckBox(); chkConfRedKeys = new CheckBox(); lblConfRedirect = new Label(); chkConfRedDiskDrives = new CheckBox(); chkConfRedPorts = new CheckBox(); chkConfRedPrinters = new CheckBox(); chkConfRedSmartCards = new CheckBox(); lblConfSounds = new Label(); cmbConfRedSounds = new ComboBox(); grpConfProtocol = new GroupBox(); lblConfProtocol = new Label(); cmbConfProtocol = new ComboBox(); lblConfPort = new Label(); txtConfPort = new TextBox(); chkConfConnectToConsole = new CheckBox(); grpConfCredential = new GroupBox(); label_linkid = new Label(); label_mid = new Label(); label_groupid = new Label(); chkConfInherit = new CheckBox(); label_credential_id = new Label(); label1 = new Label(); cmb_credential = new ComboBox(); lblConfUsername = new Label(); txtConfUsername = new TextBox(); lblConfPassword = new Label(); txtConfPassword = new TextBox(); lblConfDomain = new Label(); txtConfDomain = new TextBox(); grpConfDisplay = new GroupBox(); label2 = new Label(); cmb_groups = new ComboBox(); btnConnect = new Button(); lblConfConnectionName = new Label(); txtConfConnectionName = new TextBox(); lblConfHost = new Label(); txtConfHost = new TextBox(); panel_connections = new Panel(); panel_connectionlist = new Panel(); groupBox_connections = new GroupBox(); treeView_connections = new TreeView(); panel_connectiontop = new Panel(); groupBox_connection_operation = new GroupBox(); button_delete = new Button(); conMenu.SuspendLayout(); faTabStrip_all.BeginInit(); faTabStrip_all.SuspendLayout(); faTabStripItem_configs.SuspendLayout(); panel_configs.SuspendLayout(); panel_config_details.SuspendLayout(); grpConfAppearance.SuspendLayout(); grpConfProtocol.SuspendLayout(); grpConfCredential.SuspendLayout(); grpConfDisplay.SuspendLayout(); panel_connections.SuspendLayout(); panel_connectionlist.SuspendLayout(); groupBox_connections.SuspendLayout(); panel_connectiontop.SuspendLayout(); groupBox_connection_operation.SuspendLayout(); base.SuspendLayout(); conMenu.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0); conMenu.Items.AddRange(new ToolStripItem[] { menAddServer, menAddContainer, menAddLink, ToolStripSeparator5, menConnect, conMenSep1, menDelete, conMenSep2, menMoveUp, menMoveDown, toolStripSeparator1, duplicateToolStripMenuItem_duplicate }); conMenu.Name = "conMenu"; conMenu.RenderMode = ToolStripRenderMode.Professional; conMenu.Size = new Size(0x9c, 0xcc); menAddServer.Name = "menAddServer"; menAddServer.Size = new Size(0x9b, 0x16); menAddServer.Text = "Add Server"; menAddServer.Click += button_new_server_Click; menAddContainer.Name = "menAddContainer"; menAddContainer.Size = new Size(0x9b, 0x16); menAddContainer.Text = "Add Container"; menAddContainer.Click += button_new_container_Click; menAddLink.Name = "menAddLink"; menAddLink.Size = new Size(0x9b, 0x16); menAddLink.Text = "Add Link"; menAddLink.Click += button_new_link_Click; ToolStripSeparator5.Name = "ToolStripSeparator5"; ToolStripSeparator5.Size = new Size(0x98, 6); menConnect.Name = "menConnect"; menConnect.Size = new Size(0x9b, 0x16); menConnect.Text = "Connect"; menConnect.Click += btnConnect_Click; conMenSep1.Name = "conMenSep1"; conMenSep1.Size = new Size(0x98, 6); menDelete.Name = "menDelete"; menDelete.Size = new Size(0x9b, 0x16); menDelete.Text = "Delete Item"; menDelete.Click += menDelete_Click; conMenSep2.Name = "conMenSep2"; conMenSep2.Size = new Size(0x98, 6); menMoveUp.Name = "menMoveUp"; menMoveUp.Size = new Size(0x9b, 0x16); menMoveUp.Text = "Move Item Up"; menMoveDown.Name = "menMoveDown"; menMoveDown.Size = new Size(0x9b, 0x16); menMoveDown.Text = "Move Item Down"; toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new Size(0x98, 6); duplicateToolStripMenuItem_duplicate.Name = "duplicateToolStripMenuItem_duplicate"; duplicateToolStripMenuItem_duplicate.Size = new Size(0x9b, 0x16); duplicateToolStripMenuItem_duplicate.Text = "Duplicate"; duplicateToolStripMenuItem_duplicate.Click += duplicateToolStripMenuItem_duplicate_Click; //this.imageList_connections.ImageStream = (ImageListStreamer) resources.GetObject("imageList_connections.ImageStream"); //this.imageList_connections.TransparentColor = Color.Transparent; //this.imageList_connections.Images.SetKeyName(0, "folderclose.ico"); //this.imageList_connections.Images.SetKeyName(1, "36.ico"); //this.imageList_connections.Images.SetKeyName(2, "06.ico"); //this.imageList_connections.Images.SetKeyName(3, "disksave.ico"); //this.imageList_connections.Images.SetKeyName(4, "program group.ico"); //this.imageList_connections.Images.SetKeyName(5, "folder open.ico"); //this.imageList_connections.Images.SetKeyName(6, "IE.ICO"); //this.imageList_connections.Images.SetKeyName(7, "trash.gif"); button_new_credential.FlatStyle = FlatStyle.Popup; button_new_credential.ForeColor = Color.Green; button_new_credential.Location = new Point(0x14f, 0x2a); button_new_credential.Name = "button_new_credential"; button_new_credential.Size = new Size(0x63, 0x15); button_new_credential.TabIndex = 0x2724; button_new_credential.Text = "New Credential"; toolTip_window.SetToolTip(button_new_credential, "New Credential"); button_new_credential.UseVisualStyleBackColor = true; button_new_credential.Click += button_new_credential_Click; btn_del_credential.FlatStyle = FlatStyle.Popup; btn_del_credential.ForeColor = Color.Red; btn_del_credential.Location = new Point(0x14f, 0x81); btn_del_credential.Name = "btn_del_credential"; btn_del_credential.Size = new Size(0x63, 0x15); btn_del_credential.TabIndex = 0x2720; btn_del_credential.Text = "Delete Credential"; toolTip_window.SetToolTip(btn_del_credential, "Del Credential"); btn_del_credential.UseVisualStyleBackColor = true; btn_save_credential.FlatStyle = FlatStyle.Popup; btn_save_credential.ForeColor = Color.Blue; btn_save_credential.Location = new Point(0x14f, 0x49); btn_save_credential.Name = "btn_save_credential"; btn_save_credential.Size = new Size(0x63, 0x15); btn_save_credential.TabIndex = 0x271f; btn_save_credential.Text = "Save Credential"; toolTip_window.SetToolTip(btn_save_credential, "Save Credential"); btn_save_credential.UseVisualStyleBackColor = true; btn_save_credential.Click += btn_save_credential_Click; button_new_link.FlatStyle = FlatStyle.Popup; button_new_link.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); button_new_link.ForeColor = SystemColors.ControlText; button_new_link.ImageIndex = 2; button_new_link.ImageList = imageList_connections; button_new_link.Location = new Point(0xc5, 11); button_new_link.Name = "button_new_link"; button_new_link.Size = new Size(80, 0x18); button_new_link.TabIndex = 0x2724; button_new_link.Text = "New Link"; button_new_link.TextAlign = ContentAlignment.MiddleLeft; button_new_link.TextImageRelation = TextImageRelation.ImageBeforeText; toolTip_window.SetToolTip(button_new_link, "New Link"); button_new_link.UseVisualStyleBackColor = true; button_new_link.Click += button_new_link_Click; button_new_container.FlatStyle = FlatStyle.Popup; button_new_container.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); button_new_container.ForeColor = SystemColors.ControlText; button_new_container.ImageAlign = ContentAlignment.MiddleLeft; button_new_container.ImageIndex = 0; button_new_container.ImageList = imageList_connections; button_new_container.Location = new Point(4, 11); button_new_container.Name = "button_new_container"; button_new_container.Size = new Size(0x5c, 0x18); button_new_container.TabIndex = 0x2723; button_new_container.Text = "New Group"; button_new_container.TextAlign = ContentAlignment.MiddleLeft; button_new_container.TextImageRelation = TextImageRelation.ImageBeforeText; toolTip_window.SetToolTip(button_new_container, "New Container"); button_new_container.UseVisualStyleBackColor = true; button_new_container.Click += button_new_container_Click; button_new_server.FlatStyle = FlatStyle.Popup; button_new_server.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); button_new_server.ForeColor = SystemColors.ControlText; button_new_server.ImageIndex = 1; button_new_server.ImageList = imageList_connections; button_new_server.Location = new Point(0x63, 11); button_new_server.Name = "button_new_server"; button_new_server.Size = new Size(0x5f, 0x18); button_new_server.TabIndex = 0x2722; button_new_server.Text = "New Server"; button_new_server.TextAlign = ContentAlignment.MiddleLeft; button_new_server.TextImageRelation = TextImageRelation.ImageBeforeText; toolTip_window.SetToolTip(button_new_server, "New Server"); button_new_server.UseVisualStyleBackColor = true; button_new_server.Click += button_new_server_Click; button_save_connection.FlatStyle = FlatStyle.Popup; button_save_connection.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); button_save_connection.ForeColor = Color.Blue; button_save_connection.ImageIndex = 3; button_save_connection.ImageList = imageList_connections; button_save_connection.Location = new Point(0x1af, 11); button_save_connection.Name = "button_save_connection"; button_save_connection.Size = new Size(0x40, 0x18); button_save_connection.TabIndex = 0x2721; button_save_connection.Text = " Save"; button_save_connection.TextImageRelation = TextImageRelation.ImageBeforeText; toolTip_window.SetToolTip(button_save_connection, "Save Connection"); button_save_connection.UseVisualStyleBackColor = true; button_save_connection.Click += button_save_connection_Click; button_win_state.FlatStyle = FlatStyle.Popup; button_win_state.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); button_win_state.ImageAlign = ContentAlignment.MiddleLeft; button_win_state.ImageIndex = 7; button_win_state.Location = new Point(0x165, 11); button_win_state.Name = "button_win_state"; button_win_state.Size = new Size(0x45, 0x18); button_win_state.TabIndex = 0x2720; button_win_state.Text = "Max/Min"; button_win_state.TextAlign = ContentAlignment.MiddleLeft; toolTip_window.SetToolTip(button_win_state, "Window Max/Min"); button_win_state.UseVisualStyleBackColor = true; button_win_state.Click += button_win_state_Click; faTabStrip_all.Dock = DockStyle.Fill; faTabStrip_all.Font = new Font("Tahoma", 8.25f); faTabStrip_all.HoverSelection = false; faTabStrip_all.Items.AddRange(new[] {faTabStripItem_configs}); faTabStrip_all.Location = new Point(0, 0); faTabStrip_all.Name = "faTabStrip_all"; faTabStrip_all.SelectedItem = faTabStripItem_configs; faTabStrip_all.ShowMinimize = true; faTabStrip_all.Size = new Size(0x400, 700); faTabStrip_all.TabIndex = 2; faTabStrip_all.DoubleClick += faTabStrip_all_DoubleClick; faTabStrip_all.Click += faTabStrip_all_Click; faTabStrip_all.TabStripItemSelectionChanged += faTabStrip_all_TabStripItemSelectionChanged; faTabStrip_all.MouseDown += faTabStrip_all_MouseDown; faTabStrip_all.TabIndexChanged += faTabStrip_all_TabIndexChanged; faTabStripItem_configs.CanClose = false; faTabStripItem_configs.Controls.Add(panel_configs); //this.faTabStripItem_configs.Image = (Image) resources.GetObject("faTabStripItem_configs.Image"); faTabStripItem_configs.IsDrawn = true; faTabStripItem_configs.item_type = "CONFIG"; faTabStripItem_configs.Name = "faTabStripItem_configs"; faTabStripItem_configs.Selected = true; faTabStripItem_configs.Size = new Size(0x3fe, 0x2a7); faTabStripItem_configs.TabIndex = 0; faTabStripItem_configs.Text = "Configs"; panel_configs.Controls.Add(panel_config_details); panel_configs.Controls.Add(panel_connections); panel_configs.Dock = DockStyle.Fill; panel_configs.Location = new Point(0, 0); panel_configs.Name = "panel_configs"; panel_configs.Size = new Size(0x3fe, 0x2a7); panel_configs.TabIndex = 0x2723; panel_config_details.Controls.Add(grpConfAppearance); panel_config_details.Controls.Add(grpConfProtocol); panel_config_details.Controls.Add(grpConfCredential); panel_config_details.Controls.Add(grpConfDisplay); panel_config_details.Dock = DockStyle.Fill; panel_config_details.Location = new Point(0x1f5, 0); panel_config_details.Name = "panel_config_details"; panel_config_details.Size = new Size(0x209, 0x2a7); panel_config_details.TabIndex = 1; grpConfAppearance.Controls.Add(lblConfResolution); grpConfAppearance.Controls.Add(lblConfColors); grpConfAppearance.Controls.Add(cmbConfResolution); grpConfAppearance.Controls.Add(cmbConfColors); grpConfAppearance.Controls.Add(lblConfOptions); grpConfAppearance.Controls.Add(chkConfWallpaper); grpConfAppearance.Controls.Add(chkConfCacheBitmaps); grpConfAppearance.Controls.Add(chkConfThemes); grpConfAppearance.Controls.Add(chkConfRedKeys); grpConfAppearance.Controls.Add(lblConfRedirect); grpConfAppearance.Controls.Add(chkConfRedDiskDrives); grpConfAppearance.Controls.Add(chkConfRedPorts); grpConfAppearance.Controls.Add(chkConfRedPrinters); grpConfAppearance.Controls.Add(chkConfRedSmartCards); grpConfAppearance.Controls.Add(lblConfSounds); grpConfAppearance.Controls.Add(cmbConfRedSounds); grpConfAppearance.Enabled = false; grpConfAppearance.FlatStyle = FlatStyle.Flat; grpConfAppearance.Location = new Point(6, 0x111); grpConfAppearance.Name = "grpConfAppearance"; grpConfAppearance.Size = new Size(0x14f, 0xcf); grpConfAppearance.TabIndex = 0x271b; grpConfAppearance.TabStop = false; grpConfAppearance.Text = "Appearance and Redirection"; lblConfResolution.AutoSize = true; lblConfResolution.Location = new Point(13, 0x17); lblConfResolution.Name = "lblConfResolution"; lblConfResolution.Size = new Size(0x3d, 13); lblConfResolution.TabIndex = 0x5de; lblConfResolution.Text = "Resolution:"; lblConfColors.AutoSize = true; lblConfColors.Location = new Point(14, 0x30); lblConfColors.Name = "lblConfColors"; lblConfColors.Size = new Size(0x29, 13); lblConfColors.TabIndex = 0x5e1; lblConfColors.Text = "Colors:"; cmbConfResolution.DropDownStyle = ComboBoxStyle.DropDownList; cmbConfResolution.FormattingEnabled = true; cmbConfResolution.Items.AddRange(new object[] { "Fit to window", "Fullscreen", "Smart size", "640 x 480", "800 x 600", "1024 x 768", "1152 x 864", "1280 x 1024", "1400 x 1050", "1440 x 900" , "1600 x 1024", "1600 x 1200", "1600 x 1280", "1680 x 1050", "1900 x 1200", "1920 x 1200", "2048 x 1536", "2560 x 2048", "3200 x 2400", "3840 x 2400" }); cmbConfResolution.Location = new Point(0x58, 0x12); cmbConfResolution.Name = "cmbConfResolution"; cmbConfResolution.Size = new Size(0xed, 0x15); cmbConfResolution.TabIndex = 0x5df; cmbConfColors.DropDownStyle = ComboBoxStyle.DropDownList; cmbConfColors.FormattingEnabled = true; cmbConfColors.Items.AddRange(new object[] {"HighColor16", "Color256", "TrueColor", "HighestQuality"}); cmbConfColors.Location = new Point(0x58, 0x2d); cmbConfColors.Name = "cmbConfColors"; cmbConfColors.Size = new Size(0xed, 0x15); cmbConfColors.TabIndex = 0x5e6; lblConfOptions.AutoSize = true; lblConfOptions.Location = new Point(14, 0x4a); lblConfOptions.Name = "lblConfOptions"; lblConfOptions.Size = new Size(0x30, 13); lblConfOptions.TabIndex = 0x5eb; lblConfOptions.Text = "Options:"; chkConfWallpaper.AutoSize = true; chkConfWallpaper.FlatStyle = FlatStyle.Flat; chkConfWallpaper.Location = new Point(0x58, 0x47); chkConfWallpaper.Name = "chkConfWallpaper"; chkConfWallpaper.Size = new Size(0x6c, 0x11); chkConfWallpaper.TabIndex = 0x5f0; chkConfWallpaper.Text = "Display Wallpaper"; chkConfWallpaper.UseVisualStyleBackColor = true; chkConfCacheBitmaps.AutoSize = true; chkConfCacheBitmaps.FlatStyle = FlatStyle.Flat; chkConfCacheBitmaps.Location = new Point(0xda, 0x47); chkConfCacheBitmaps.Name = "chkConfCacheBitmaps"; chkConfCacheBitmaps.Size = new Size(0x5d, 0x11); chkConfCacheBitmaps.TabIndex = 0x5f5; chkConfCacheBitmaps.Text = "Cache Bitmaps"; chkConfCacheBitmaps.UseVisualStyleBackColor = true; chkConfThemes.AutoSize = true; chkConfThemes.FlatStyle = FlatStyle.Flat; chkConfThemes.Location = new Point(0x58, 0x5e); chkConfThemes.Name = "chkConfThemes"; chkConfThemes.Size = new Size(0x61, 0x11); chkConfThemes.TabIndex = 0x5fa; chkConfThemes.Text = "Display Themes"; chkConfThemes.UseVisualStyleBackColor = true; chkConfRedKeys.AutoSize = true; chkConfRedKeys.Checked = true; chkConfRedKeys.CheckState = CheckState.Checked; chkConfRedKeys.FlatStyle = FlatStyle.Flat; chkConfRedKeys.Location = new Point(0x58, 0x98); chkConfRedKeys.Name = "chkConfRedKeys"; chkConfRedKeys.Size = new Size(0xc0, 0x11); chkConfRedKeys.TabIndex = 0x5ff; chkConfRedKeys.Text = "Key combinations (like in fullscreen)"; chkConfRedKeys.UseVisualStyleBackColor = true; lblConfRedirect.AutoSize = true; lblConfRedirect.Location = new Point(14, 0x72); lblConfRedirect.Name = "lblConfRedirect"; lblConfRedirect.Size = new Size(0x33, 13); lblConfRedirect.TabIndex = 0x604; lblConfRedirect.Text = "Redirect:"; chkConfRedDiskDrives.AutoSize = true; chkConfRedDiskDrives.FlatStyle = FlatStyle.Flat; chkConfRedDiskDrives.Location = new Point(0x58, 0x6f); chkConfRedDiskDrives.Name = "chkConfRedDiskDrives"; chkConfRedDiskDrives.Size = new Size(0x4b, 0x11); chkConfRedDiskDrives.TabIndex = 0x609; chkConfRedDiskDrives.Text = "Disk Drives"; chkConfRedDiskDrives.UseVisualStyleBackColor = true; chkConfRedPorts.AutoSize = true; chkConfRedPorts.Checked = true; chkConfRedPorts.CheckState = CheckState.Checked; chkConfRedPorts.FlatStyle = FlatStyle.Flat; chkConfRedPorts.Location = new Point(0xda, 0x6f); chkConfRedPorts.Name = "chkConfRedPorts"; chkConfRedPorts.Size = new Size(0x30, 0x11); chkConfRedPorts.TabIndex = 0x60e; chkConfRedPorts.Text = "Ports"; chkConfRedPorts.UseVisualStyleBackColor = true; chkConfRedPrinters.AutoSize = true; chkConfRedPrinters.FlatStyle = FlatStyle.Flat; chkConfRedPrinters.Location = new Point(0x58, 0x83); chkConfRedPrinters.Name = "chkConfRedPrinters"; chkConfRedPrinters.Size = new Size(60, 0x11); chkConfRedPrinters.TabIndex = 0x613; chkConfRedPrinters.Text = "Printers"; chkConfRedPrinters.UseVisualStyleBackColor = true; chkConfRedSmartCards.AutoSize = true; chkConfRedSmartCards.FlatStyle = FlatStyle.Flat; chkConfRedSmartCards.Location = new Point(0xda, 0x83); chkConfRedSmartCards.Name = "chkConfRedSmartCards"; chkConfRedSmartCards.Size = new Size(0x52, 0x11); chkConfRedSmartCards.TabIndex = 0x618; chkConfRedSmartCards.Text = "Smart Cards"; chkConfRedSmartCards.UseVisualStyleBackColor = true; lblConfSounds.AutoSize = true; lblConfSounds.Location = new Point(0x10, 0xb3); lblConfSounds.Name = "lblConfSounds"; lblConfSounds.Size = new Size(0x2e, 13); lblConfSounds.TabIndex = 0x61d; lblConfSounds.Text = "Sounds:"; cmbConfRedSounds.DropDownStyle = ComboBoxStyle.DropDownList; cmbConfRedSounds.FormattingEnabled = true; cmbConfRedSounds.Items.AddRange(new object[] {"Bring to this computer", "Leave at remote computer", "Do not play"}); cmbConfRedSounds.Location = new Point(0x58, 0xaf); cmbConfRedSounds.Name = "cmbConfRedSounds"; cmbConfRedSounds.Size = new Size(0xed, 0x15); cmbConfRedSounds.TabIndex = 0x622; grpConfProtocol.Controls.Add(lblConfProtocol); grpConfProtocol.Controls.Add(cmbConfProtocol); grpConfProtocol.Controls.Add(lblConfPort); grpConfProtocol.Controls.Add(txtConfPort); grpConfProtocol.Controls.Add(chkConfConnectToConsole); grpConfProtocol.Enabled = false; grpConfProtocol.FlatStyle = FlatStyle.Flat; grpConfProtocol.Location = new Point(6, 0x1e6); grpConfProtocol.Name = "grpConfProtocol"; grpConfProtocol.Size = new Size(0x150, 0x53); grpConfProtocol.TabIndex = 0x271a; grpConfProtocol.TabStop = false; grpConfProtocol.Text = "Protocol"; lblConfProtocol.AutoSize = true; lblConfProtocol.Location = new Point(0x10, 0x1c); lblConfProtocol.Name = "lblConfProtocol"; lblConfProtocol.Size = new Size(50, 13); lblConfProtocol.TabIndex = 0x3ed; lblConfProtocol.Text = "Protocol:"; cmbConfProtocol.DropDownStyle = ComboBoxStyle.DropDownList; cmbConfProtocol.FormattingEnabled = true; cmbConfProtocol.Items.AddRange(new object[] {"RDP"}); cmbConfProtocol.Location = new Point(0x58, 0x17); cmbConfProtocol.Name = "cmbConfProtocol"; cmbConfProtocol.Size = new Size(0x79, 0x15); cmbConfProtocol.TabIndex = 0x3f2; lblConfPort.AutoSize = true; lblConfPort.Location = new Point(0xd8, 0x1c); lblConfPort.Name = "lblConfPort"; lblConfPort.Size = new Size(0x1f, 13); lblConfPort.TabIndex = 0x3f7; lblConfPort.Text = "Port:"; txtConfPort.BorderStyle = BorderStyle.FixedSingle; txtConfPort.Location = new Point(0xfd, 0x18); txtConfPort.MaxLength = 10; txtConfPort.Name = "txtConfPort"; txtConfPort.Size = new Size(0x48, 0x15); txtConfPort.TabIndex = 0x3fc; txtConfPort.Text = "3389"; chkConfConnectToConsole.AutoSize = true; chkConfConnectToConsole.FlatStyle = FlatStyle.Flat; chkConfConnectToConsole.Location = new Point(0x58, 50); chkConfConnectToConsole.Name = "chkConfConnectToConsole"; chkConfConnectToConsole.Size = new Size(0x76, 0x11); chkConfConnectToConsole.TabIndex = 0x401; chkConfConnectToConsole.Text = "Use console session"; chkConfConnectToConsole.UseVisualStyleBackColor = true; grpConfCredential.Controls.Add(label_linkid); grpConfCredential.Controls.Add(button_new_credential); grpConfCredential.Controls.Add(label_mid); grpConfCredential.Controls.Add(label_groupid); grpConfCredential.Controls.Add(chkConfInherit); grpConfCredential.Controls.Add(label_credential_id); grpConfCredential.Controls.Add(btn_del_credential); grpConfCredential.Controls.Add(btn_save_credential); grpConfCredential.Controls.Add(label1); grpConfCredential.Controls.Add(cmb_credential); grpConfCredential.Controls.Add(lblConfUsername); grpConfCredential.Controls.Add(txtConfUsername); grpConfCredential.Controls.Add(lblConfPassword); grpConfCredential.Controls.Add(txtConfPassword); grpConfCredential.Controls.Add(lblConfDomain); grpConfCredential.Controls.Add(txtConfDomain); grpConfCredential.Enabled = false; grpConfCredential.FlatStyle = FlatStyle.Flat; grpConfCredential.Location = new Point(6, 110); grpConfCredential.Name = "grpConfCredential"; grpConfCredential.Size = new Size(0x1bb, 0x9f); grpConfCredential.TabIndex = 0x2719; grpConfCredential.TabStop = false; grpConfCredential.Text = "Credential"; label_linkid.AutoSize = true; label_linkid.BorderStyle = BorderStyle.Fixed3D; label_linkid.Location = new Point(0x54, 0x84); label_linkid.Name = "label_linkid"; label_linkid.Size = new Size(2, 15); label_linkid.TabIndex = 0x2725; label_linkid.Visible = false; label_mid.AutoSize = true; label_mid.BorderStyle = BorderStyle.Fixed3D; label_mid.Location = new Point(0x54, 0x66); label_mid.Name = "label_mid"; label_mid.Size = new Size(2, 15); label_mid.TabIndex = 0x2723; label_mid.Visible = false; label_groupid.AutoSize = true; label_groupid.BorderStyle = BorderStyle.Fixed3D; label_groupid.Location = new Point(0x54, 0x4b); label_groupid.Name = "label_groupid"; label_groupid.Size = new Size(2, 15); label_groupid.TabIndex = 0x2722; label_groupid.Visible = false; chkConfInherit.FlatStyle = FlatStyle.Flat; chkConfInherit.Location = new Point(0x13, 0x11); chkConfInherit.Name = "chkConfInherit"; chkConfInherit.Size = new Size(0xcf, 0x12); chkConfInherit.TabIndex = 0x2720; chkConfInherit.Text = "Inherit settings from Parent Container"; chkConfInherit.UseVisualStyleBackColor = true; label_credential_id.AutoSize = true; label_credential_id.BorderStyle = BorderStyle.Fixed3D; label_credential_id.Location = new Point(0x54, 0x30); label_credential_id.Name = "label_credential_id"; label_credential_id.Size = new Size(2, 15); label_credential_id.TabIndex = 0x2721; label_credential_id.Visible = false; label1.AutoSize = true; label1.Location = new Point(0x10, 50); label1.Name = "label1"; label1.Size = new Size(60, 13); label1.TabIndex = 0x3f4; label1.Text = "Credential:"; cmb_credential.DropDownStyle = ComboBoxStyle.DropDownList; cmb_credential.FormattingEnabled = true; cmb_credential.Location = new Point(0x73, 0x2c); cmb_credential.Name = "cmb_credential"; cmb_credential.Size = new Size(210, 0x15); cmb_credential.TabIndex = 0x3f3; cmb_credential.SelectionChangeCommitted += cmb_credential_SelectionChangeCommitted; cmb_credential.SelectedIndexChanged += cmb_credential_SelectedIndexChanged; lblConfUsername.AutoSize = true; lblConfUsername.Location = new Point(0x10, 0x4d); lblConfUsername.Name = "lblConfUsername"; lblConfUsername.Size = new Size(0x3b, 13); lblConfUsername.TabIndex = 520; lblConfUsername.Text = "Username:"******"txtConfUsername"; txtConfUsername.Size = new Size(0xd1, 0x15); txtConfUsername.TabIndex = 0x20d; lblConfPassword.AutoSize = true; lblConfPassword.Location = new Point(0x10, 0x68); lblConfPassword.Name = "lblConfPassword"; lblConfPassword.Size = new Size(0x39, 13); lblConfPassword.TabIndex = 530; lblConfPassword.Text = "Password:"******"txtConfPassword"; txtConfPassword.Size = new Size(0xd1, 0x15); txtConfPassword.TabIndex = 540; txtConfPassword.UseSystemPasswordChar = true; lblConfDomain.AutoSize = true; lblConfDomain.Location = new Point(0x10, 130); lblConfDomain.Name = "lblConfDomain"; lblConfDomain.Size = new Size(0x2e, 13); lblConfDomain.TabIndex = 550; lblConfDomain.Text = "Domain:"; txtConfDomain.BorderStyle = BorderStyle.FixedSingle; txtConfDomain.Location = new Point(0x74, 0x81); txtConfDomain.Name = "txtConfDomain"; txtConfDomain.Size = new Size(0xd1, 0x15); txtConfDomain.TabIndex = 560; grpConfDisplay.Controls.Add(label2); grpConfDisplay.Controls.Add(cmb_groups); grpConfDisplay.Controls.Add(btnConnect); grpConfDisplay.Controls.Add(lblConfConnectionName); grpConfDisplay.Controls.Add(txtConfConnectionName); grpConfDisplay.Controls.Add(lblConfHost); grpConfDisplay.Controls.Add(txtConfHost); grpConfDisplay.FlatStyle = FlatStyle.Flat; grpConfDisplay.Location = new Point(6, 0); grpConfDisplay.Name = "grpConfDisplay"; grpConfDisplay.Size = new Size(0x1bb, 0x68); grpConfDisplay.TabIndex = 0x2718; grpConfDisplay.TabStop = false; grpConfDisplay.Text = "Group / Server / Link"; label2.AutoSize = true; label2.Location = new Point(0x10, 0x4a); label2.Name = "label2"; label2.Size = new Size(40, 13); label2.TabIndex = 0x3f6; label2.Text = "Group:"; cmb_groups.DropDownStyle = ComboBoxStyle.DropDownList; cmb_groups.FormattingEnabled = true; cmb_groups.Location = new Point(0x73, 0x44); cmb_groups.Name = "cmb_groups"; cmb_groups.Size = new Size(210, 0x15); cmb_groups.TabIndex = 0x3f5; btnConnect.FlatStyle = FlatStyle.Popup; btnConnect.Font = new Font("Calibri", 14.25f, FontStyle.Bold, GraphicsUnit.Point, 0); btnConnect.ForeColor = Color.MediumBlue; btnConnect.Location = new Point(0x14f, 0x10); btnConnect.Name = "btnConnect"; btnConnect.Size = new Size(0x65, 0x2a); btnConnect.TabIndex = 0x271e; btnConnect.Text = "CONNECT"; btnConnect.UseVisualStyleBackColor = true; btnConnect.Click += btnConnect_Click; lblConfConnectionName.AutoSize = true; lblConfConnectionName.Location = new Point(0x10, 20); lblConfConnectionName.Name = "lblConfConnectionName"; lblConfConnectionName.Size = new Size(0x26, 13); lblConfConnectionName.TabIndex = 15; lblConfConnectionName.Text = "Name:"; txtConfConnectionName.BorderStyle = BorderStyle.FixedSingle; txtConfConnectionName.Location = new Point(0x74, 0x10); txtConfConnectionName.Name = "txtConfConnectionName"; txtConfConnectionName.Size = new Size(0xd1, 0x15); txtConfConnectionName.TabIndex = 20; txtConfConnectionName.TextChanged += txtConfConnectionName_TextChanged; lblConfHost.AutoSize = true; lblConfHost.Location = new Point(0x10, 0x2d); lblConfHost.Name = "lblConfHost"; lblConfHost.Size = new Size(100, 13); lblConfHost.TabIndex = 0x1f9; lblConfHost.Text = "Host Name/IP/URL:"; txtConfHost.BorderStyle = BorderStyle.FixedSingle; txtConfHost.Location = new Point(0x74, 0x29); txtConfHost.Name = "txtConfHost"; txtConfHost.Size = new Size(0xd1, 0x15); txtConfHost.TabIndex = 510; panel_connections.Controls.Add(panel_connectionlist); panel_connections.Controls.Add(panel_connectiontop); panel_connections.Dock = DockStyle.Left; panel_connections.Location = new Point(0, 0); panel_connections.Name = "panel_connections"; panel_connections.Size = new Size(0x1f5, 0x2a7); panel_connections.TabIndex = 0; panel_connectionlist.Controls.Add(groupBox_connections); panel_connectionlist.Dock = DockStyle.Fill; panel_connectionlist.Location = new Point(0, 40); panel_connectionlist.Name = "panel_connectionlist"; panel_connectionlist.Size = new Size(0x1f5, 0x27f); panel_connectionlist.TabIndex = 3; groupBox_connections.Controls.Add(treeView_connections); groupBox_connections.Dock = DockStyle.Fill; groupBox_connections.Location = new Point(0, 0); groupBox_connections.Name = "groupBox_connections"; groupBox_connections.Size = new Size(0x1f5, 0x27f); groupBox_connections.TabIndex = 1; groupBox_connections.TabStop = false; groupBox_connections.Text = "Connections"; treeView_connections.ContextMenuStrip = conMenu; treeView_connections.Dock = DockStyle.Fill; treeView_connections.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); treeView_connections.FullRowSelect = true; treeView_connections.HideSelection = false; treeView_connections.ImageIndex = 0; treeView_connections.ImageList = imageList_connections; treeView_connections.LabelEdit = true; treeView_connections.Location = new Point(3, 0x11); treeView_connections.Name = "treeView_connections"; treeNode1.Name = "Node0"; treeNode1.Tag = "G0"; treeNode1.Text = "Connections"; treeView_connections.Nodes.AddRange(new[] {treeNode1}); treeView_connections.SelectedImageIndex = 0; treeView_connections.ShowRootLines = false; treeView_connections.Size = new Size(0x1ef, 0x26b); treeView_connections.TabIndex = 0; treeView_connections.Tag = ""; treeView_connections.DoubleClick += treeView_connections_DoubleClick; treeView_connections.DragDrop += treeView_connections_DragDrop; treeView_connections.AfterSelect += treeView_connections_AfterSelect; treeView_connections.DragEnter += treeView_connections_DragEnter; treeView_connections.ItemDrag += treeView_connections_ItemDrag; panel_connectiontop.Controls.Add(groupBox_connection_operation); panel_connectiontop.Dock = DockStyle.Top; panel_connectiontop.Location = new Point(0, 0); panel_connectiontop.Name = "panel_connectiontop"; panel_connectiontop.Size = new Size(0x1f5, 40); panel_connectiontop.TabIndex = 2; groupBox_connection_operation.Controls.Add(button_delete); groupBox_connection_operation.Controls.Add(button_win_state); groupBox_connection_operation.Controls.Add(button_new_link); groupBox_connection_operation.Controls.Add(button_new_container); groupBox_connection_operation.Controls.Add(button_new_server); groupBox_connection_operation.Controls.Add(button_save_connection); groupBox_connection_operation.Dock = DockStyle.Fill; groupBox_connection_operation.Location = new Point(0, 0); groupBox_connection_operation.Name = "groupBox_connection_operation"; groupBox_connection_operation.Size = new Size(0x1f5, 40); groupBox_connection_operation.TabIndex = 0x2721; groupBox_connection_operation.TabStop = false; button_delete.FlatStyle = FlatStyle.Popup; button_delete.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); button_delete.ImageAlign = ContentAlignment.MiddleLeft; button_delete.ImageIndex = 7; button_delete.ImageList = imageList_connections; button_delete.Location = new Point(0x119, 11); button_delete.Name = "button_delete"; button_delete.Size = new Size(0x48, 0x18); button_delete.TabIndex = 0x2725; button_delete.Text = @"Delete"; button_delete.TextAlign = ContentAlignment.MiddleLeft; button_delete.TextImageRelation = TextImageRelation.ImageBeforeText; toolTip_window.SetToolTip(button_delete, "Import Favorite"); button_delete.UseVisualStyleBackColor = true; button_delete.Click += menDelete_Click; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(0x400, 700); base.Controls.Add(faTabStrip_all); base.FormBorderStyle = FormBorderStyle.Sizable; //base.Icon = (Icon) resources.GetObject("$this.Icon"); base.IsMdiContainer = true; base.KeyPreview = true; MaximumSize = new Size(0x400, 700); base.Name = "cRemote"; Text = "cRemote"; base.WindowState = FormWindowState.Normal; base.Load += cRemote_Load; conMenu.ResumeLayout(false); faTabStrip_all.EndInit(); faTabStrip_all.ResumeLayout(false); faTabStripItem_configs.ResumeLayout(false); panel_configs.ResumeLayout(false); panel_config_details.ResumeLayout(false); grpConfAppearance.ResumeLayout(false); grpConfAppearance.PerformLayout(); grpConfProtocol.ResumeLayout(false); grpConfProtocol.PerformLayout(); grpConfCredential.ResumeLayout(false); grpConfCredential.PerformLayout(); grpConfDisplay.ResumeLayout(false); grpConfDisplay.PerformLayout(); panel_connections.ResumeLayout(false); panel_connectionlist.ResumeLayout(false); groupBox_connections.ResumeLayout(false); panel_connectiontop.ResumeLayout(false); groupBox_connection_operation.ResumeLayout(false); base.ResumeLayout(false); base.StartPosition = FormStartPosition.Manual; base.FormBorderStyle = FormBorderStyle.Sizable; base.SizeGripStyle = SizeGripStyle.Show; }
private void InitializeComponent() { _trayIcon = new NotifyIcon { BalloonTipIcon = ToolTipIcon.Info, BalloonTipText = "Does nothing.", BalloonTipTitle = "MouseHook", Text = "MouseHook (MultipleMonitors)", Icon = Properties.Resources.Cursor }; //Optional - handle doubleclicks on the icon: _trayIcon.DoubleClick += TrayIcon_DoubleClick; //Optional - Add a context menu to the TrayIcon: _trayIconContextMenu = new ContextMenuStrip(); _closeMenuItem = new ToolStripMenuItem(); _trayIconContextMenu.SuspendLayout(); // // TrayIconContextMenu // this._trayIconContextMenu.Items.AddRange(new ToolStripItem[] { this._closeMenuItem}); this._trayIconContextMenu.Name = "_trayIconContextMenu"; this._trayIconContextMenu.Size = new Size(153, 70); // // CloseMenuItem // this._closeMenuItem.Name = "_closeMenuItem"; this._closeMenuItem.Size = new Size(152, 22); this._closeMenuItem.Text = "Close MouseHook"; this._closeMenuItem.Click += new EventHandler(this.CloseMenuItem_Click); _trayIconContextMenu.ResumeLayout(false); _trayIcon.ContextMenuStrip = _trayIconContextMenu; }
private ContextMenuStrip CreateNotifyIconMenu() { var notifyIconMenu = new System.Windows.Forms.ContextMenuStrip(); notifyIconMenu.SuspendLayout(); notifyIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { CreateShowHelp(), CreateVersionCheck(), CreateSeparator(), CreateShowHTMLUI(), CreateShowGUI(), CreateSeparator(), CreateQuit(), }); notifyIconMenu.ShowImageMargin = false; notifyIconMenu.ResumeLayout(false); return notifyIconMenu; }
private void InitMenus() { basicMenuStrip = new ContextMenuStrip(); basicMenuStrip.SuspendLayout(); basicMenuStrip.Name = "basicMenuStrip"; basicMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(basicMenuStrip_Opening); basicMenuStripAddChild = new ToolStripMenuItem(); basicMenuStripAddChild.Text = "Insert &child"; basicMenuStripAddChild.Click += new EventHandler(basicMenuStripAddChild_Click); basicMenuStripAddParent = new ToolStripMenuItem(); basicMenuStripAddParent.Text = "Insert &parent"; basicMenuStripAddParent.Click += new EventHandler(basicMenuStripAddParent_Click); basicMenuStripDeleteItem = new ToolStripMenuItem(); basicMenuStripDeleteItem.Text = "&Delete"; basicMenuStripDeleteItem.Click += new EventHandler(basicMenuStripDeleteItem_Click); //--------------------- basicMenuStripCut = new ToolStripMenuItem(); basicMenuStripCut.Text = "C&ut"; basicMenuStripCut.Click += new EventHandler(basicMenuStripCut_Click); basicMenuStripCopy = new ToolStripMenuItem(); basicMenuStripCopy.Text = "C&opy"; basicMenuStripCopy.Click += new EventHandler(basicMenuStripCopy_Click); basicMenuStripPaste = new ToolStripMenuItem(); basicMenuStripPaste.Text = "P&aste"; basicMenuStripPaste.Click += new EventHandler(basicMenuStripPaste_Click); basicMenuStripAddTrace = new ToolStripMenuItem(); basicMenuStripAddTrace.Text = "Add &trace from here..."; basicMenuStripAddTrace.Click += new EventHandler(basicMenuStripAddTrace_Click); basicMenuStripDecorate = new ToolStripMenuItem(); basicMenuStripDecorate.Text = "D&ecoration..."; basicMenuStripDecorate.Click += new EventHandler(basicMenuStripDecorate_Click); basicMenuStrip.Items.AddRange(new ToolStripItem[] { basicMenuStripAddChild, basicMenuStripAddParent, basicMenuStripDeleteItem, new ToolStripSeparator(), basicMenuStripCut, basicMenuStripCopy, basicMenuStripPaste, new ToolStripSeparator(), basicMenuStripAddTrace, basicMenuStripDecorate, }); basicMenuStrip.ResumeLayout(false); }
private void InitializeComponent() { _components = new System.ComponentModel.Container(); Load += Config_Load; SystemColorsChanged += Config_SystemColorsChanged; _pGrid = new FilteredPropertyGrid(); _pGrid.PropertyValueChanged += pGrid_PropertyValueChanged; _pGrid.PropertySortChanged += pGrid_PropertySortChanged; PropertyGridContextMenu = new ContextMenuStrip(_components); PropertyGridContextMenu.Opening += propertyGridContextMenu_Opening; _propertyGridContextMenuReset = new ToolStripMenuItem(); _propertyGridContextMenuReset.Click += propertyGridContextMenuReset_Click; _toolStripSeparator1 = new ToolStripSeparator(); _propertyGridContextMenuShowHelpText = new ToolStripMenuItem(); _propertyGridContextMenuShowHelpText.Click += propertyGridContextMenuShowHelpText_Click; _propertyGridContextMenuShowHelpText.CheckedChanged += propertyGridContextMenuShowHelpText_CheckedChanged; _btnShowInheritance = new ToolStripButton(); _btnShowInheritance.Click += btnShowInheritance_Click; _btnShowDefaultInheritance = new ToolStripButton(); _btnShowDefaultInheritance.Click += btnShowDefaultInheritance_Click; _btnShowProperties = new ToolStripButton(); _btnShowProperties.Click += btnShowProperties_Click; _btnShowDefaultProperties = new ToolStripButton(); _btnShowDefaultProperties.Click += btnShowDefaultProperties_Click; _btnIcon = new ToolStripButton(); _btnIcon.MouseUp += btnIcon_Click; _btnHostStatus = new ToolStripButton(); _btnHostStatus.Click += btnHostStatus_Click; CMenIcons = new ContextMenuStrip(_components); PropertyGridContextMenu.SuspendLayout(); SuspendLayout(); // //pGrid // _pGrid.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right; _pGrid.BrowsableProperties = null; _pGrid.ContextMenuStrip = PropertyGridContextMenu; _pGrid.Font = new Font("Segoe UI", 8.25F, FontStyle.Regular, GraphicsUnit.Point, Convert.ToByte(0)); _pGrid.HiddenAttributes = null; _pGrid.HiddenProperties = null; _pGrid.Location = new Point(0, 0); _pGrid.Name = "_pGrid"; _pGrid.PropertySort = PropertySort.Categorized; _pGrid.Size = new Size(226, 530); _pGrid.TabIndex = 0; _pGrid.UseCompatibleTextRendering = true; // //propertyGridContextMenu // PropertyGridContextMenu.Items.AddRange(new ToolStripItem[] { _propertyGridContextMenuReset, _toolStripSeparator1, _propertyGridContextMenuShowHelpText }); PropertyGridContextMenu.Name = "PropertyGridContextMenu"; PropertyGridContextMenu.Size = new Size(157, 76); // //propertyGridContextMenuReset // _propertyGridContextMenuReset.Name = "_propertyGridContextMenuReset"; _propertyGridContextMenuReset.Size = new Size(156, 22); _propertyGridContextMenuReset.Text = @"&Reset"; // //ToolStripSeparator1 // _toolStripSeparator1.Name = "_toolStripSeparator1"; _toolStripSeparator1.Size = new Size(153, 6); // //propertyGridContextMenuShowHelpText // _propertyGridContextMenuShowHelpText.Name = "_propertyGridContextMenuShowHelpText"; _propertyGridContextMenuShowHelpText.Size = new Size(156, 22); _propertyGridContextMenuShowHelpText.Text = @"&Show Help Text"; // //btnShowInheritance // _btnShowInheritance.DisplayStyle = ToolStripItemDisplayStyle.Image; _btnShowInheritance.Image = Resources.Inheritance; _btnShowInheritance.ImageTransparentColor = Color.Magenta; _btnShowInheritance.Name = "_btnShowInheritance"; _btnShowInheritance.Size = new Size(23, 22); _btnShowInheritance.Text = @"Inheritance"; // //btnShowDefaultInheritance // _btnShowDefaultInheritance.DisplayStyle = ToolStripItemDisplayStyle.Image; _btnShowDefaultInheritance.Image = Resources.Inheritance_Default; _btnShowDefaultInheritance.ImageTransparentColor = Color.Magenta; _btnShowDefaultInheritance.Name = "_btnShowDefaultInheritance"; _btnShowDefaultInheritance.Size = new Size(23, 22); _btnShowDefaultInheritance.Text = @"Default Inheritance"; // //btnShowProperties // _btnShowProperties.Checked = true; _btnShowProperties.CheckState = CheckState.Checked; _btnShowProperties.DisplayStyle = ToolStripItemDisplayStyle.Image; _btnShowProperties.Image = Resources.Properties; _btnShowProperties.ImageTransparentColor = Color.Magenta; _btnShowProperties.Name = "_btnShowProperties"; _btnShowProperties.Size = new Size(23, 22); _btnShowProperties.Text = @"Properties"; // //btnShowDefaultProperties // _btnShowDefaultProperties.DisplayStyle = ToolStripItemDisplayStyle.Image; _btnShowDefaultProperties.Image = Resources.Properties_Default; _btnShowDefaultProperties.ImageTransparentColor = Color.Magenta; _btnShowDefaultProperties.Name = "_btnShowDefaultProperties"; _btnShowDefaultProperties.Size = new Size(23, 22); _btnShowDefaultProperties.Text = @"Default Properties"; // //btnIcon // _btnIcon.Alignment = ToolStripItemAlignment.Right; _btnIcon.DisplayStyle = ToolStripItemDisplayStyle.Image; _btnIcon.ImageTransparentColor = Color.Magenta; _btnIcon.Name = "_btnIcon"; _btnIcon.Size = new Size(23, 22); _btnIcon.Text = @"Icon"; // //btnHostStatus // _btnHostStatus.Alignment = ToolStripItemAlignment.Right; _btnHostStatus.DisplayStyle = ToolStripItemDisplayStyle.Image; _btnHostStatus.Image = Resources.HostStatus_Check; _btnHostStatus.ImageTransparentColor = Color.Magenta; _btnHostStatus.Name = "_btnHostStatus"; _btnHostStatus.Size = new Size(23, 22); _btnHostStatus.Tag = "checking"; _btnHostStatus.Text = @"Status"; // //cMenIcons // CMenIcons.Name = "CMenIcons"; CMenIcons.Size = new Size(61, 4); // //Config // ClientSize = new Size(226, 530); Controls.Add(_pGrid); Font = new Font("Segoe UI", 8.25F, FontStyle.Regular, GraphicsUnit.Point, Convert.ToByte(0)); HideOnClose = true; Icon = Resources.Config_Icon; Name = "ConfigWindow"; TabText = @"Config"; Text = @"Config"; PropertyGridContextMenu.ResumeLayout(false); ResumeLayout(false); }
private void InitializeComponent() { var container = new ControlContainer(); notifyIcon1 = new NotifyIcon(container); contextMenuStrip1 = new ContextMenuStrip(container); VisaGanttMeny = new ToolStripMenuItem("Ganttschema"); VisaSpektrumMeny = new ToolStripMenuItem("Spektrumdiagram"); AvslutaApplikationMeny = new ToolStripMenuItem("Avsluta"); VisaVeckoöversiktMeny = new ToolStripMenuItem("Veckoöversikt"); toolStripMenuItem1 = new ToolStripSeparator(); notifyIcon1.ContextMenuStrip = this.contextMenuStrip1; notifyIcon1.Visible = true; contextMenuStrip1.Items.AddRange(new ToolStripItem[] { VisaGanttMeny, VisaVeckoöversiktMeny, VisaSpektrumMeny, toolStripMenuItem1, AvslutaApplikationMeny}); contextMenuStrip1.ResumeLayout(false); }
private void InitializeComponent() { ContextMenuStrip menu = new ContextMenuStrip(); menu.SuspendLayout(); menu.Items.AddRange(new ToolStripItem[]{ new ToolStripMenuItem("Button 1", null, new ToolStripMenuItem("Click", null, delegate(object s, EventArgs e) { this.chip.ButtonClick(0); }), new ToolStripMenuItem("Down", null, delegate(object s, EventArgs e) { this.chip.ButtonDown (0); }), new ToolStripMenuItem("Up", null, delegate(object s, EventArgs e) { this.chip.ButtonUp (0); }) ), new ToolStripMenuItem("Button 2", null, new ToolStripMenuItem("Click", null, delegate(object s, EventArgs e) { this.chip.ButtonClick(1); }), new ToolStripMenuItem("Down", null, delegate(object s, EventArgs e) { this.chip.ButtonDown (1); }), new ToolStripMenuItem("Up", null, delegate(object s, EventArgs e) { this.chip.ButtonUp (1); }) ), new ToolStripMenuItem("Button 3", null, new ToolStripMenuItem("Click", null, delegate(object s, EventArgs e) { this.chip.ButtonClick(2); }), new ToolStripMenuItem("Down", null, delegate(object s, EventArgs e) { this.chip.ButtonDown (2); }), new ToolStripMenuItem("Up", null, delegate(object s, EventArgs e) { this.chip.ButtonUp (2); }) ), new ToolStripMenuItem("Button 4", null, new ToolStripMenuItem("Click", null, delegate(object s, EventArgs e) { this.chip.ButtonClick(3); }), new ToolStripMenuItem("Down", null, delegate(object s, EventArgs e) { this.chip.ButtonDown (3); }), new ToolStripMenuItem("Up", null, delegate(object s, EventArgs e) { this.chip.ButtonUp (3); }) ), new ToolStripMenuItem("Button 5", null, new ToolStripMenuItem("Click", null, delegate(object s, EventArgs e) { this.chip.ButtonClick(4); }), new ToolStripMenuItem("Down", null, delegate(object s, EventArgs e) { this.chip.ButtonDown (4); }), new ToolStripMenuItem("Up", null, delegate(object s, EventArgs e) { this.chip.ButtonUp (4); }) ), new ToolStripMenuItem("Exit", null, this.exit), }); menu.ResumeLayout(false); this.SuspendLayout(); this.ContextMenuStrip = menu; this.FormBorderStyle = FormBorderStyle.None; this.ShowInTaskbar = false; this.DoubleBuffered = true; this.Text = "LCD Display"; this.ResumeLayout(false); }
private void InitializeComponent() { components = new Container(); dlgOpen = new OpenFileDialog(); dlgSave = new SaveFileDialog(); #if !MONO folderBrowserDialog1 = new Ookii.Dialogs.VistaFolderBrowserDialog(); #else folderBrowserDialog1 = new FolderBrowserDialog(); #endif pnlKeyframes = new Panel(); pnlBones = new Panel(); lstBones = new CheckedListBox(); boneTree = new TreeView(); panel1 = new Panel(); txtSearchBone = new TextBox(); chkContains = new CheckBox(); chkFlat = new CheckBox(); ctxBones = new ContextMenuStrip(components); nameToolStripMenuItem = new ToolStripMenuItem(); boneIndex = new ToolStripMenuItem(); renameBoneToolStripMenuItem = new ToolStripMenuItem(); ctxBonesDivider1 = new ToolStripSeparator(); addToParentToolStripMenuItem = new ToolStripMenuItem(); addToNextUpToolStripMenuItem = new ToolStripMenuItem(); addToNextDownToolStripMenuItem = new ToolStripMenuItem(); ctxBonesDivider2 = new ToolStripSeparator(); _moveUpToolStripMenuItem = new ToolStripMenuItem(); _moveDownToolStripMenuItem = new ToolStripMenuItem(); imageList1 = new ImageList(components); pnlKeyframes.SuspendLayout(); pnlBones.SuspendLayout(); panel1.SuspendLayout(); ctxBones.SuspendLayout(); SuspendLayout(); // // pnlKeyframes // pnlKeyframes.AutoScroll = true; pnlKeyframes.BorderStyle = BorderStyle.Fixed3D; pnlKeyframes.Controls.Add(pnlBones); pnlKeyframes.Dock = DockStyle.Fill; pnlKeyframes.Location = new Drawing.Point(0, 0); pnlKeyframes.Name = "pnlKeyframes"; pnlKeyframes.Size = new Drawing.Size(164, 398); pnlKeyframes.TabIndex = 26; // // pnlBones // pnlBones.Controls.Add(lstBones); pnlBones.Controls.Add(boneTree); pnlBones.Controls.Add(panel1); pnlBones.Dock = DockStyle.Fill; pnlBones.Location = new Drawing.Point(0, 0); pnlBones.Name = "pnlBones"; pnlBones.Size = new Drawing.Size(160, 394); pnlBones.TabIndex = 10; // // lstBones // lstBones.Dock = DockStyle.Fill; lstBones.FormattingEnabled = true; lstBones.IntegralHeight = false; lstBones.Location = new Drawing.Point(0, 21); lstBones.Name = "lstBones"; lstBones.Size = new Drawing.Size(160, 373); lstBones.TabIndex = 32; lstBones.ItemCheck += new ItemCheckEventHandler(lstBones_ItemCheck); lstBones.SelectedValueChanged += lstBones_SelectedValueChanged; lstBones.KeyDown += new KeyEventHandler(lstBones_KeyDown); lstBones.MouseDown += new MouseEventHandler(lstBones_MouseDown); // // boneTree // boneTree.CheckBoxes = true; boneTree.Dock = DockStyle.Fill; boneTree.FullRowSelect = true; boneTree.HideSelection = false; boneTree.HotTracking = true; boneTree.Indent = 14; boneTree.ItemHeight = 16; boneTree.Location = new Drawing.Point(0, 21); boneTree.Name = "boneTree"; boneTree.Size = new Drawing.Size(160, 373); boneTree.TabIndex = 29; boneTree.Visible = false; boneTree.AfterCheck += new TreeViewEventHandler(boneTree_AfterCheck); boneTree.AfterSelect += new TreeViewEventHandler(boneTree_AfterSelect); boneTree.MouseDown += new MouseEventHandler(lstBones_MouseDown); // // panel1 // panel1.Controls.Add(txtSearchBone); panel1.Controls.Add(chkContains); panel1.Controls.Add(chkFlat); panel1.Dock = DockStyle.Top; panel1.Location = new Drawing.Point(0, 0); panel1.Name = "panel1"; panel1.Size = new Drawing.Size(160, 21); panel1.TabIndex = 31; // // txtSearchBone // txtSearchBone.Dock = DockStyle.Fill; txtSearchBone.ForeColor = Color.Gray; txtSearchBone.Location = new Drawing.Point(44, 0); txtSearchBone.Name = "txtSearchBone"; txtSearchBone.Size = new Drawing.Size(46, 20); txtSearchBone.TabIndex = 30; txtSearchBone.Text = "Search for a bone..."; txtSearchBone.Visible = false; txtSearchBone.TextChanged += textBox1_TextChanged; txtSearchBone.Enter += textBox1_Enter; txtSearchBone.Leave += textBox1_Leave; // // chkContains // chkContains.AutoSize = true; chkContains.Dock = DockStyle.Right; chkContains.Location = new Drawing.Point(90, 0); chkContains.Margin = new Padding(0); chkContains.Name = "chkContains"; chkContains.Padding = new Padding(3, 0, 0, 0); chkContains.Size = new Drawing.Size(70, 21); chkContains.TabIndex = 32; chkContains.Text = "Contains"; chkContains.UseVisualStyleBackColor = false; chkContains.Visible = false; chkContains.CheckedChanged += chkContains_CheckedChanged; // // chkFlat // chkFlat.AutoSize = true; chkFlat.Checked = true; chkFlat.CheckState = CheckState.Checked; chkFlat.Dock = DockStyle.Left; chkFlat.Location = new Drawing.Point(0, 0); chkFlat.Margin = new Padding(0); chkFlat.Name = "chkFlat"; chkFlat.Padding = new Padding(1, 0, 0, 0); chkFlat.Size = new Drawing.Size(44, 21); chkFlat.TabIndex = 31; chkFlat.Text = "Flat"; chkFlat.UseVisualStyleBackColor = false; chkFlat.CheckedChanged += chkFlat_CheckedChanged; // // ctxBones // ctxBones.Items.AddRange(new ToolStripItem[] { nameToolStripMenuItem, boneIndex, renameBoneToolStripMenuItem, ctxBonesDivider1, addToParentToolStripMenuItem, addToNextUpToolStripMenuItem, addToNextDownToolStripMenuItem, ctxBonesDivider2, _moveUpToolStripMenuItem, _moveDownToolStripMenuItem }); ctxBones.Name = "ctxBones"; ctxBones.Size = new Drawing.Size(175, 192); // // nameToolStripMenuItem // nameToolStripMenuItem.Enabled = false; nameToolStripMenuItem.Name = "nameToolStripMenuItem"; nameToolStripMenuItem.Size = new Drawing.Size(174, 22); nameToolStripMenuItem.Text = "<name>"; // // boneIndex // boneIndex.Enabled = false; boneIndex.Name = "boneIndex"; boneIndex.Size = new Drawing.Size(174, 22); boneIndex.Text = "Bone Index"; // // renameBoneToolStripMenuItem // renameBoneToolStripMenuItem.Name = "renameBoneToolStripMenuItem"; renameBoneToolStripMenuItem.Size = new Drawing.Size(174, 22); renameBoneToolStripMenuItem.Text = "Rename"; renameBoneToolStripMenuItem.Click += renameBoneToolStripMenuItem_Click; // // ctxBonesDivider1 // ctxBonesDivider1.Name = "ctxBonesDivider1"; ctxBonesDivider1.Size = new Drawing.Size(171, 6); // // addToParentToolStripMenuItem // addToParentToolStripMenuItem.Name = "addToParentToolStripMenuItem"; addToParentToolStripMenuItem.Size = new Drawing.Size(174, 22); addToParentToolStripMenuItem.Text = "Add To Parent"; addToParentToolStripMenuItem.Click += addToParentToolStripMenuItem_Click; // // addToNextUpToolStripMenuItem // addToNextUpToolStripMenuItem.Name = "addToNextUpToolStripMenuItem"; addToNextUpToolStripMenuItem.Size = new Drawing.Size(174, 22); addToNextUpToolStripMenuItem.Text = "Add To Next Up"; addToNextUpToolStripMenuItem.Click += addToNextUpToolStripMenuItem_Click; // // addToNextDownToolStripMenuItem // addToNextDownToolStripMenuItem.Name = "addToNextDownToolStripMenuItem"; addToNextDownToolStripMenuItem.Size = new Drawing.Size(174, 22); addToNextDownToolStripMenuItem.Text = "Add To Next Down"; addToNextDownToolStripMenuItem.Click += addToNextDownToolStripMenuItem_Click; // // ctxBonesDivider2 // ctxBonesDivider2.Name = "ctxBonesDivider2"; ctxBonesDivider2.Size = new Drawing.Size(171, 6); // // _moveUpToolStripMenuItem // _moveUpToolStripMenuItem.Name = "_moveUpToolStripMenuItem"; _moveUpToolStripMenuItem.Size = new Drawing.Size(174, 22); _moveUpToolStripMenuItem.Text = "Move Up"; _moveUpToolStripMenuItem.Click += _moveUpToolStripMenuItem_Click; // // _moveDownToolStripMenuItem // _moveDownToolStripMenuItem.Name = "_moveDownToolStripMenuItem"; _moveDownToolStripMenuItem.Size = new Drawing.Size(174, 22); _moveDownToolStripMenuItem.Text = "Move Down"; _moveDownToolStripMenuItem.Click += _moveDownToolStripMenuItem_Click; // // imageList1 // imageList1.ColorDepth = ColorDepth.Depth8Bit; imageList1.ImageSize = new Drawing.Size(16, 16); imageList1.TransparentColor = Color.Transparent; // // BonesPanel // Controls.Add(pnlKeyframes); Name = "BonesPanel"; Size = new Drawing.Size(164, 398); SizeChanged += BonesPanel_SizeChanged; pnlKeyframes.ResumeLayout(false); pnlBones.ResumeLayout(false); panel1.ResumeLayout(false); panel1.PerformLayout(); ctxBones.ResumeLayout(false); ResumeLayout(false); }
private void InitializeComponent() { cmsHistory = new ContextMenuStrip(); tsmiOpen = new ToolStripMenuItem(); tsmiOpenURL = new ToolStripMenuItem(); tsmiOpenShortenedURL = new ToolStripMenuItem(); tsmiOpenThumbnailURL = new ToolStripMenuItem(); tsmiOpenDeletionURL = new ToolStripMenuItem(); tssOpen1 = new ToolStripSeparator(); tsmiOpenFile = new ToolStripMenuItem(); tsmiOpenFolder = new ToolStripMenuItem(); tsmiCopy = new ToolStripMenuItem(); tsmiCopyURL = new ToolStripMenuItem(); tsmiCopyShortenedURL = new ToolStripMenuItem(); tsmiCopyThumbnailURL = new ToolStripMenuItem(); tsmiCopyDeletionURL = new ToolStripMenuItem(); tssCopy1 = new ToolStripSeparator(); tsmiCopyFile = new ToolStripMenuItem(); tsmiCopyImage = new ToolStripMenuItem(); tsmiCopyText = new ToolStripMenuItem(); tssCopy2 = new ToolStripSeparator(); tsmiCopyHTMLLink = new ToolStripMenuItem(); tsmiCopyHTMLImage = new ToolStripMenuItem(); tsmiCopyHTMLLinkedImage = new ToolStripMenuItem(); tssCopy3 = new ToolStripSeparator(); tsmiCopyForumLink = new ToolStripMenuItem(); tsmiCopyForumImage = new ToolStripMenuItem(); tsmiCopyForumLinkedImage = new ToolStripMenuItem(); tssCopy4 = new ToolStripSeparator(); tsmiCopyFilePath = new ToolStripMenuItem(); tsmiCopyFileName = new ToolStripMenuItem(); tsmiCopyFileNameWithExtension = new ToolStripMenuItem(); tsmiCopyFolder = new ToolStripMenuItem(); tsmiShow = new ToolStripMenuItem(); tsmiShowImagePreview = new ToolStripMenuItem(); tsmiShowMoreInfo = new ToolStripMenuItem(); cmsHistory.SuspendLayout(); // // cmsHistory // cmsHistory.Items.AddRange(new ToolStripItem[] { tsmiOpen, tsmiCopy, tsmiShow }); cmsHistory.Name = "cmsHistory"; cmsHistory.ShowImageMargin = false; cmsHistory.Size = new Size(128, 92); cmsHistory.Enabled = false; // // tsmiOpen // tsmiOpen.DropDownItems.AddRange(new ToolStripItem[] { tsmiOpenURL, tsmiOpenShortenedURL, tsmiOpenThumbnailURL, tsmiOpenDeletionURL, tssOpen1, tsmiOpenFile, tsmiOpenFolder }); tsmiOpen.Name = "tsmiOpen"; tsmiOpen.Size = new Size(127, 22); tsmiOpen.Text = Resources.HistoryItemManager_InitializeComponent_Open; // // tsmiOpenURL // tsmiOpenURL.Name = "tsmiOpenURL"; tsmiOpenURL.Size = new Size(156, 22); tsmiOpenURL.Text = Resources.HistoryItemManager_InitializeComponent_URL; tsmiOpenURL.Click += tsmiOpenURL_Click; // // tsmiOpenShortenedURL // tsmiOpenShortenedURL.Name = "tsmiOpenShortenedURL"; tsmiOpenShortenedURL.Size = new Size(156, 22); tsmiOpenShortenedURL.Text = Resources.HistoryItemManager_InitializeComponent_Shortened_URL; tsmiOpenShortenedURL.Click += tsmiOpenShortenedURL_Click; // // tsmiOpenThumbnailURL // tsmiOpenThumbnailURL.Name = "tsmiOpenThumbnailURL"; tsmiOpenThumbnailURL.Size = new Size(156, 22); tsmiOpenThumbnailURL.Text = Resources.HistoryItemManager_InitializeComponent_Thumbnail_URL; tsmiOpenThumbnailURL.Click += tsmiOpenThumbnailURL_Click; // // tsmiOpenDeletionURL // tsmiOpenDeletionURL.Name = "tsmiOpenDeletionURL"; tsmiOpenDeletionURL.Size = new Size(156, 22); tsmiOpenDeletionURL.Text = Resources.HistoryItemManager_InitializeComponent_Deletion_URL; tsmiOpenDeletionURL.Click += tsmiOpenDeletionURL_Click; // // tssOpen1 // tssOpen1.Name = "tssOpen1"; tssOpen1.Size = new Size(153, 6); // // tsmiOpenFile // tsmiOpenFile.Name = "tsmiOpenFile"; tsmiOpenFile.Size = new Size(156, 22); tsmiOpenFile.Text = Resources.HistoryItemManager_InitializeComponent_File; tsmiOpenFile.Click += tsmiOpenFile_Click; // // tsmiOpenFolder // tsmiOpenFolder.Name = "tsmiOpenFolder"; tsmiOpenFolder.Size = new Size(156, 22); tsmiOpenFolder.Text = Resources.HistoryItemManager_InitializeComponent_Folder; tsmiOpenFolder.Click += tsmiOpenFolder_Click; // // tsmiCopy // tsmiCopy.DropDownItems.AddRange(new ToolStripItem[] { tsmiCopyURL, tsmiCopyShortenedURL, tsmiCopyThumbnailURL, tsmiCopyDeletionURL, tssCopy1, tsmiCopyFile, tsmiCopyImage, tsmiCopyText, tssCopy2, tsmiCopyHTMLLink, tsmiCopyHTMLImage, tsmiCopyHTMLLinkedImage, tssCopy3, tsmiCopyForumLink, tsmiCopyForumImage, tsmiCopyForumLinkedImage, tssCopy4, tsmiCopyFilePath, tsmiCopyFileName, tsmiCopyFileNameWithExtension, tsmiCopyFolder }); tsmiCopy.Name = "tsmiCopy"; tsmiCopy.Size = new Size(127, 22); tsmiCopy.Text = Resources.HistoryItemManager_InitializeComponent_Copy; // // tsmiCopyURL // tsmiCopyURL.Name = "tsmiCopyURL"; tsmiCopyURL.Size = new Size(233, 22); tsmiCopyURL.Text = Resources.HistoryItemManager_InitializeComponent_URL; tsmiCopyURL.Click += tsmiCopyURL_Click; // // tsmiCopyShortenedURL // tsmiCopyShortenedURL.Name = "tsmiCopyShortenedURL"; tsmiCopyShortenedURL.Size = new Size(233, 22); tsmiCopyShortenedURL.Text = Resources.HistoryItemManager_InitializeComponent_Shortened_URL; tsmiCopyShortenedURL.Click += tsmiCopyShortenedURL_Click; // // tsmiCopyThumbnailURL // tsmiCopyThumbnailURL.Name = "tsmiCopyThumbnailURL"; tsmiCopyThumbnailURL.Size = new Size(233, 22); tsmiCopyThumbnailURL.Text = Resources.HistoryItemManager_InitializeComponent_Thumbnail_URL; tsmiCopyThumbnailURL.Click += tsmiCopyThumbnailURL_Click; // // tsmiCopyDeletionURL // tsmiCopyDeletionURL.Name = "tsmiCopyDeletionURL"; tsmiCopyDeletionURL.Size = new Size(233, 22); tsmiCopyDeletionURL.Text = Resources.HistoryItemManager_InitializeComponent_Deletion_URL; tsmiCopyDeletionURL.Click += tsmiCopyDeletionURL_Click; // // tssCopy1 // tssCopy1.Name = "tssCopy1"; tssCopy1.Size = new Size(230, 6); // // tsmiCopyFile // tsmiCopyFile.Name = "tsmiCopyFile"; tsmiCopyFile.Size = new Size(233, 22); tsmiCopyFile.Text = Resources.HistoryItemManager_InitializeComponent_File; tsmiCopyFile.Click += tsmiCopyFile_Click; // // tsmiCopyImage // tsmiCopyImage.Name = "tsmiCopyImage"; tsmiCopyImage.Size = new Size(233, 22); tsmiCopyImage.Text = Resources.HistoryItemManager_InitializeComponent_Image; tsmiCopyImage.Click += tsmiCopyImage_Click; // // tsmiCopyText // tsmiCopyText.Name = "tsmiCopyText"; tsmiCopyText.Size = new Size(233, 22); tsmiCopyText.Text = Resources.HistoryItemManager_InitializeComponent_Text; tsmiCopyText.Click += tsmiCopyText_Click; // // tssCopy2 // tssCopy2.Name = "tssCopy2"; tssCopy2.Size = new Size(230, 6); // // tsmiCopyHTMLLink // tsmiCopyHTMLLink.Name = "tsmiCopyHTMLLink"; tsmiCopyHTMLLink.Size = new Size(233, 22); tsmiCopyHTMLLink.Text = Resources.HistoryItemManager_InitializeComponent_HTML_link; tsmiCopyHTMLLink.Click += tsmiCopyHTMLLink_Click; // // tsmiCopyHTMLImage // tsmiCopyHTMLImage.Name = "tsmiCopyHTMLImage"; tsmiCopyHTMLImage.Size = new Size(233, 22); tsmiCopyHTMLImage.Text = Resources.HistoryItemManager_InitializeComponent_HTML_image; tsmiCopyHTMLImage.Click += tsmiCopyHTMLImage_Click; // // tsmiCopyHTMLLinkedImage // tsmiCopyHTMLLinkedImage.Name = "tsmiCopyHTMLLinkedImage"; tsmiCopyHTMLLinkedImage.Size = new Size(233, 22); tsmiCopyHTMLLinkedImage.Text = Resources.HistoryItemManager_InitializeComponent_HTML_linked_image; tsmiCopyHTMLLinkedImage.Click += tsmiCopyHTMLLinkedImage_Click; // // tssCopy3 // tssCopy3.Name = "tssCopy3"; tssCopy3.Size = new Size(230, 6); // // tsmiCopyForumLink // tsmiCopyForumLink.Name = "tsmiCopyForumLink"; tsmiCopyForumLink.Size = new Size(233, 22); tsmiCopyForumLink.Text = Resources.HistoryItemManager_InitializeComponent_Forum__BBCode__link; tsmiCopyForumLink.Click += tsmiCopyForumLink_Click; // // tsmiCopyForumImage // tsmiCopyForumImage.Name = "tsmiCopyForumImage"; tsmiCopyForumImage.Size = new Size(233, 22); tsmiCopyForumImage.Text = Resources.HistoryItemManager_InitializeComponent_Forum__BBCode__image; tsmiCopyForumImage.Click += tsmiCopyForumImage_Click; // // tsmiCopyForumLinkedImage // tsmiCopyForumLinkedImage.Name = "tsmiCopyForumLinkedImage"; tsmiCopyForumLinkedImage.Size = new Size(233, 22); tsmiCopyForumLinkedImage.Text = Resources.HistoryItemManager_InitializeComponent_Forum__BBCode__linked_image; tsmiCopyForumLinkedImage.Click += tsmiCopyForumLinkedImage_Click; // // tssCopy4 // tssCopy4.Name = "tssCopy4"; tssCopy4.Size = new Size(230, 6); // // tsmiCopyFilePath // tsmiCopyFilePath.Name = "tsmiCopyFilePath"; tsmiCopyFilePath.Size = new Size(233, 22); tsmiCopyFilePath.Text = Resources.HistoryItemManager_InitializeComponent_File_path; tsmiCopyFilePath.Click += tsmiCopyFilePath_Click; // // tsmiCopyFileName // tsmiCopyFileName.Name = "tsmiCopyFileName"; tsmiCopyFileName.Size = new Size(233, 22); tsmiCopyFileName.Text = Resources.HistoryItemManager_InitializeComponent_File_name; tsmiCopyFileName.Click += tsmiCopyFileName_Click; // // tsmiCopyFileNameWithExtension // tsmiCopyFileNameWithExtension.Name = "tsmiCopyFileNameWithExtension"; tsmiCopyFileNameWithExtension.Size = new Size(233, 22); tsmiCopyFileNameWithExtension.Text = Resources.HistoryItemManager_InitializeComponent_File_name_with_extension; tsmiCopyFileNameWithExtension.Click += tsmiCopyFileNameWithExtension_Click; // // tsmiCopyFolder // tsmiCopyFolder.Name = "tsmiCopyFolder"; tsmiCopyFolder.Size = new Size(233, 22); tsmiCopyFolder.Text = Resources.HistoryItemManager_InitializeComponent_Folder; tsmiCopyFolder.Click += tsmiCopyFolder_Click; // // tsmiShow // tsmiShow.DropDownItems.AddRange(new ToolStripItem[] { tsmiShowImagePreview, tsmiShowMoreInfo }); tsmiShow.Name = "tsmiShow"; tsmiShow.Size = new Size(127, 22); tsmiShow.Text = Resources.HistoryItemManager_InitializeComponent_Show; // // tsmiShowImagePreview // tsmiShowImagePreview.Name = "tsmiShowImagePreview"; tsmiShowImagePreview.Size = new Size(127, 22); tsmiShowImagePreview.Text = Resources.HistoryItemManager_InitializeComponent_Image_preview; tsmiShowImagePreview.Click += tsmiShowImagePreview_Click; // // tsmiShowMoreInfo // tsmiShowMoreInfo.Name = "tsmiShowMoreInfo"; tsmiShowMoreInfo.Size = new Size(127, 22); tsmiShowMoreInfo.Text = Resources.HistoryItemManager_InitializeComponent_More_info; tsmiShowMoreInfo.Click += tsmiShowMoreInfo_Click; cmsHistory.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify the contents of this method with the /// code editor. /// </summary> private void InitializeComponent() { components = new System.ComponentModel.Container(); System.Windows.Forms.Label label1; System.Windows.Forms.Label label2; System.Windows.Forms.Label label3; System.Windows.Forms.ContextMenuStrip contextMenuStrip; System.Windows.Forms.ToolStripMenuItem expandAllToolStripMenuItem; System.Windows.Forms.ToolStripMenuItem closeAllToolStripMenuItem; System.Windows.Forms.Label label4; m_TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); m_ComboBoxID = new System.Windows.Forms.ComboBox(); m_ComboBoxParentID = new System.Windows.Forms.ComboBox(); m_TreeView = new CsvTools.MultiselectTreeView(); m_TextBoxValue = new System.Windows.Forms.TextBox(); m_ComboBoxDisplay2 = new System.Windows.Forms.ComboBox(); m_ComboBoxDisplay1 = new System.Windows.Forms.ComboBox(); label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); label3 = new System.Windows.Forms.Label(); contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(components); expandAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); closeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); label4 = new System.Windows.Forms.Label(); contextMenuStrip.SuspendLayout(); m_TableLayoutPanel1.SuspendLayout(); SuspendLayout(); // // label1 // label1.Anchor = System.Windows.Forms.AnchorStyles.Right; label1.AutoSize = true; label1.Location = new System.Drawing.Point(49, 5); label1.Name = "label1"; label1.Size = new System.Drawing.Size(18, 13); label1.TabIndex = 3; label1.Text = "ID"; // // label2 // label2.Anchor = System.Windows.Forms.AnchorStyles.Right; label2.AutoSize = true; label2.Location = new System.Drawing.Point(26, 29); label2.Name = "label2"; label2.Size = new System.Drawing.Size(41, 13); label2.TabIndex = 5; label2.Text = "Display"; // // label3 // label3.Anchor = System.Windows.Forms.AnchorStyles.Right; label3.AutoSize = true; label3.Location = new System.Drawing.Point(15, 53); label3.Name = "label3"; label3.Size = new System.Drawing.Size(52, 13); label3.TabIndex = 7; label3.Text = "Parent ID"; // // contextMenuStrip // contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { expandAllToolStripMenuItem, closeAllToolStripMenuItem }); contextMenuStrip.Name = "contextMenuStrip"; contextMenuStrip.Size = new System.Drawing.Size(125, 48); // // expandAllToolStripMenuItem // expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem"; expandAllToolStripMenuItem.Size = new System.Drawing.Size(124, 22); expandAllToolStripMenuItem.Text = "Expand All"; expandAllToolStripMenuItem.Click += new System.EventHandler(expandAllToolStripMenuItem_Click); // // closeAllToolStripMenuItem // closeAllToolStripMenuItem.Name = "closeAllToolStripMenuItem"; closeAllToolStripMenuItem.Size = new System.Drawing.Size(124, 22); closeAllToolStripMenuItem.Text = "Close All"; closeAllToolStripMenuItem.Click += new System.EventHandler(closeAllToolStripMenuItem_Click); // // label4 // label4.Anchor = System.Windows.Forms.AnchorStyles.Right; label4.AutoSize = true; label4.Location = new System.Drawing.Point(40, 77); label4.Name = "label4"; label4.Size = new System.Drawing.Size(27, 13); label4.TabIndex = 5; label4.Text = "Find"; // // m_TableLayoutPanel1 // m_TableLayoutPanel1.ColumnCount = 3; m_TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 70F)); m_TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); m_TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); m_TableLayoutPanel1.Controls.Add(label1, 0, 0); m_TableLayoutPanel1.Controls.Add(label2, 0, 1); m_TableLayoutPanel1.Controls.Add(label3, 0, 2); m_TableLayoutPanel1.Controls.Add(m_ComboBoxID, 1, 0); m_TableLayoutPanel1.Controls.Add(m_ComboBoxParentID, 1, 2); m_TableLayoutPanel1.Controls.Add(m_TreeView, 0, 4); m_TableLayoutPanel1.Controls.Add(m_TextBoxValue, 1, 3); m_TableLayoutPanel1.Controls.Add(label4, 0, 3); m_TableLayoutPanel1.Controls.Add(m_ComboBoxDisplay2, 2, 1); m_TableLayoutPanel1.Controls.Add(m_ComboBoxDisplay1, 1, 1); m_TableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; m_TableLayoutPanel1.Location = new System.Drawing.Point(0, 0); m_TableLayoutPanel1.Name = "m_TableLayoutPanel1"; m_TableLayoutPanel1.RowCount = 5; m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); m_TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); m_TableLayoutPanel1.Size = new System.Drawing.Size(458, 443); m_TableLayoutPanel1.TabIndex = 10; // // m_ComboBoxID // m_TableLayoutPanel1.SetColumnSpan(m_ComboBoxID, 2); m_ComboBoxID.Dock = System.Windows.Forms.DockStyle.Top; m_ComboBoxID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; m_ComboBoxID.FormattingEnabled = true; m_ComboBoxID.Location = new System.Drawing.Point(73, 3); m_ComboBoxID.Name = "m_ComboBoxID"; m_ComboBoxID.Size = new System.Drawing.Size(382, 21); m_ComboBoxID.TabIndex = 0; m_ComboBoxID.SelectedIndexChanged += new System.EventHandler(comboBox_SelectionChangeCommitted); // // m_ComboBoxParentID // m_TableLayoutPanel1.SetColumnSpan(m_ComboBoxParentID, 2); m_ComboBoxParentID.Dock = System.Windows.Forms.DockStyle.Top; m_ComboBoxParentID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; m_ComboBoxParentID.FormattingEnabled = true; m_ComboBoxParentID.Location = new System.Drawing.Point(73, 51); m_ComboBoxParentID.Name = "m_ComboBoxParentID"; m_ComboBoxParentID.Size = new System.Drawing.Size(382, 21); m_ComboBoxParentID.TabIndex = 1; m_ComboBoxParentID.SelectedIndexChanged += new System.EventHandler(comboBox_SelectionChangeCommitted); // // m_TreeView // m_TableLayoutPanel1.SetColumnSpan(m_TreeView, 3); m_TreeView.ContextMenuStrip = contextMenuStrip; m_TreeView.Dock = System.Windows.Forms.DockStyle.Fill; m_TreeView.Location = new System.Drawing.Point(3, 99); m_TreeView.Name = "m_TreeView"; m_TreeView.Size = new System.Drawing.Size(452, 341); m_TreeView.TabIndex = 9; // // m_TextBoxValue // m_TextBoxValue.Dock = System.Windows.Forms.DockStyle.Top; m_TextBoxValue.Location = new System.Drawing.Point(73, 75); m_TextBoxValue.Name = "m_TextBoxValue"; m_TextBoxValue.Size = new System.Drawing.Size(188, 20); m_TextBoxValue.TabIndex = 2; m_TextBoxValue.TextChanged += new System.EventHandler(textBox1_TextChanged); // // m_ComboBoxDisplay2 // m_ComboBoxDisplay2.Dock = System.Windows.Forms.DockStyle.Top; m_ComboBoxDisplay2.FormattingEnabled = true; m_ComboBoxDisplay2.Location = new System.Drawing.Point(267, 27); m_ComboBoxDisplay2.Name = "m_ComboBoxDisplay2"; m_ComboBoxDisplay2.Size = new System.Drawing.Size(188, 21); m_ComboBoxDisplay2.TabIndex = 15; // // m_ComboBoxDisplay1 // m_ComboBoxDisplay1.Dock = System.Windows.Forms.DockStyle.Top; m_ComboBoxDisplay1.FormattingEnabled = true; m_ComboBoxDisplay1.Location = new System.Drawing.Point(73, 27); m_ComboBoxDisplay1.Name = "m_ComboBoxDisplay1"; m_ComboBoxDisplay1.Size = new System.Drawing.Size(188, 21); m_ComboBoxDisplay1.TabIndex = 16; // // FormHierachyDisplay // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(458, 443); Controls.Add(m_TableLayoutPanel1); FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; MinimumSize = new System.Drawing.Size(384, 245); Name = "FormHierachyDisplay"; Text = "Hierarchy"; FormClosed += new System.Windows.Forms.FormClosedEventHandler(FormHierachyDisplay_FormClosed); Load += new System.EventHandler(HirachyDisplay_Load); contextMenuStrip.ResumeLayout(false); m_TableLayoutPanel1.ResumeLayout(false); m_TableLayoutPanel1.PerformLayout(); ResumeLayout(false); }
private void InitializeComponent() { TrayIcon = new NotifyIcon(); TrayIcon.BalloonTipIcon = ToolTipIcon.Info; TrayIcon.BalloonTipText = "For options use this tray icon."; TrayIcon.BalloonTipTitle = "KinectCamV2"; TrayIcon.Text = "KinectCam"; TrayIcon.Icon = IconExtractor.Extract(117, false); TrayIcon.DoubleClick += TrayIcon_DoubleClick; TrayIconContextMenu = new ContextMenuStrip(); MirroredMenuItem = new ToolStripMenuItem(); DesktopMenuItem = new ToolStripMenuItem(); TrayIconContextMenu.SuspendLayout(); // // TrayIconContextMenu // this.TrayIconContextMenu.Items.AddRange(new ToolStripItem[] { this.MirroredMenuItem, this.DesktopMenuItem }); this.TrayIconContextMenu.Name = "TrayIconContextMenu"; this.TrayIconContextMenu.Size = new Size(153, 70); // // MirroredMenuItem // this.MirroredMenuItem.Name = "Mirrored"; this.MirroredMenuItem.Size = new Size(152, 22); this.MirroredMenuItem.Text = "Mirrored"; this.MirroredMenuItem.Click += new EventHandler(this.MirroredMenuItem_Click); // // DesktopMenuItem // this.DesktopMenuItem.Name = "Desktop"; this.DesktopMenuItem.Size = new Size(152, 22); this.DesktopMenuItem.Text = "Desktop"; this.DesktopMenuItem.Click += new EventHandler(this.DesktopMenuItem_Click); TrayIconContextMenu.ResumeLayout(false); TrayIcon.ContextMenuStrip = TrayIconContextMenu; }
private ContextMenuStrip createContextMenuStrip(MyPictureBox pb) { ContextMenuStrip contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); contextMenuStrip1.SuspendLayout(); ToolStripMenuItem serverToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem torch = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem focus = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotate0 = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotate90 = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotate180 = new System.Windows.Forms.ToolStripMenuItem(); ToolStripMenuItem rotate270 = new System.Windows.Forms.ToolStripMenuItem(); contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { serverToolStripMenuItem,rotateToolStripMenuItem}); contextMenuStrip1.Size = new System.Drawing.Size(153, 48); // // rotateToolStripMenuItem // rotateToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { rotate0, rotate90, rotate180, rotate270}); rotateToolStripMenuItem.Size = new System.Drawing.Size(152, 22); rotateToolStripMenuItem.Text = "Rotate"; torch.Size = new System.Drawing.Size(152, 22); torch.Text = "LED"; torch.CheckOnClick = true; torch.CheckedChanged += (s, d) => { try { WebClient wc = new WebClient(); wc.DownloadString("http://" + (s as ToolStripMenuItem).OwnerItem.Text + ":8080/" + (!torch.Checked ? "disable" : "enable") + "torch"); } catch { } }; focus.Size = new System.Drawing.Size(152, 22); focus.Text = "Focus"; focus.CheckOnClick = true; focus.CheckedChanged += (s, d) => { try { WebClient wc = new WebClient(); wc.DownloadString("http://" + (s as ToolStripMenuItem).OwnerItem.Text + ":8080/" + (!focus.Checked ? "no" : "") + "focus"); } catch { } }; serverToolStripMenuItem.Size = new System.Drawing.Size(152, 22); serverToolStripMenuItem.Text = pb.pbInfo.Server; //http://192.168.1.8:8080/enabletorch //http://192.168.1.8:8080/focus //http://192.168.1.8:8080/disabletorch //http://192.168.1.8:8080/enabletorch serverToolStripMenuItem.Click += (s, d) => { Process.Start("http://" + (s as ToolStripMenuItem).Text + ":8080"); }; serverToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { torch, focus}); // // rotate0 // rotate0.Size = new System.Drawing.Size(152, 22); rotate0.Text = "0"; rotate0.Click += (a, b) => { pbInfo pbi = pb.pbInfo; pb.Image.RotateFlip(Stuff.getRotateFlipType(360-pbi.Rotate)); pbi.Rotate = 0; pb.Size = new Size(320, 240); pb.Refresh(); }; // // rotate90 // rotate90.Size = new System.Drawing.Size(152, 22); rotate90.Text = "90"; rotate90.Click += (a, b) => { pbInfo pbi = pb.pbInfo; pb.Image.RotateFlip(Stuff.getRotateFlipType(360 - pbi.Rotate)); pbi.Rotate = 90; pb.Size = new Size(240, 320); pb.Refresh(); }; // // rotate180 // rotate180.Size = new System.Drawing.Size(152, 22); rotate180.Text = "180"; rotate180.Click += (a, b) => { pbInfo pbi = pb.pbInfo; pb.Image.RotateFlip(Stuff.getRotateFlipType(360 - pbi.Rotate)); pbi.Rotate = 180; pb.Size = new Size(320, 240); pb.Refresh(); }; // // rotate270 // rotate270.Size = new System.Drawing.Size(152, 22); rotate270.Text = "270"; rotate270.Click += (a, b) => { pbInfo pbi = pb.pbInfo; pb.Image.RotateFlip(Stuff.getRotateFlipType(360 - pbi.Rotate)); pbi.Rotate = 270; pb.Size = new Size(240, 320); pb.Refresh(); }; contextMenuStrip1.ResumeLayout(); return contextMenuStrip1; }
/// <summary> /// /// </summary> protected void InitializeGUI() { EditingManager_cl.Instance.EditingEnabled = true; mShowEditorGUI = true; // Get the game window as a WinForm Form class Form windowForm = Control.FromHandle(FNA.Game_cl.BaseInstance.WindowHandle) as Form; windowForm.MouseUp += new MouseEventHandler(windowForm_MouseUp); windowForm.MouseLeave += new EventHandler(windowForm_MouseLeave); windowForm.MouseEnter += new EventHandler(windowForm_MouseEnter); mEditorMenuStrip = new MenuStrip(); mEditorMenuStrip.Dock = DockStyle.Top; mEditorMenuStrip.SuspendLayout(); mEditorStatusStrip = new StatusStrip(); mEditorStatusStrip.SuspendLayout(); mEditorStatusLabel = new ToolStripStatusLabel("Welcome to the World Editor!"); mMenuFile = new ToolStripMenuItem(); mMenuPanels = new ToolStripMenuItem(); mMenuView = new ToolStripMenuItem(); mMenuItemNewScene = new ToolStripMenuItem(); mMenuItemOpenScene = new ToolStripMenuItem(); mMenuItemSaveScene = new ToolStripMenuItem(); mMenuItemObjectPanel = new ToolStripMenuItem(); mMenuItemPrefabPanel = new ToolStripMenuItem(); mMenuItemDepthSnapping = new ToolStripMenuItem(); //mEditorMenuStrip.Dock = System.Windows.Forms.DockStyle.Top; mEditorMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { mMenuFile, mMenuPanels, mMenuView}); mEditorMenuStrip.Location = new System.Drawing.Point(0, 0); mEditorMenuStrip.Name = "mEditorMenuStrip"; mEditorMenuStrip.Padding = new System.Windows.Forms.Padding(4, 2, 0, 2); mEditorMenuStrip.Size = new System.Drawing.Size(windowForm.Width, 32); mEditorMenuStrip.TabIndex = 1; mEditorMenuStrip.Text = "mEditorMenuStrip"; mEditorStatusStrip.Dock = DockStyle.Bottom; mEditorStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { mEditorStatusLabel }); mEditorStatusStrip.TabStop = false; mEditorStatusLabel.Size = new Size(mEditorStatusStrip.Width, mEditorStatusStrip.Height); mMenuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { mMenuItemNewScene, mMenuItemOpenScene, mMenuItemSaveScene}); mMenuFile.Name = "mMenuFile"; mMenuFile.Size = new System.Drawing.Size(40, 20); mMenuFile.Text = "File"; mMenuPanels.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { mMenuItemObjectPanel, mMenuItemPrefabPanel}); mMenuPanels.Name = "mMenuPanels"; mMenuPanels.Size = new System.Drawing.Size(40, 20); mMenuPanels.Text = "Panels"; mMenuView.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { mMenuItemDepthSnapping}); mMenuView.Name = "mMenuView"; mMenuView.Size = new System.Drawing.Size(40, 20); mMenuView.Text = "View"; mMenuItemNewScene.Name = "mMenuItemNewScene"; mMenuItemNewScene.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); mMenuItemNewScene.Size = new System.Drawing.Size(200, 22); mMenuItemNewScene.Text = "New Scene"; mMenuItemNewScene.Click += new System.EventHandler(mMenuItemNewScene_Click); mMenuItemOpenScene.Name = "mMenuItemOpenScene"; mMenuItemOpenScene.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); mMenuItemOpenScene.Size = new System.Drawing.Size(200, 22); mMenuItemOpenScene.Text = "Open Scene"; mMenuItemOpenScene.Click += new System.EventHandler(mMenuItemOpenScene_Click); mMenuItemSaveScene.Name = "mMenuItemSaveScene"; mMenuItemSaveScene.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); mMenuItemSaveScene.Size = new System.Drawing.Size(200, 22); mMenuItemSaveScene.Text = "Save Scene"; mMenuItemSaveScene.Click += new System.EventHandler(mMenuItemSaveScene_Click); mMenuItemObjectPanel.Size = new System.Drawing.Size(200, 22); mMenuItemObjectPanel.Text = "Object Panel"; mMenuItemObjectPanel.Checked = true; mMenuItemObjectPanel.CheckOnClick = true; mMenuItemObjectPanel.Click += new System.EventHandler(mMenuItemObjectPanel_Click); mMenuItemPrefabPanel.Size = new System.Drawing.Size(200, 22); mMenuItemPrefabPanel.Text = "Prefab Panel"; mMenuItemPrefabPanel.Checked = true; mMenuItemPrefabPanel.CheckOnClick = true; mMenuItemPrefabPanel.Click += new System.EventHandler(mMenuItemPrefabPanel_Click); mMenuItemDepthSnapping.Size = new System.Drawing.Size(200, 22); mMenuItemDepthSnapping.Text = "Snap to Depth"; mMenuItemDepthSnapping.Checked = false; mMenuItemDepthSnapping.CheckOnClick = true; mMenuItemDepthSnapping.Click += new System.EventHandler(mMenuItemSnapping_Click); mEditorContextMenu = new ContextMenuStrip(new System.ComponentModel.Container()); /************************************************************************ * TODO: * Add images to the context menu items. * * Jay Sternfield - 2011/11/16 ************************************************************************/ mContextItemLoadPrefab = new ToolStripMenuItem("Load Prefab"); mContextItemAddTrigger = new ToolStripMenuItem("Add Trigger"); mContextItemAddParticle = new ToolStripMenuItem("Add Particle"); //mContextItemEditComponents = new ToolStripMenuItem("Edit Components"); mContextItemLoadPrefab.Click += new System.EventHandler(mContextItemLoadPrefab_Click); mContextItemAddTrigger.Click += new System.EventHandler(mContextItemAddTrigger_Click); mContextItemAddParticle.Click += new System.EventHandler(mContextItemAddParticle_Click); //mContextItemAddParticle.Click += new System.EventHandler(mContextItemAddParticle_Click); //mContextItemAddParticle.Click += new System.EventHandler(mContextItemAddParticle_Click); mEditorContextMenu.SuspendLayout(); mEditorContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { mContextItemLoadPrefab, mContextItemAddTrigger, mContextItemAddParticle}); mEditorContextMenu.Name = "mEditorContextMenu"; mEditorContextMenu.Size = new System.Drawing.Size(200, 28); mEditorContextMenu.MouseLeave += new EventHandler(mEditorContextMenu_MouseLeave); mObjectPanel = new Panel(); mObjectPanel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left); mObjectPanel.Size = new System.Drawing.Size(240, FNA.Game_cl.BaseInstance.WindowHeight - 22); mObjectPanel.Dock = DockStyle.Left; Panel titlePanel = new Panel(); titlePanel.Dock = DockStyle.Top; titlePanel.Size = new System.Drawing.Size(mObjectPanel.Width, 22); Label titleLabel = new Label(); titleLabel.Dock = DockStyle.Fill; titleLabel.Text = "Object Panel"; titlePanel.Controls.Add(titleLabel); mObjectPanelTree = new TreeView(); mObjectPanelTree.Dock = DockStyle.Fill; //mObjectPanelTree.AllowDrop = true; mObjectPanelTree.HideSelection = false; mObjectPanelTree.DoubleClick += new EventHandler(mObjectPanelTree_DoubleClick); mObjectPanelTree.AfterSelect += new TreeViewEventHandler(mObjectPanelTree_AfterSelect); //Splitter midSplitter = new Splitter(); //midSplitter.BackColor = System.Drawing.Color.DarkGray; //midSplitter.Dock = DockStyle.Bottom; mObjectPanelSplitter = new Splitter(); mObjectPanelSplitter.Dock = DockStyle.Right; mObjectPanelSplitter.SplitPosition = mObjectPanel.Width - 4; mObjectPanelSplitter.MouseDown += new MouseEventHandler(mObjectPanelSplitter_MouseDown); mObjectPanelSplitter.MouseUp += new MouseEventHandler(mObjectPanelSplitter_MouseUp); mObjectPanel.Controls.Add(mObjectPanelTree); mObjectPanel.Controls.Add(titlePanel); //mObjectPanel.Controls.Add(midSplitter); mObjectPanel.Controls.Add(mObjectPanelSplitter); mPrefabPanel = new Panel(); mPrefabPanel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); mPrefabPanel.Size = new System.Drawing.Size(240, FNA.Game_cl.BaseInstance.WindowHeight - 22); mPrefabPanel.Dock = DockStyle.Right; mPrefabPanelTree = new TreeView(); mPrefabPanelTree.Dock = DockStyle.Fill; //mPrefabPanelTree.AllowDrop = true; mPrefabPanelTree.HideSelection = false; mPrefabPanelTree.MouseDown += new MouseEventHandler(mPrefabPanelTree_MouseDown); mPrefabPanelTree.MouseClick += new MouseEventHandler(mPrefabPanelTree_MouseClick); titlePanel = new Panel(); titlePanel.Dock = DockStyle.Top; titlePanel.Size = new System.Drawing.Size(mPrefabPanel.Width, 22); titleLabel = new Label(); titleLabel.Dock = DockStyle.Fill; titleLabel.Text = "Prefab Panel"; titlePanel.Controls.Add(titleLabel); mPrefabPanelSplitter = new Splitter(); mPrefabPanelSplitter.Dock = DockStyle.Left; mPrefabPanelSplitter.SplitPosition = 4; mPrefabPanelSplitter.MouseDown += new MouseEventHandler(mPrefabPanelSplitter_MouseDown); mPrefabPanelSplitter.MouseUp += new MouseEventHandler(mPrefabPanelSplitter_MouseUp); mPrefabPanel.Controls.Add(mPrefabPanelTree); mPrefabPanel.Controls.Add(titlePanel); mPrefabPanel.Controls.Add(mPrefabPanelSplitter); windowForm.Controls.Add(mEditorMenuStrip); windowForm.Controls.Add(mEditorStatusStrip); windowForm.Controls.Add(mObjectPanel); windowForm.Controls.Add(mPrefabPanel); windowForm.MainMenuStrip = mEditorMenuStrip; windowForm.ContextMenuStrip = mEditorContextMenu; mEditorMenuStrip.ResumeLayout(false); mEditorMenuStrip.PerformLayout(); mEditorStatusStrip.ResumeLayout(false); mEditorStatusStrip.PerformLayout(); mEditorContextMenu.ResumeLayout(false); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(Oranikle.Studio.Controls.CtrlRichTextbox)); toolStrip1 = new System.Windows.Forms.ToolStrip(); bttnFont = new System.Windows.Forms.ToolStripButton(); bttnColour = new System.Windows.Forms.ToolStripButton(); bttnBackgroundColour = new System.Windows.Forms.ToolStripButton(); toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); bttnBold = new System.Windows.Forms.ToolStripButton(); bttnItalic = new System.Windows.Forms.ToolStripButton(); bttnUnderline = new System.Windows.Forms.ToolStripButton(); toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); bttnLeftAlign = new System.Windows.Forms.ToolStripButton(); bttnCentreAlign = new System.Windows.Forms.ToolStripButton(); bttnRightAlign = new System.Windows.Forms.ToolStripButton(); ctrlRtf = new Oranikle.Studio.Controls.RichTextBoxEx(); contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(components); boldToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); italicToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); underlineToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); fontDialog1 = new System.Windows.Forms.FontDialog(); colorDialog1 = new System.Windows.Forms.ColorDialog(); toolStrip1.SuspendLayout(); contextMenuStrip1.SuspendLayout(); SuspendLayout(); toolStrip1.BackColor = System.Drawing.Color.Transparent; toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; System.Windows.Forms.ToolStripItem[] toolStripItemArr1 = new System.Windows.Forms.ToolStripItem[] { bttnBold, bttnItalic, bttnUnderline, toolStripSeparator1, bttnLeftAlign, bttnCentreAlign, bttnRightAlign, toolStripSeparator2, bttnFont, bttnColour, bttnBackgroundColour }; toolStrip1.Items.AddRange(toolStripItemArr1); toolStrip1.Location = new System.Drawing.Point(0, 0); toolStrip1.Name = "toolStrip1"; toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; toolStrip1.Size = new System.Drawing.Size(460, 25); toolStrip1.TabIndex = 0; toolStrip1.Text = "toolStrip1"; bttnFont.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnFont.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_Font_16; bttnFont.ImageTransparentColor = System.Drawing.Color.White; bttnFont.Name = "bttnFont"; bttnFont.Size = new System.Drawing.Size(23, 22); bttnFont.Text = "toolStripButton4"; bttnFont.ToolTipText = "Font"; bttnFont.Click += new System.EventHandler(bttnFont_Click); bttnColour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnColour.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_Color_16; bttnColour.ImageTransparentColor = System.Drawing.Color.White; bttnColour.Name = "bttnColour"; bttnColour.Size = new System.Drawing.Size(23, 22); bttnColour.Text = "toolStripButton5"; bttnColour.ToolTipText = "Colour"; bttnColour.Click += new System.EventHandler(bttnColour_Click); bttnBackgroundColour.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnBackgroundColour.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_FontColor_16; bttnBackgroundColour.ImageTransparentColor = System.Drawing.Color.Magenta; bttnBackgroundColour.Name = "bttnBackgroundColour"; bttnBackgroundColour.Size = new System.Drawing.Size(23, 22); bttnBackgroundColour.Text = "toolStripButton1"; bttnBackgroundColour.ToolTipText = "Background Colour"; bttnBackgroundColour.Click += new System.EventHandler(bttnBackgroundColour_Click); toolStripSeparator2.Name = "toolStripSeparator2"; toolStripSeparator2.Size = new System.Drawing.Size(6, 25); bttnBold.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; bttnBold.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0); bttnBold.Image = (System.Drawing.Image)componentResourceManager.GetObject("bttnBold.Image"); bttnBold.ImageTransparentColor = System.Drawing.Color.Magenta; bttnBold.Name = "bttnBold"; bttnBold.Size = new System.Drawing.Size(23, 22); bttnBold.Text = "B"; bttnBold.ToolTipText = "Bold"; bttnBold.Click += new System.EventHandler(bttnBold_Click); bttnItalic.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; bttnItalic.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, 0); bttnItalic.Image = (System.Drawing.Image)componentResourceManager.GetObject("bttnItalic.Image"); bttnItalic.ImageTransparentColor = System.Drawing.Color.Magenta; bttnItalic.Name = "bttnItalic"; bttnItalic.Size = new System.Drawing.Size(23, 22); bttnItalic.Text = "I"; bttnItalic.ToolTipText = "Italic"; bttnItalic.Click += new System.EventHandler(bttnItalic_Click); bttnUnderline.BackColor = System.Drawing.Color.Transparent; bttnUnderline.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; bttnUnderline.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, 0); bttnUnderline.Image = (System.Drawing.Image)componentResourceManager.GetObject("bttnUnderline.Image"); bttnUnderline.ImageTransparentColor = System.Drawing.Color.Magenta; bttnUnderline.Name = "bttnUnderline"; bttnUnderline.Size = new System.Drawing.Size(23, 22); bttnUnderline.Text = "U"; bttnUnderline.ToolTipText = "Underline"; bttnUnderline.Click += new System.EventHandler(bttnUnderline_Click); toolStripSeparator1.Name = "toolStripSeparator1"; toolStripSeparator1.Size = new System.Drawing.Size(6, 25); bttnLeftAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnLeftAlign.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_AlignMiddleLeft_16; bttnLeftAlign.ImageTransparentColor = System.Drawing.Color.Black; bttnLeftAlign.Name = "bttnLeftAlign"; bttnLeftAlign.Size = new System.Drawing.Size(23, 22); bttnLeftAlign.Text = "toolStripButton1"; bttnLeftAlign.ToolTipText = "Align Left"; bttnLeftAlign.Click += new System.EventHandler(bttnLeftAlign_Click); bttnCentreAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnCentreAlign.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_AlignMiddleCenter_16; bttnCentreAlign.ImageTransparentColor = System.Drawing.Color.Black; bttnCentreAlign.Name = "bttnCentreAlign"; bttnCentreAlign.Size = new System.Drawing.Size(23, 22); bttnCentreAlign.Text = "toolStripButton2"; bttnCentreAlign.ToolTipText = "Align Center"; bttnCentreAlign.Click += new System.EventHandler(bttnCentreAlign_Click); bttnRightAlign.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; bttnRightAlign.Image = Oranikle.Studio.Controls.Properties.Resources.Icon_AlignMiddleRight_16; bttnRightAlign.ImageTransparentColor = System.Drawing.Color.Black; bttnRightAlign.Name = "bttnRightAlign"; bttnRightAlign.Size = new System.Drawing.Size(23, 22); bttnRightAlign.Text = "toolStripButton3"; bttnRightAlign.ToolTipText = "Align Right"; bttnRightAlign.Click += new System.EventHandler(bttnRightAlign_Click); ctrlRtf.ContextMenuStrip = contextMenuStrip1; ctrlRtf.Dock = System.Windows.Forms.DockStyle.Fill; ctrlRtf.Location = new System.Drawing.Point(0, 25); ctrlRtf.Name = "ctrlRtf"; ctrlRtf.Size = new System.Drawing.Size(460, 227); ctrlRtf.TabIndex = 1; ctrlRtf.Text = ""; System.Windows.Forms.ToolStripItem[] toolStripItemArr2 = new System.Windows.Forms.ToolStripItem[] { boldToolStripMenuItem, italicToolStripMenuItem, underlineToolStripMenuItem, toolStripSeparator5, cutToolStripMenuItem, copyToolStripMenuItem, pasteToolStripMenuItem }; contextMenuStrip1.Items.AddRange(toolStripItemArr2); contextMenuStrip1.Name = "contextMenuStrip1"; contextMenuStrip1.Size = new System.Drawing.Size(159, 142); boldToolStripMenuItem.Name = "boldToolStripMenuItem"; boldToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.RButton | System.Windows.Forms.Keys.Control; boldToolStripMenuItem.Size = new System.Drawing.Size(158, 22); boldToolStripMenuItem.Text = "Bold"; boldToolStripMenuItem.Click += new System.EventHandler(boldToolStripMenuItem_Click); italicToolStripMenuItem.Name = "italicToolStripMenuItem"; italicToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.LButton | System.Windows.Forms.Keys.Back | System.Windows.Forms.Keys.Control; italicToolStripMenuItem.Size = new System.Drawing.Size(158, 22); italicToolStripMenuItem.Text = "Italic"; italicToolStripMenuItem.Click += new System.EventHandler(italicToolStripMenuItem_Click); underlineToolStripMenuItem.Name = "underlineToolStripMenuItem"; underlineToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.LButton | System.Windows.Forms.Keys.MButton | System.Windows.Forms.Keys.ShiftKey | System.Windows.Forms.Keys.Control; underlineToolStripMenuItem.Size = new System.Drawing.Size(158, 22); underlineToolStripMenuItem.Text = "Underline"; underlineToolStripMenuItem.Click += new System.EventHandler(underlineToolStripMenuItem_Click); toolStripSeparator5.Name = "toolStripSeparator5"; toolStripSeparator5.Size = new System.Drawing.Size(155, 6); cutToolStripMenuItem.Name = "cutToolStripMenuItem"; cutToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Back | System.Windows.Forms.Keys.ShiftKey | System.Windows.Forms.Keys.Control; cutToolStripMenuItem.Size = new System.Drawing.Size(158, 22); cutToolStripMenuItem.Text = "Cut"; cutToolStripMenuItem.Click += new System.EventHandler(cutToolStripMenuItem_Click); copyToolStripMenuItem.Name = "copyToolStripMenuItem"; copyToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.LButton | System.Windows.Forms.Keys.RButton | System.Windows.Forms.Keys.Control; copyToolStripMenuItem.Size = new System.Drawing.Size(158, 22); copyToolStripMenuItem.Text = "Copy"; copyToolStripMenuItem.Click += new System.EventHandler(copyToolStripMenuItem_Click); pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; pasteToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.RButton | System.Windows.Forms.Keys.MButton | System.Windows.Forms.Keys.ShiftKey | System.Windows.Forms.Keys.Control; pasteToolStripMenuItem.Size = new System.Drawing.Size(158, 22); pasteToolStripMenuItem.Text = "Paste"; pasteToolStripMenuItem.Click += new System.EventHandler(pasteToolStripMenuItem_Click); AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; base.BackColor = System.Drawing.Color.Transparent; Controls.Add(ctrlRtf); Controls.Add(toolStrip1); Name = "CtrlRichTextbox"; Size = new System.Drawing.Size(460, 252); toolStrip1.ResumeLayout(false); toolStrip1.PerformLayout(); contextMenuStrip1.ResumeLayout(false); ResumeLayout(false); PerformLayout(); }
private void GenerateGB(string name, out GroupBox GB) { GB = new GroupBox(); GB.Name = name; GB.Text = name; TabControl tabControl_month; TabPage tabPage_cash; Button button_new; Button button_save; GroupBox groupbox_cash; ComboBox comboBox_day; ComboBox comboBox_cycle; NumericUpDown numericUpDown_volume; NumericUpDown numericUpDown_rate; Label label3; Label label10; Label label2; Label label7; Label label6; Label label4; Label label8; Label label5; TextBox textBox_phone; TextBox textBox_comment; TextBox textBox_contact; TextBox textBox_name; Label label1; NumericUpDown numericUpDown_cash; TabPage tabPage_invest; Label label18; NumericUpDown numericUpDown_invest; GroupBox groupBox_invest; ComboBox comboBox_dayinvest; ComboBox comboBox_cycleinvest; Button button_stopinvest; NumericUpDown numericUpDown_volumeinvest; NumericUpDown numericUpDown_rateinvest; Button button_updateinvest; Label label9; Label label11; Label label12; Label label13; Label label14; Label label15; Label label16; Label label17; TextBox textBox_telephoneinvest; TextBox textBox_commentinvest; TextBox textBox_contactinvest; TextBox textBox_nameinvest; ListBox listBox_invest; TabPage tabPage_debt; Label label23; NumericUpDown numericUpDown_debt; GroupBox groupBox_debt; ComboBox comboBox_daydebt; Label label22; ComboBox comboBox_cycledebt; NumericUpDown numericUpDown_volumedebt; Label label19; Button button3; Label label20; Label label21; Label label24; TextBox textBox_commentdebt; TextBox textBox_namedebt; Button button_stopdebt; Button button_updatedebt; Button button_newdebt; ListBox listBox_debt; TabPage tabPage_payout; DataGridView dataGridView_payout; Button button_savepayout; Label label25; NumericUpDown numericUpDown_payout; TabPage tabPage_income; DataGridView dataGridView_income; Button button_saveincome; Label label26; NumericUpDown numericUpDown_income; DataGridViewTextBoxColumn Column_payout_day; DataGridViewTextBoxColumn Column_payout_volume; DataGridViewTextBoxColumn Column_payout_comment; DataGridViewTextBoxColumn Column_income_day; DataGridViewTextBoxColumn Column_income_volume; DataGridViewTextBoxColumn Column_income_comment; ContextMenuStrip contextMenuStrip1; ToolStripMenuItem ToolStripMenuItem_delete; tabControl_month = new TabControl(); tabPage_cash = new TabPage(); button_new = new Button(); button_save = new Button(); groupbox_cash = new GroupBox(); comboBox_day = new ComboBox(); comboBox_cycle = new ComboBox(); numericUpDown_volume = new NumericUpDown(); numericUpDown_rate = new NumericUpDown(); label3 = new Label(); label10 = new Label(); label2 = new Label(); label7 = new Label(); label6 = new Label(); label4 = new Label(); label8 = new Label(); label5 = new Label(); textBox_phone = new TextBox(); textBox_comment = new TextBox(); textBox_contact = new TextBox(); textBox_name = new TextBox(); label1 = new Label(); numericUpDown_cash = new NumericUpDown(); tabPage_invest = new TabPage(); label18 = new Label(); numericUpDown_invest = new NumericUpDown(); groupBox_invest = new GroupBox(); comboBox_dayinvest = new ComboBox(); comboBox_cycleinvest = new ComboBox(); button_stopinvest = new Button(); numericUpDown_volumeinvest = new NumericUpDown(); numericUpDown_rateinvest = new NumericUpDown(); button_updateinvest = new Button(); label9 = new Label(); label11 = new Label(); label12 = new Label(); label13 = new Label(); label14 = new Label(); label15 = new Label(); label16 = new Label(); label17 = new Label(); textBox_telephoneinvest = new TextBox(); textBox_commentinvest = new TextBox(); textBox_contactinvest = new TextBox(); textBox_nameinvest = new TextBox(); listBox_invest = new ListBox(); tabPage_debt = new TabPage(); label23 = new Label(); numericUpDown_debt = new NumericUpDown(); groupBox_debt = new GroupBox(); comboBox_daydebt = new ComboBox(); label22 = new Label(); comboBox_cycledebt = new ComboBox(); numericUpDown_volumedebt = new NumericUpDown(); label19 = new Label(); button3 = new Button(); label20 = new Label(); label21 = new Label(); label24 = new Label(); textBox_commentdebt = new TextBox(); textBox_namedebt = new TextBox(); button_stopdebt = new Button(); button_updatedebt = new Button(); button_newdebt = new Button(); listBox_debt = new ListBox(); tabPage_payout = new TabPage(); dataGridView_payout = new DataGridView(); button_savepayout = new Button(); label25 = new Label(); numericUpDown_payout = new NumericUpDown(); tabPage_income = new TabPage(); dataGridView_income = new DataGridView(); button_saveincome = new Button(); label26 = new Label(); numericUpDown_income = new NumericUpDown(); Column_payout_day = new DataGridViewTextBoxColumn(); Column_payout_volume = new DataGridViewTextBoxColumn(); Column_payout_comment = new DataGridViewTextBoxColumn(); Column_income_day = new DataGridViewTextBoxColumn(); Column_income_volume = new DataGridViewTextBoxColumn(); Column_income_comment = new DataGridViewTextBoxColumn(); contextMenuStrip1 = new ContextMenuStrip(); ToolStripMenuItem_delete = new ToolStripMenuItem(); contextMenuStrip1.SuspendLayout(); GB.SuspendLayout(); tabControl_month.SuspendLayout(); tabPage_cash.SuspendLayout(); groupbox_cash.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_volume)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_rate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_cash)).BeginInit(); tabPage_invest.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_invest)).BeginInit(); groupBox_invest.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_volumeinvest)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_rateinvest)).BeginInit(); tabPage_debt.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_debt)).BeginInit(); groupBox_debt.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_volumedebt)).BeginInit(); tabPage_payout.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(dataGridView_payout)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_payout)).BeginInit(); tabPage_income.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(dataGridView_income)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_income)).BeginInit(); SuspendLayout(); // // groupBox_month // GB.Controls.Add(tabControl_month); GB.Size = new System.Drawing.Size(735, 255); GB.TabIndex = 1; GB.TabStop = false; // // tabControl_month // tabControl_month.Controls.Add(tabPage_cash); tabControl_month.Controls.Add(tabPage_invest); tabControl_month.Controls.Add(tabPage_debt); tabControl_month.Controls.Add(tabPage_payout); tabControl_month.Controls.Add(tabPage_income); tabControl_month.Dock = DockStyle.Fill; tabControl_month.ItemSize = new System.Drawing.Size(145, 20); tabControl_month.Location = new System.Drawing.Point(3, 17); tabControl_month.Name = "tabControl_month"; tabControl_month.RightToLeft = RightToLeft.No; tabControl_month.SelectedIndex = 0; tabControl_month.Size = new System.Drawing.Size(729, 235); tabControl_month.SizeMode = TabSizeMode.Fixed; tabControl_month.TabIndex = 2; // // tabPage_cash // tabPage_cash.Controls.Add(button_new); tabPage_cash.Controls.Add(button_save); tabPage_cash.Controls.Add(groupbox_cash); tabPage_cash.Controls.Add(label1); tabPage_cash.Controls.Add(numericUpDown_cash); tabPage_cash.Location = new System.Drawing.Point(4, 24); tabPage_cash.Name = "tabPage_cash"; tabPage_cash.Padding = new Padding(3); tabPage_cash.Size = new System.Drawing.Size(721, 207); tabPage_cash.TabIndex = 0; tabPage_cash.Text = "现金"; tabPage_cash.UseVisualStyleBackColor = true; // // button_new // button_new.Location = new System.Drawing.Point(624, 111); button_new.Name = "button_new"; button_new.Size = new System.Drawing.Size(75, 23); button_new.FlatStyle = FlatStyle.Flat; button_new.FlatAppearance.BorderSize = 0; button_new.TabIndex = 7; button_new.Text = "清 空"; button_new.UseVisualStyleBackColor = true; // // button_save // button_save.Location = new System.Drawing.Point(624, 151); button_save.Name = "button_save"; button_save.Size = new System.Drawing.Size(75, 23); button_save.TabIndex = 7; button_save.Text = "保存新投资"; button_save.UseVisualStyleBackColor = true; // // groupbox_cash // groupbox_cash.Controls.Add(comboBox_day); groupbox_cash.Controls.Add(comboBox_cycle); groupbox_cash.Controls.Add(numericUpDown_volume); groupbox_cash.Controls.Add(numericUpDown_rate); groupbox_cash.Controls.Add(label3); groupbox_cash.Controls.Add(label10); groupbox_cash.Controls.Add(label2); groupbox_cash.Controls.Add(label7); groupbox_cash.Controls.Add(label6); groupbox_cash.Controls.Add(label4); groupbox_cash.Controls.Add(label8); groupbox_cash.Controls.Add(label5); groupbox_cash.Controls.Add(textBox_phone); groupbox_cash.Controls.Add(textBox_comment); groupbox_cash.Controls.Add(textBox_contact); groupbox_cash.Controls.Add(textBox_name); groupbox_cash.Location = new System.Drawing.Point(136, 20); groupbox_cash.Name = "groupbox_cash"; groupbox_cash.Size = new System.Drawing.Size(471, 167); groupbox_cash.TabIndex = 6; groupbox_cash.TabStop = false; // // comboBox_day // comboBox_day.DropDownStyle = ComboBoxStyle.DropDownList; comboBox_day.FormattingEnabled = true; comboBox_day.Items.AddRange(new object[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}); comboBox_day.Location = new System.Drawing.Point(350, 81); comboBox_day.Name = "comboBox_day"; comboBox_day.Size = new System.Drawing.Size(100, 20); comboBox_day.TabIndex = 6; // // comboBox_cycle // comboBox_cycle.DropDownStyle = ComboBoxStyle.DropDownList; comboBox_cycle.FormattingEnabled = true; comboBox_cycle.Items.AddRange(new object[] { "不定期", "每月", "每季度", "每半年", "每年"}); comboBox_cycle.Location = new System.Drawing.Point(236, 81); comboBox_cycle.Name = "comboBox_cycle"; comboBox_cycle.Size = new System.Drawing.Size(100, 20); comboBox_cycle.TabIndex = 6; // // numericUpDown_volume // numericUpDown_volume.Location = new System.Drawing.Point(6, 81); numericUpDown_volume.Maximum = new decimal(new int[] { 10000, 0, 0, 0}); numericUpDown_volume.Name = "numericUpDown_volume"; numericUpDown_volume.Size = new System.Drawing.Size(100, 21); numericUpDown_volume.TabIndex = 4; numericUpDown_volume.TextAlign = HorizontalAlignment.Right; // // numericUpDown_rate // numericUpDown_rate.DecimalPlaces = 2; numericUpDown_rate.Increment = new decimal(new int[] { 1, 0, 0, 131072}); numericUpDown_rate.Location = new System.Drawing.Point(121, 81); numericUpDown_rate.Maximum = new decimal(new int[] { 1, 0, 0, 0}); numericUpDown_rate.Name = "numericUpDown_rate"; numericUpDown_rate.Size = new System.Drawing.Size(100, 21); numericUpDown_rate.TabIndex = 4; numericUpDown_rate.TextAlign = HorizontalAlignment.Right; // // label3 // label3.AutoSize = true; label3.Location = new System.Drawing.Point(236, 14); label3.Name = "label3"; label3.Size = new System.Drawing.Size(53, 12); label3.TabIndex = 3; label3.Text = "联系电话"; // // label10 // label10.AutoSize = true; label10.Location = new System.Drawing.Point(6, 64); label10.Name = "label10"; label10.Size = new System.Drawing.Size(65, 12); label10.TabIndex = 3; label10.Text = "资金量(万)"; // // label2 // label2.AutoSize = true; label2.Location = new System.Drawing.Point(121, 64); label2.Name = "label2"; label2.Size = new System.Drawing.Size(53, 12); label2.TabIndex = 3; label2.Text = "年化利率"; // // label7 // label7.AutoSize = true; label7.Location = new System.Drawing.Point(6, 116); label7.Name = "label7"; label7.Size = new System.Drawing.Size(29, 12); label7.TabIndex = 3; label7.Text = "备注"; // // label6 // label6.AutoSize = true; label6.Location = new System.Drawing.Point(350, 67); label6.Name = "label6"; label6.Size = new System.Drawing.Size(41, 12); label6.TabIndex = 3; label6.Text = "付息日"; // // label4 // label4.AutoSize = true; label4.Location = new System.Drawing.Point(121, 14); label4.Name = "label4"; label4.Size = new System.Drawing.Size(41, 12); label4.TabIndex = 3; label4.Text = "联系人"; // // label8 // label8.AutoSize = true; label8.Location = new System.Drawing.Point(236, 67); label8.Name = "label8"; label8.Size = new System.Drawing.Size(53, 12); label8.TabIndex = 3; label8.Text = "付息周期"; // // label5 // label5.AutoSize = true; label5.Location = new System.Drawing.Point(6, 14); label5.Name = "label5"; label5.Size = new System.Drawing.Size(77, 12); label5.TabIndex = 3; label5.Text = "投资项目名称"; // // textBox_phone // textBox_phone.Location = new System.Drawing.Point(236, 32); textBox_phone.MaxLength = 11; textBox_phone.Name = "textBox_phone"; textBox_phone.Size = new System.Drawing.Size(100, 21); textBox_phone.TabIndex = 2; // // textBox_comment // textBox_comment.Location = new System.Drawing.Point(6, 133); textBox_comment.Name = "textBox_comment"; textBox_comment.Size = new System.Drawing.Size(444, 21); textBox_comment.TabIndex = 2; // // textBox_contact // textBox_contact.Location = new System.Drawing.Point(121, 32); textBox_contact.MaxLength = 8; textBox_contact.Name = "textBox_contact"; textBox_contact.Size = new System.Drawing.Size(100, 21); textBox_contact.TabIndex = 2; // // textBox_name // textBox_name.Location = new System.Drawing.Point(6, 32); textBox_name.MaxLength = 32; textBox_name.Name = "textBox_name"; textBox_name.Size = new System.Drawing.Size(100, 21); textBox_name.TabIndex = 2; // // label1 // label1.AutoSize = true; label1.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); label1.Location = new System.Drawing.Point(18, 25); label1.Name = "label1"; label1.Size = new System.Drawing.Size(84, 12); label1.TabIndex = 1; label1.Text = "本月现金(万)"; // // numericUpDown_cash // numericUpDown_cash.Location = new System.Drawing.Point(20, 40); numericUpDown_cash.Name = "numericUpDown_cash"; numericUpDown_cash.Enabled = false; numericUpDown_cash.Size = new System.Drawing.Size(87, 21); numericUpDown_cash.TabIndex = 0; numericUpDown_cash.TextAlign = HorizontalAlignment.Center; numericUpDown_cash.InterceptArrowKeys = false; numericUpDown_cash.Maximum = 100000; numericUpDown_cash.Minimum = -1000; numericUpDown_cash.Increment = 0.01M; numericUpDown_cash.DecimalPlaces = 2; // // tabPage_invest // tabPage_invest.Controls.Add(label18); tabPage_invest.Controls.Add(numericUpDown_invest); tabPage_invest.Controls.Add(groupBox_invest); tabPage_invest.Controls.Add(listBox_invest); tabPage_invest.Location = new System.Drawing.Point(4, 24); tabPage_invest.Name = "tabPage_invest"; tabPage_invest.Padding = new Padding(3); tabPage_invest.Size = new System.Drawing.Size(721, 207); tabPage_invest.TabIndex = 1; tabPage_invest.Text = "投资"; tabPage_invest.UseVisualStyleBackColor = true; // // label18 // label18.AutoSize = true; label18.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); label18.Location = new System.Drawing.Point(18, 25); label18.Name = "label18"; label18.Size = new System.Drawing.Size(84, 12); label18.TabIndex = 14; label18.Text = "本月投资(万)"; // // numericUpDown_invest // numericUpDown_invest.Location = new System.Drawing.Point(20, 40); numericUpDown_invest.Name = "numericUpDown_invest"; numericUpDown_invest.Enabled = false; numericUpDown_invest.Size = new System.Drawing.Size(87, 21); numericUpDown_invest.TabIndex = 13; numericUpDown_invest.TextAlign = HorizontalAlignment.Center; numericUpDown_invest.InterceptArrowKeys = false; numericUpDown_invest.Maximum = 100000; // // groupBox_invest // groupBox_invest.Controls.Add(comboBox_dayinvest); groupBox_invest.Controls.Add(comboBox_cycleinvest); groupBox_invest.Controls.Add(button_stopinvest); groupBox_invest.Controls.Add(numericUpDown_volumeinvest); groupBox_invest.Controls.Add(numericUpDown_rateinvest); groupBox_invest.Controls.Add(button_updateinvest); groupBox_invest.Controls.Add(label9); groupBox_invest.Controls.Add(label11); groupBox_invest.Controls.Add(label12); groupBox_invest.Controls.Add(label13); groupBox_invest.Controls.Add(label14); groupBox_invest.Controls.Add(label15); groupBox_invest.Controls.Add(label16); groupBox_invest.Controls.Add(label17); groupBox_invest.Controls.Add(textBox_telephoneinvest); groupBox_invest.Controls.Add(textBox_commentinvest); groupBox_invest.Controls.Add(textBox_contactinvest); groupBox_invest.Controls.Add(textBox_nameinvest); groupBox_invest.Location = new System.Drawing.Point(258, 6); groupBox_invest.Name = "groupBox_invest"; groupBox_invest.Size = new System.Drawing.Size(457, 195); groupBox_invest.TabIndex = 12; groupBox_invest.TabStop = false; // // comboBox_dayinvest // comboBox_dayinvest.DropDownStyle = ComboBoxStyle.DropDownList; comboBox_dayinvest.FormattingEnabled = true; comboBox_dayinvest.Items.AddRange(new object[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}); comboBox_dayinvest.Location = new System.Drawing.Point(350, 81); comboBox_dayinvest.Name = "comboBox_dayinvest"; comboBox_dayinvest.Size = new System.Drawing.Size(100, 20); comboBox_dayinvest.TabIndex = 6; // // comboBox_cycleinvest // comboBox_cycleinvest.DropDownStyle = ComboBoxStyle.DropDownList; comboBox_cycleinvest.FormattingEnabled = true; comboBox_cycleinvest.Items.AddRange(new object[] { "不定期", "每月", "每季度", "每半年", "每年"}); comboBox_cycleinvest.Location = new System.Drawing.Point(236, 81); comboBox_cycleinvest.Name = "comboBox_cycleinvest"; comboBox_cycleinvest.Size = new System.Drawing.Size(100, 20); comboBox_cycleinvest.TabIndex = 6; // // button_stopinvest // button_stopinvest.Location = new System.Drawing.Point(246, 160); button_stopinvest.Name = "button_stopinvest"; button_stopinvest.Size = new System.Drawing.Size(91, 25); button_stopinvest.TabIndex = 9; button_stopinvest.Text = "停止项目"; button_stopinvest.UseVisualStyleBackColor = true; // // numericUpDown_volumeinvest // numericUpDown_volumeinvest.Location = new System.Drawing.Point(6, 81); numericUpDown_volumeinvest.Maximum = new decimal(new int[] { 10000, 0, 0, 0}); numericUpDown_volumeinvest.Name = "numericUpDown_volumeinvest"; numericUpDown_volumeinvest.Size = new System.Drawing.Size(100, 21); numericUpDown_volumeinvest.TabIndex = 4; numericUpDown_volumeinvest.TextAlign = HorizontalAlignment.Right; // // numericUpDown_rateinvest // numericUpDown_rateinvest.DecimalPlaces = 2; numericUpDown_rateinvest.Increment = new decimal(new int[] { 1, 0, 0, 131072}); numericUpDown_rateinvest.Location = new System.Drawing.Point(121, 81); numericUpDown_rateinvest.Maximum = new decimal(new int[] { 1, 0, 0, 0}); numericUpDown_rateinvest.Name = "numericUpDown_rateinvest"; numericUpDown_rateinvest.Size = new System.Drawing.Size(100, 21); numericUpDown_rateinvest.TabIndex = 4; numericUpDown_rateinvest.TextAlign = HorizontalAlignment.Right; // // button_updateinvest // button_updateinvest.Location = new System.Drawing.Point(359, 160); button_updateinvest.Name = "button_updateinvest"; button_updateinvest.Size = new System.Drawing.Size(91, 25); button_updateinvest.TabIndex = 8; button_updateinvest.Text = "更新项目"; button_updateinvest.UseVisualStyleBackColor = true; // // label9 // label9.AutoSize = true; label9.Location = new System.Drawing.Point(236, 14); label9.Name = "label9"; label9.Size = new System.Drawing.Size(53, 12); label9.TabIndex = 3; label9.Text = "联系电话"; // // label11 // label11.AutoSize = true; label11.Location = new System.Drawing.Point(6, 64); label11.Name = "label11"; label11.Size = new System.Drawing.Size(65, 12); label11.TabIndex = 3; label11.Text = "资金量(万)"; // // label12 // label12.AutoSize = true; label12.Location = new System.Drawing.Point(121, 64); label12.Name = "label12"; label12.Size = new System.Drawing.Size(53, 12); label12.TabIndex = 3; label12.Text = "年化利率"; // // label13 // label13.AutoSize = true; label13.Location = new System.Drawing.Point(6, 116); label13.Name = "label13"; label13.Size = new System.Drawing.Size(29, 12); label13.TabIndex = 3; label13.Text = "备注"; // // label14 // label14.AutoSize = true; label14.Location = new System.Drawing.Point(350, 67); label14.Name = "label14"; label14.Size = new System.Drawing.Size(41, 12); label14.TabIndex = 3; label14.Text = "付息日"; // // label15 // label15.AutoSize = true; label15.Location = new System.Drawing.Point(121, 14); label15.Name = "label15"; label15.Size = new System.Drawing.Size(41, 12); label15.TabIndex = 3; label15.Text = "联系人"; // // label16 // label16.AutoSize = true; label16.Location = new System.Drawing.Point(236, 67); label16.Name = "label16"; label16.Size = new System.Drawing.Size(53, 12); label16.TabIndex = 3; label16.Text = "付息周期"; // // label17 // label17.AutoSize = true; label17.Location = new System.Drawing.Point(6, 14); label17.Name = "label17"; label17.Size = new System.Drawing.Size(77, 12); label17.TabIndex = 3; label17.Text = "投资项目名称"; // // textBox_telephoneinvest // textBox_telephoneinvest.Location = new System.Drawing.Point(236, 32); textBox_telephoneinvest.MaxLength = 11; textBox_telephoneinvest.Name = "textBox_telephoneinvest"; textBox_telephoneinvest.Size = new System.Drawing.Size(100, 21); textBox_telephoneinvest.TabIndex = 2; // // textBox_commentinvest // textBox_commentinvest.Location = new System.Drawing.Point(6, 133); textBox_commentinvest.Name = "textBox_commentinvest"; textBox_commentinvest.Size = new System.Drawing.Size(444, 21); textBox_commentinvest.TabIndex = 2; // // textBox_contactinvest // textBox_contactinvest.Location = new System.Drawing.Point(121, 32); textBox_contactinvest.MaxLength = 8; textBox_contactinvest.Name = "textBox_contactinvest"; textBox_contactinvest.Size = new System.Drawing.Size(100, 21); textBox_contactinvest.TabIndex = 2; // // textBox_nameinvest // textBox_nameinvest.Location = new System.Drawing.Point(6, 32); textBox_nameinvest.MaxLength = 32; textBox_nameinvest.Name = "textBox_nameinvest"; textBox_nameinvest.Size = new System.Drawing.Size(100, 21); textBox_nameinvest.TabIndex = 2; // // listBox_invest // listBox_invest.FormattingEnabled = true; listBox_invest.ItemHeight = 12; listBox_invest.Location = new System.Drawing.Point(111, 5); listBox_invest.Name = "listBox_invest"; listBox_invest.ScrollAlwaysVisible = true; listBox_invest.Size = new System.Drawing.Size(141, 196); listBox_invest.TabIndex = 7; // // tabPage_debt // tabPage_debt.Controls.Add(label23); tabPage_debt.Controls.Add(numericUpDown_debt); tabPage_debt.Controls.Add(groupBox_debt); tabPage_debt.Controls.Add(button_stopdebt); tabPage_debt.Controls.Add(button_updatedebt); tabPage_debt.Controls.Add(button_newdebt); tabPage_debt.Controls.Add(listBox_debt); tabPage_debt.Location = new System.Drawing.Point(4, 24); tabPage_debt.Name = "tabPage_debt"; tabPage_debt.Padding = new Padding(3); tabPage_debt.Size = new System.Drawing.Size(721, 207); tabPage_debt.TabIndex = 4; tabPage_debt.Text = "生活支出"; tabPage_debt.UseVisualStyleBackColor = true; // // label23 // label23.AutoSize = true; label23.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); label23.Location = new System.Drawing.Point(18, 25); label23.Name = "label23"; label23.Size = new System.Drawing.Size(84, 12); label23.TabIndex = 25; label23.Text = "本月生活支出(万)"; // // numericUpDown_debt // numericUpDown_debt.Location = new System.Drawing.Point(20, 40); numericUpDown_debt.Name = "numericUpDown_debt"; numericUpDown_debt.Enabled = false; numericUpDown_debt.Size = new System.Drawing.Size(87, 21); numericUpDown_debt.TabIndex = 24; numericUpDown_debt.TextAlign = HorizontalAlignment.Center; numericUpDown_debt.InterceptArrowKeys = false; numericUpDown_debt.Maximum = 100000; numericUpDown_debt.DecimalPlaces = 2; // // groupBox_debt // groupBox_debt.Controls.Add(comboBox_daydebt); groupBox_debt.Controls.Add(label22); groupBox_debt.Controls.Add(comboBox_cycledebt); groupBox_debt.Controls.Add(numericUpDown_volumedebt); groupBox_debt.Controls.Add(label19); groupBox_debt.Controls.Add(button3); groupBox_debt.Controls.Add(label20); groupBox_debt.Controls.Add(label21); groupBox_debt.Controls.Add(label24); groupBox_debt.Controls.Add(textBox_commentdebt); groupBox_debt.Controls.Add(textBox_namedebt); groupBox_debt.Location = new System.Drawing.Point(273, 6); groupBox_debt.Name = "groupBox_debt"; groupBox_debt.Size = new System.Drawing.Size(323, 195); groupBox_debt.TabIndex = 22; groupBox_debt.TabStop = false; groupBox_debt.Text = "生活支出信息"; // // comboBox_daydebt // comboBox_daydebt.DropDownStyle = ComboBoxStyle.DropDownList; comboBox_daydebt.FormattingEnabled = true; comboBox_daydebt.Items.AddRange(new object[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}); comboBox_daydebt.Location = new System.Drawing.Point(150, 95); comboBox_daydebt.Name = "comboBox_daydebt"; comboBox_daydebt.Size = new System.Drawing.Size(100, 20); comboBox_daydebt.TabIndex = 14; // // label22 // label22.AutoSize = true; label22.Location = new System.Drawing.Point(150, 81); label22.Name = "label22"; label22.Size = new System.Drawing.Size(41, 12); label22.TabIndex = 13; label22.Text = "结账日"; // // comboBox_cycledebt // comboBox_cycledebt.DropDownStyle = ComboBoxStyle.DropDownList; comboBox_cycledebt.FormattingEnabled = true; comboBox_cycledebt.Items.AddRange(new object[] { "不定期", "每月", "每季度", "每半年", "每年"}); comboBox_cycledebt.Location = new System.Drawing.Point(27, 95); comboBox_cycledebt.Name = "comboBox_cycledebt"; comboBox_cycledebt.Size = new System.Drawing.Size(100, 20); comboBox_cycledebt.TabIndex = 6; // // numericUpDown_volumedebt // numericUpDown_volumedebt.DecimalPlaces = 2; numericUpDown_volumedebt.Increment = new decimal(new int[] { 1, 0, 0, 65536}); numericUpDown_volumedebt.Location = new System.Drawing.Point(150, 45); numericUpDown_volumedebt.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); numericUpDown_volumedebt.Name = "numericUpDown_volumedebt"; numericUpDown_volumedebt.Size = new System.Drawing.Size(100, 21); numericUpDown_volumedebt.TabIndex = 4; numericUpDown_volumedebt.TextAlign = HorizontalAlignment.Right; // // label19 // label19.AutoSize = true; label19.Location = new System.Drawing.Point(150, 30); label19.Name = "label19"; label19.Size = new System.Drawing.Size(53, 12); label19.TabIndex = 3; label19.Text = "金额(万)"; // // button3 // button3.Location = new System.Drawing.Point(403, 97); button3.Name = "button3"; button3.Size = new System.Drawing.Size(91, 25); button3.TabIndex = 12; button3.Text = "保存生活支出信息"; button3.UseVisualStyleBackColor = true; // // label20 // label20.AutoSize = true; label20.Location = new System.Drawing.Point(27, 130); label20.Name = "label20"; label20.Size = new System.Drawing.Size(29, 12); label20.TabIndex = 3; label20.Text = "备注"; // // label21 // label21.AutoSize = true; label21.Location = new System.Drawing.Point(27, 81); label21.Name = "label21"; label21.Size = new System.Drawing.Size(29, 12); label21.TabIndex = 3; label21.Text = "周期"; // // label24 // label24.AutoSize = true; label24.Location = new System.Drawing.Point(27, 27); label24.Name = "label24"; label24.Size = new System.Drawing.Size(29, 12); label24.TabIndex = 3; label24.Text = "名称"; // // textBox_commentdebt // textBox_commentdebt.Location = new System.Drawing.Point(27, 147); textBox_commentdebt.Name = "textBox_commentdebt"; textBox_commentdebt.Size = new System.Drawing.Size(272, 21); textBox_commentdebt.TabIndex = 2; // // textBox_namedebt // textBox_namedebt.Location = new System.Drawing.Point(27, 45); textBox_namedebt.MaxLength = 8; textBox_namedebt.Name = "textBox_namedebt"; textBox_namedebt.Size = new System.Drawing.Size(100, 21); textBox_namedebt.TabIndex = 2; // // button_stopdebt // button_stopdebt.Location = new System.Drawing.Point(602, 140); button_stopdebt.Name = "button_stopdebt"; button_stopdebt.Size = new System.Drawing.Size(91, 25); button_stopdebt.TabIndex = 20; button_stopdebt.Text = "终止生活支出"; button_stopdebt.UseVisualStyleBackColor = true; // // button_updatedebt // button_updatedebt.Location = new System.Drawing.Point(602, 91); button_updatedebt.Name = "button_updatedebt"; button_updatedebt.Size = new System.Drawing.Size(91, 25); button_updatedebt.TabIndex = 18; button_updatedebt.Text = "保存修改"; button_updatedebt.UseVisualStyleBackColor = true; // // button_newdebt // button_newdebt.Location = new System.Drawing.Point(602, 41); button_newdebt.Name = "button_newdebt"; button_newdebt.Size = new System.Drawing.Size(91, 25); button_newdebt.TabIndex = 19; button_newdebt.Text = "新建生活支出"; button_newdebt.UseVisualStyleBackColor = true; // // listBox_debt // listBox_debt.FormattingEnabled = true; listBox_debt.ItemHeight = 12; listBox_debt.Location = new System.Drawing.Point(126, 6); listBox_debt.Name = "listBox_debt"; listBox_debt.ScrollAlwaysVisible = true; listBox_debt.Size = new System.Drawing.Size(141, 196); listBox_debt.TabIndex = 21; // // tabPage_payout // tabPage_payout.Controls.Add(dataGridView_payout); tabPage_payout.Controls.Add(button_savepayout); tabPage_payout.Controls.Add(label25); tabPage_payout.Controls.Add(numericUpDown_payout); tabPage_payout.Location = new System.Drawing.Point(4, 24); tabPage_payout.Name = "tabPage_payout"; tabPage_payout.Padding = new Padding(3); tabPage_payout.Size = new System.Drawing.Size(721, 207); tabPage_payout.TabIndex = 2; tabPage_payout.Text = "支出"; tabPage_payout.UseVisualStyleBackColor = true; // // Column_payout_day // Column_payout_day.HeaderText = "支出日"; Column_payout_day.Name = "Column_payout_day"; Column_payout_day.Width = 75; // // Column_payout_volume // Column_payout_volume.HeaderText = "支出金额(万)"; Column_payout_volume.Name = "Column_payout_volume"; Column_payout_volume.Width = 100; // // Column_payout_comment // Column_payout_comment.HeaderText = "说明"; Column_payout_comment.Name = "Column_payout_comment"; Column_payout_comment.Width = 300; // // dataGridView_payout // dataGridView_payout.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView_payout.Location = new System.Drawing.Point(129, 18); dataGridView_payout.Name = "dataGridView_payout"; dataGridView_payout.RowTemplate.Height = 23; dataGridView_payout.Size = new System.Drawing.Size(486, 171); dataGridView_payout.TabIndex = 30; dataGridView_payout.ContextMenuStrip = contextMenuStrip1; dataGridView_payout.Columns.AddRange(new DataGridViewColumn[] { Column_payout_day, Column_payout_volume, Column_payout_comment}); dataGridView_payout.MultiSelect = false; // // button_savepayout // button_savepayout.Location = new System.Drawing.Point(630, 166); button_savepayout.Name = "button_savepayout"; button_savepayout.Size = new System.Drawing.Size(75, 23); button_savepayout.TabIndex = 29; button_savepayout.Text = "保存"; button_savepayout.UseVisualStyleBackColor = true; // // label25 // label25.AutoSize = true; label25.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); label25.Location = new System.Drawing.Point(18, 25); label25.Name = "label25"; label25.Size = new System.Drawing.Size(84, 12); label25.TabIndex = 27; label25.Text = "本月支出(万)"; // // numericUpDown_payout // numericUpDown_payout.Location = new System.Drawing.Point(20, 40); numericUpDown_payout.Name = "numericUpDown_payout"; numericUpDown_payout.Enabled = false; numericUpDown_payout.Size = new System.Drawing.Size(87, 21); numericUpDown_payout.TabIndex = 26; numericUpDown_payout.TextAlign = HorizontalAlignment.Center; numericUpDown_payout.InterceptArrowKeys = false; numericUpDown_payout.Maximum = 100000; numericUpDown_payout.DecimalPlaces = 2; // // tabPage_income // tabPage_income.Controls.Add(dataGridView_income); tabPage_income.Controls.Add(button_saveincome); tabPage_income.Controls.Add(label26); tabPage_income.Controls.Add(numericUpDown_income); tabPage_income.Location = new System.Drawing.Point(4, 24); tabPage_income.Name = "tabPage_income"; tabPage_income.Padding = new Padding(3); tabPage_income.Size = new System.Drawing.Size(721, 207); tabPage_income.TabIndex = 3; tabPage_income.Text = "收入"; tabPage_income.UseVisualStyleBackColor = true; // // Column_income_day // Column_income_day.HeaderText = "收入日"; Column_income_day.Name = "Column_income_day"; Column_income_day.Width = 75; // // Column_income_volume // Column_income_volume.HeaderText = "收入金额(万)"; Column_income_volume.Name = "Column_income_volume"; Column_income_volume.Width = 100; // // Column_income_comment // Column_income_comment.HeaderText = "说明"; Column_income_comment.Name = "Column_income_comment"; Column_income_comment.Width = 300; // // dataGridView_income // dataGridView_income.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView_income.Location = new System.Drawing.Point(129, 18); dataGridView_income.Name = "dataGridView_income"; dataGridView_income.RowTemplate.Height = 23; dataGridView_income.Size = new System.Drawing.Size(486, 171); dataGridView_income.TabIndex = 34; dataGridView_income.ContextMenuStrip = contextMenuStrip1; dataGridView_income.Columns.AddRange(new DataGridViewColumn[] { Column_income_day, Column_income_volume, Column_income_comment}); dataGridView_income.MultiSelect = false; // // button_saveincome // button_saveincome.Location = new System.Drawing.Point(630, 166); button_saveincome.Name = "button_saveincome"; button_saveincome.Size = new System.Drawing.Size(75, 23); button_saveincome.TabIndex = 33; button_saveincome.Text = "保存"; button_saveincome.UseVisualStyleBackColor = true; // // label26 // label26.AutoSize = true; label26.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); label26.Location = new System.Drawing.Point(18, 25); label26.Name = "label26"; label26.Size = new System.Drawing.Size(84, 12); label26.TabIndex = 32; label26.Text = "本月收入(万)"; // // numericUpDown_income // numericUpDown_income.Location = new System.Drawing.Point(20, 40); numericUpDown_income.Name = "numericUpDown_income"; numericUpDown_income.Enabled = false; numericUpDown_income.Size = new System.Drawing.Size(87, 21); numericUpDown_income.TabIndex = 31; numericUpDown_income.TextAlign = HorizontalAlignment.Center; numericUpDown_income.InterceptArrowKeys = false; numericUpDown_income.Maximum = 100000; numericUpDown_income.DecimalPlaces = 2; // // contextMenuStrip1 // contextMenuStrip1.Items.AddRange(new ToolStripItem[] { ToolStripMenuItem_delete}); contextMenuStrip1.Name = "contextMenuStrip1"; contextMenuStrip1.Size = new Size(153, 48); // // ToolStripMenuItem_delete // ToolStripMenuItem_delete.Name = "ToolStripMenuItem_delete"; ToolStripMenuItem_delete.Size = new Size(152, 22); ToolStripMenuItem_delete.Text = "删除"; contextMenuStrip1.ResumeLayout(false); GB.ResumeLayout(false); tabControl_month.ResumeLayout(false); tabPage_cash.ResumeLayout(false); tabPage_cash.PerformLayout(); groupbox_cash.ResumeLayout(false); groupbox_cash.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_volume)).EndInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_rate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_cash)).EndInit(); tabPage_invest.ResumeLayout(false); tabPage_invest.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_invest)).EndInit(); groupBox_invest.ResumeLayout(false); groupBox_invest.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_volumeinvest)).EndInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_rateinvest)).EndInit(); tabPage_debt.ResumeLayout(false); tabPage_debt.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_debt)).EndInit(); groupBox_debt.ResumeLayout(false); groupBox_debt.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_volumedebt)).EndInit(); tabPage_payout.ResumeLayout(false); tabPage_payout.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(dataGridView_payout)).EndInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_payout)).EndInit(); tabPage_income.ResumeLayout(false); tabPage_income.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(dataGridView_income)).EndInit(); ((System.ComponentModel.ISupportInitialize)(numericUpDown_income)).EndInit(); ResumeLayout(false); ToolStripMenuItem_delete.Click += new EventHandler(ToolStripMenuItem_delete_Click); dataGridView_payout.CellMouseDown += new DataGridViewCellMouseEventHandler(dataGridView_CellMouseDown); dataGridView_income.CellMouseDown += new DataGridViewCellMouseEventHandler(dataGridView_CellMouseDown); button_new.Click += new EventHandler(button_new_Click); button_save.Click += new EventHandler(button_save_Click); listBox_invest.MouseDoubleClick += new MouseEventHandler(listBox_invent_MouseDoubleClick); button_stopinvest.Click += new EventHandler(button_stopinvest_Click); button_updateinvest.Click += new EventHandler(button_updateinvest_Click); listBox_debt.MouseDoubleClick += new MouseEventHandler(listBox_debt_MouseDoubleClick); button_newdebt.Click += new EventHandler(button_newdebt_Click); button_stopdebt.Click += new EventHandler(button_stopdebt_Click); button_updatedebt.Click += new EventHandler(button_updatedebt_Click); button_savepayout.Click += new EventHandler(button_savepayout_Click); button_saveincome.Click += new EventHandler(button_saveincome_Click); }
private List<Control> GetControls(GridField gridField, Size canvasSize) { DataGridView gridView = new DataGridView(); gridView.AutoGenerateColumns = false; gridView.Width = 160; gridView.Height = 150; SetControlProperties(gridView, gridField, canvasSize); gridView.TabStop = false; gridView.BorderStyle = borderStyle; gridView.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single; gridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; gridView.EnableHeadersVisualStyles = true; gridView.ColumnHeadersDefaultCellStyle.Font = gridField.PromptFont; RectangleF rectF = new RectangleF(gridView.Left, gridView.Top, gridView.Width, ((float)1.75 * (int)gridField.PromptFont.Size)); gridView.Top = WinUtil.GetControlTop(gridField, canvasSize.Height); List<GridColumnBase> columns = new List<GridColumnBase>(gridField.Columns); columns.Sort(Util.SortByPosition); foreach (GridColumnBase gridCol in columns) { if (gridCol is TableBasedDropDownColumn) { DataGridViewComboBoxColumn comboBoxColumn = new DataGridViewComboBoxColumn(); try { comboBoxColumn.MinimumWidth = 25; comboBoxColumn.Name = gridCol.Name; comboBoxColumn.DataPropertyName = gridCol.Name; comboBoxColumn.HeaderText = gridCol.Text; comboBoxColumn.ReadOnly = gridCol.IsReadOnly; comboBoxColumn.Width = gridCol.Width; comboBoxColumn.FlatStyle = FlatStyle.Flat; comboBoxColumn.Tag = gridCol; string displayMember = ((TableBasedDropDownColumn)gridCol).TextColumnName.Trim(); if (gridCol is YesNoColumn) { DataTable dataTable = new DataTable(); dataTable.Columns.Add("name", typeof(string)); dataTable.Columns.Add("value", typeof(byte)); DataRow dataRow; dataRow = dataTable.NewRow(); dataRow["name"] = config.Settings.RepresentationOfYes; dataRow["value"] = Constants.YES; dataTable.Rows.Add(dataRow); dataRow = dataTable.NewRow(); dataRow["name"] = config.Settings.RepresentationOfNo; dataRow["value"] = Constants.NO; dataTable.Rows.Add(dataRow); dataRow = dataTable.NewRow(); dataRow["name"] = config.Settings.RepresentationOfMissing; dataRow["value"] = DBNull.Value; dataTable.Rows.Add(dataRow); comboBoxColumn.ValueMember = "value"; comboBoxColumn.DisplayMember = "name"; comboBoxColumn.DataSource = dataTable; } else { if (!displayMember.Equals(string.Empty)) { comboBoxColumn.DisplayMember = displayMember; comboBoxColumn.ValueMember = displayMember; if (((TableBasedDropDownColumn)gridCol).ShouldSort) { DataTable dataTable = ((TableBasedDropDownColumn)gridCol).GetSourceData(); dataTable.Select(null, dataTable.Columns[0].ColumnName); comboBoxColumn.DataSource = dataTable; } else { comboBoxColumn.DataSource = ((TableBasedDropDownColumn)gridCol).GetSourceData(); } } } } catch (InvalidOperationException ioEx) { MsgBox.ShowException(ioEx); } gridView.Columns.Add(comboBoxColumn); } else if (gridCol is PatternableColumn) { bool isTimeBasedColumn = false; if (gridCol is DateColumn || gridCol is DateTimeColumn || gridCol is TimeColumn) { isTimeBasedColumn = true; } MaskedTextBoxColumn maskedTextBoxColumn = new MaskedTextBoxColumn(); maskedTextBoxColumn.MinimumWidth = 25; if (isTimeBasedColumn == false) { maskedTextBoxColumn.Mask = AppData.Instance.DataPatternsDataTable.GetMaskByPattern(((PatternableColumn)gridCol).Pattern); } maskedTextBoxColumn.HidePromptOnLeave = DataGridViewTriState.True; maskedTextBoxColumn.Name = gridCol.Name; maskedTextBoxColumn.HeaderText = gridCol.Text; maskedTextBoxColumn.ReadOnly = gridCol.IsReadOnly; maskedTextBoxColumn.Width = gridCol.Width; maskedTextBoxColumn.GridColumn = ((PatternableColumn)gridCol); maskedTextBoxColumn.DataPropertyName = gridCol.Name; if (isTimeBasedColumn == false) { maskedTextBoxColumn.DefaultCellStyle.Format = AppData.Instance.DataPatternsDataTable.GetExpressionByMask(maskedTextBoxColumn.Mask, ((PatternableColumn)gridCol).Pattern); } System.Globalization.DateTimeFormatInfo formatInfo = System.Globalization.DateTimeFormatInfo.CurrentInfo; if (gridCol is DateColumn) { ((System.Windows.Forms.DataGridViewColumn)(maskedTextBoxColumn)).DefaultCellStyle.Format = formatInfo.ShortDatePattern; } else if (gridCol is TimeColumn) { ((System.Windows.Forms.DataGridViewColumn)(maskedTextBoxColumn)).DefaultCellStyle.Format = formatInfo.ShortTimePattern; } gridView.Columns.Add(maskedTextBoxColumn); } else if (gridCol is CheckboxColumn) { DataGridViewColumn column = new DataGridViewCheckBoxColumn(); try { column.MinimumWidth = 25; column.Name = gridCol.Name; column.HeaderText = gridCol.Text; column.ReadOnly = gridCol.IsReadOnly; column.DataPropertyName = gridCol.Name; column.Width = gridCol.Width; } catch (InvalidOperationException ioEx) { MsgBox.ShowException(ioEx); } gridView.Columns.Add(column); } else { DataGridViewTextBoxColumn textBoxColumn = new DataGridViewTextBoxColumn(); try { textBoxColumn.MinimumWidth = 25; textBoxColumn.Name = gridCol.Name; textBoxColumn.HeaderText = gridCol.Text; textBoxColumn.ReadOnly = gridCol.IsReadOnly; textBoxColumn.DataPropertyName = gridCol.Name; if (gridCol is PredefinedColumn) { textBoxColumn.ReadOnly = true; } textBoxColumn.Width = gridCol.Width; if (gridCol is TextColumn) { textBoxColumn.MaxInputLength = ((TextColumn)gridCol).Size; } } catch (InvalidOperationException ioEx) { MsgBox.ShowException(ioEx); } gridView.Columns.Add(textBoxColumn); } } try { gridView.Columns[ColumnNames.REC_STATUS].ReadOnly = true; gridView.Columns[ColumnNames.REC_STATUS].Visible = false; gridView.Columns[ColumnNames.UNIQUE_ROW_ID].ReadOnly = true; gridView.Columns[ColumnNames.UNIQUE_ROW_ID].Visible = false; gridView.Columns[ColumnNames.FOREIGN_KEY].ReadOnly = true; gridView.Columns[ColumnNames.FOREIGN_KEY].Visible = false; if (gridView.Columns.Contains(ColumnNames.GLOBAL_RECORD_ID)) { gridView.Columns[ColumnNames.GLOBAL_RECORD_ID].ReadOnly = true; gridView.Columns[ColumnNames.GLOBAL_RECORD_ID].Visible = false; } gridView.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect; gridView.Tag = gridField; gridView.BackgroundColor = Color.White; gridView.RowHeadersVisible = false; gridView.MultiSelect = true; ContextMenuStrip contextMenuStrip = new ContextMenuStrip(); ToolStripMenuItem deleteRowStripMenuItem = new ToolStripMenuItem(); contextMenuStrip.SuspendLayout(); deleteRowStripMenuItem.Name = "deleteRow"; deleteRowStripMenuItem.Text = "Delete Row"; deleteRowStripMenuItem.Image = global::Epi.Enter.Properties.Resources.delete_icon; deleteRowStripMenuItem.ImageTransparentColor = Color.White; deleteRowStripMenuItem.Tag = gridView; deleteRowStripMenuItem.Click += new EventHandler(deleteRowStripMenuItem_Click); contextMenuStrip.Items.Add(deleteRowStripMenuItem); contextMenuStrip.ResumeLayout(); gridView.ContextMenuStrip = contextMenuStrip; gridView.Refresh(); } catch (InvalidOperationException ioEx) { MsgBox.ShowException(ioEx); } catch (Exception ex) { MsgBox.ShowException(ex); } TransparentLabel prompt = GetPrompt(gridView, gridField, canvasSize); List<Control> controls = new List<Control>(); controls.Add(prompt); controls.Add(gridView); if (!fieldControls.ContainsKey(gridField)) { fieldControls.Add(gridField, controls); } return controls; }
protected void AddZone(MapZone zone) { TreeNode node = new TreeNode(zone.Name); node.Tag = zone; zonesNode.Nodes.Add(node); ContextMenuStrip menu = new ContextMenuStrip(); menu.ShowCheckMargin = false; menu.ShowImageMargin = false; menu.SuspendLayout(); ToolStripButton button = new ToolStripButton("Load Layer..."); button.Tag = zone; button.Click += new EventHandler(loadLayerHandler); menu.Items.Add(button); menu.ResumeLayout(); // update menu width int w = 0; foreach (ToolStripItem item in menu.Items) { if (item.Width > w) { w = item.Width; } } menu.Width = w; node.ContextMenuStrip = menu; }
private void InitializeComponent() { components = new Container(); var resources = new ComponentResourceManager(typeof (FrmMain)); notifyIcon = new NotifyIcon(components); contextMenuStrip = new ContextMenuStrip(components); itmSep00 = new ToolStripSeparator(); itmSep01 = new ToolStripSeparator(); itmShutdown = new ToolStripMenuItem(); lblPhisicalDirectory = new Label(); txtPhisicalDirectory = new TextBox(); chkDisallowRemoteConnections = new CheckBox(); btnBrowse = new Button(); lblVirtualDirectory = new Label(); txtVirtualDirectory = new TextBox(); lblPort = new Label(); txtPort = new TextBox(); btnStartStop = new Button(); btnOK = new Button(); btnShutdown = new Button(); lblSeparatorH = new Label(); lblLink = new Label(); lnkWiki = new LinkLabel(); chkStartServerAtLogin = new CheckBox(); lnkEditWebConfig = new LinkLabel(); itmOpen = new ToolStripMenuItem(); itmEditWebConfig = new ToolStripMenuItem(); itmSettings = new ToolStripMenuItem(); itmAbout = new ToolStripMenuItem(); itmStartStop = new ToolStripMenuItem(); contextMenuStrip.SuspendLayout(); SuspendLayout(); // // notifyIcon // notifyIcon.ContextMenuStrip = contextMenuStrip; notifyIcon.Icon = ((Icon) (resources.GetObject("notifyIcon.Icon"))); notifyIcon.Text = "ASP.net Light Server"; notifyIcon.Visible = true; notifyIcon.DoubleClick += NotifyIconDoubleClick; // // contextMenuStrip // contextMenuStrip.ImageScalingSize = new Size(32, 32); contextMenuStrip.Items.AddRange(new ToolStripItem[] { itmOpen, itmSep00, itmEditWebConfig, itmSettings, itmAbout, itmSep01, itmStartStop, itmShutdown }); contextMenuStrip.Name = "contextMenuStrip"; contextMenuStrip.Size = new Size(182, 266); // // itmSep00 // itmSep00.Name = "itmSep00"; itmSep00.Size = new Size(178, 6); // // itmSep01 // itmSep01.Name = "itmSep01"; itmSep01.Size = new Size(178, 6); // // itmShutdown // itmShutdown.Image = Resources.exit; itmShutdown.Name = "itmShutdown"; itmShutdown.Size = new Size(181, 38); itmShutdown.Text = "Shutdown Server"; itmShutdown.Click += ItmExitClick; // // lblPhisicalDirectory // lblPhisicalDirectory.AutoSize = true; lblPhisicalDirectory.Location = new Point(12, 9); lblPhisicalDirectory.Name = "lblPhisicalDirectory"; lblPhisicalDirectory.Size = new Size(91, 13); lblPhisicalDirectory.TabIndex = 1; lblPhisicalDirectory.Text = "Physical Directory"; // // txtPhisicalDirectory // txtPhisicalDirectory.Location = new Point(12, 25); txtPhisicalDirectory.Name = "txtPhisicalDirectory"; txtPhisicalDirectory.Size = new Size(250, 20); txtPhisicalDirectory.TabIndex = 0; // // chkDisallowRemoteConnections // chkDisallowRemoteConnections.AutoSize = true; chkDisallowRemoteConnections.Location = new Point(12, 108); chkDisallowRemoteConnections.Name = "chkDisallowRemoteConnections"; chkDisallowRemoteConnections.Size = new Size(167, 17); chkDisallowRemoteConnections.TabIndex = 4; chkDisallowRemoteConnections.Text = "Disallow Remote Connections"; chkDisallowRemoteConnections.UseVisualStyleBackColor = true; // // btnBrowse // btnBrowse.Location = new Point(268, 23); btnBrowse.Name = "btnBrowse"; btnBrowse.Size = new Size(60, 23); btnBrowse.TabIndex = 1; btnBrowse.Text = "Browse"; btnBrowse.UseVisualStyleBackColor = true; btnBrowse.Click += BtnBrowseClick; // // lblVirtualDirectory // lblVirtualDirectory.AutoSize = true; lblVirtualDirectory.Location = new Point(12, 57); lblVirtualDirectory.Name = "lblVirtualDirectory"; lblVirtualDirectory.Size = new Size(81, 13); lblVirtualDirectory.TabIndex = 5; lblVirtualDirectory.Text = "Virtual Directory"; // // txtVirtualDirectory // txtVirtualDirectory.Location = new Point(12, 73); txtVirtualDirectory.Name = "txtVirtualDirectory"; txtVirtualDirectory.Size = new Size(250, 20); txtVirtualDirectory.TabIndex = 2; txtVirtualDirectory.Text = "/"; // // lblPort // lblPort.AutoSize = true; lblPort.Location = new Point(268, 57); lblPort.Name = "lblPort"; lblPort.Size = new Size(26, 13); lblPort.TabIndex = 7; lblPort.Text = "Port"; // // txtPort // txtPort.Location = new Point(268, 73); txtPort.Name = "txtPort"; txtPort.Size = new Size(60, 20); txtPort.TabIndex = 3; txtPort.Text = "8080"; // // btnStartStop // btnStartStop.Location = new Point(12, 202); btnStartStop.Name = "btnStartStop"; btnStartStop.Size = new Size(75, 23); btnStartStop.TabIndex = 5; btnStartStop.Text = "Start"; btnStartStop.UseVisualStyleBackColor = true; btnStartStop.Click += BtnStartStopClick; // // btnOK // btnOK.Location = new Point(253, 202); btnOK.Name = "btnOK"; btnOK.Size = new Size(75, 23); btnOK.TabIndex = 7; btnOK.Text = "OK"; btnOK.UseVisualStyleBackColor = true; btnOK.Click += BtnOkClick; // // btnShutdown // btnShutdown.Location = new Point(93, 202); btnShutdown.Name = "btnShutdown"; btnShutdown.Size = new Size(75, 23); btnShutdown.TabIndex = 6; btnShutdown.Text = "Shutdown"; btnShutdown.UseVisualStyleBackColor = true; btnShutdown.Click += BtnShutdownClick; // // lblSeparatorH // lblSeparatorH.BorderStyle = BorderStyle.Fixed3D; lblSeparatorH.Location = new Point(0, 162); lblSeparatorH.Name = "lblSeparatorH"; lblSeparatorH.Size = new Size(342, 2); lblSeparatorH.TabIndex = 12; // // lblLink // lblLink.AutoSize = true; lblLink.Location = new Point(12, 138); lblLink.Name = "lblLink"; lblLink.Size = new Size(30, 13); lblLink.TabIndex = 13; lblLink.Text = "Link:"; // // lnkWiki // lnkWiki.AutoSize = true; lnkWiki.Enabled = false; lnkWiki.Location = new Point(45, 138); lnkWiki.Name = "lnkWiki"; lnkWiki.Size = new Size(33, 13); lnkWiki.TabIndex = 14; lnkWiki.TabStop = true; lnkWiki.Text = "None"; lnkWiki.LinkClicked += LnkWikiLinkClicked; // // chkStartServerAtLogin // chkStartServerAtLogin.AutoSize = true; chkStartServerAtLogin.Location = new Point(12, 176); chkStartServerAtLogin.Name = "chkStartServerAtLogin"; chkStartServerAtLogin.Size = new Size(123, 17); chkStartServerAtLogin.TabIndex = 15; chkStartServerAtLogin.Text = "Start Server at Login"; chkStartServerAtLogin.UseVisualStyleBackColor = true; chkStartServerAtLogin.CheckedChanged += ChkStartServerAtLoginCheckedChanged; // // lnkEditWebConfig // lnkEditWebConfig.AutoSize = true; lnkEditWebConfig.Location = new Point(245, 109); lnkEditWebConfig.Name = "lnkEditWebConfig"; lnkEditWebConfig.Size = new Size(83, 13); lnkEditWebConfig.TabIndex = 16; lnkEditWebConfig.TabStop = true; lnkEditWebConfig.Text = "Edit Web.config"; lnkEditWebConfig.LinkClicked += LnkEditWebConfigLinkClicked; // // itmOpen // itmOpen.Enabled = false; itmOpen.Font = new Font("Tahoma", 8.25F, FontStyle.Bold, GraphicsUnit.Point, ((0))); itmOpen.Image = Resources.browse; itmOpen.Name = "itmOpen"; itmOpen.Size = new Size(181, 38); itmOpen.Text = "Open main page"; itmOpen.Click += ItmOpenClick; // // itmEditWebConfig // itmEditWebConfig.Image = Resources.log; itmEditWebConfig.Name = "itmEditWebConfig"; itmEditWebConfig.Size = new Size(181, 38); itmEditWebConfig.Text = "Edit Web.config"; itmEditWebConfig.Click += ItmEditWebConfigClick; // // itmSettings // itmSettings.Image = ((Image) (resources.GetObject("itmSettings.Image"))); itmSettings.Name = "itmSettings"; itmSettings.Size = new Size(181, 38); itmSettings.Text = "Configuration"; itmSettings.Click += ItmSettingsClick; // // itmAbout // itmAbout.Image = Resources.webserver; itmAbout.Name = "itmAbout"; itmAbout.Size = new Size(181, 38); itmAbout.Text = "About"; itmAbout.Click += ItmAboutClick; // // itmStartStop // itmStartStop.Image = Resources.run; itmStartStop.Name = "itmStartStop"; itmStartStop.Size = new Size(181, 38); itmStartStop.Text = "Start Server"; itmStartStop.Click += ItmStartStopClick; // // FrmMain // ClientSize = new Size(341, 236); Controls.Add(chkStartServerAtLogin); Controls.Add(lblPhisicalDirectory); Controls.Add(lnkEditWebConfig); Controls.Add(lnkWiki); Controls.Add(lblLink); Controls.Add(txtPort); Controls.Add(lblSeparatorH); Controls.Add(txtVirtualDirectory); Controls.Add(lblPort); Controls.Add(lblVirtualDirectory); Controls.Add(txtPhisicalDirectory); Controls.Add(btnOK); Controls.Add(btnShutdown); Controls.Add(chkDisallowRemoteConnections); Controls.Add(btnBrowse); Controls.Add(btnStartStop); Icon = ((Icon) (resources.GetObject("$this.Icon"))); MaximizeBox = false; MinimizeBox = false; Name = "FrmMain"; StartPosition = FormStartPosition.CenterScreen; Text = "ASP.net Light Server"; Load += FrmMain_Load; contextMenuStrip.ResumeLayout(false); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConnectionWindow)); TabController = new TabControl(); cmenTab = new ContextMenuStrip(components); cmenTabFullscreen = new ToolStripMenuItem(); cmenTabSmartSize = new ToolStripMenuItem(); cmenTabViewOnly = new ToolStripMenuItem(); ToolStripSeparator1 = new ToolStripSeparator(); cmenTabScreenshot = new ToolStripMenuItem(); cmenTabStartChat = new ToolStripMenuItem(); cmenTabTransferFile = new ToolStripMenuItem(); cmenTabRefreshScreen = new ToolStripMenuItem(); cmenTabSendSpecialKeys = new ToolStripMenuItem(); cmenTabSendSpecialKeysCtrlAltDel = new ToolStripMenuItem(); cmenTabSendSpecialKeysCtrlEsc = new ToolStripMenuItem(); cmenTabExternalApps = new ToolStripMenuItem(); cmenTabSep1 = new ToolStripSeparator(); cmenTabRenameTab = new ToolStripMenuItem(); cmenTabDuplicateTab = new ToolStripMenuItem(); cmenTabReconnect = new ToolStripMenuItem(); cmenTabDisconnect = new ToolStripMenuItem(); cmenTabPuttySettings = new ToolStripMenuItem(); cmenTab.SuspendLayout(); SuspendLayout(); // //TabController // TabController.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right; TabController.Appearance = TabControl.VisualAppearance.MultiDocument; TabController.Cursor = Cursors.Hand; TabController.DragFromControl = false; TabController.IDEPixelArea = true; TabController.IDEPixelBorder = false; TabController.Location = new Point(0, -1); TabController.Name = "TabController"; TabController.Size = new Size(632, 454); TabController.TabIndex = 0; // //cmenTab // cmenTab.Items.AddRange(new ToolStripItem[] { cmenTabFullscreen, cmenTabSmartSize, cmenTabViewOnly, ToolStripSeparator1, cmenTabScreenshot, cmenTabStartChat, cmenTabTransferFile, cmenTabRefreshScreen, cmenTabSendSpecialKeys, cmenTabPuttySettings, cmenTabExternalApps, cmenTabSep1, cmenTabRenameTab, cmenTabDuplicateTab, cmenTabReconnect, cmenTabDisconnect }); cmenTab.Name = "cmenTab"; cmenTab.RenderMode = ToolStripRenderMode.Professional; cmenTab.Size = new Size(202, 346); // //cmenTabFullscreen // cmenTabFullscreen.Image = Resources.arrow_out; cmenTabFullscreen.Name = "cmenTabFullscreen"; cmenTabFullscreen.Size = new Size(201, 22); cmenTabFullscreen.Text = @"Fullscreen (RDP)"; // //cmenTabSmartSize // cmenTabSmartSize.Image = Resources.SmartSize; cmenTabSmartSize.Name = "cmenTabSmartSize"; cmenTabSmartSize.Size = new Size(201, 22); cmenTabSmartSize.Text = @"SmartSize (RDP/VNC)"; // //cmenTabViewOnly // cmenTabViewOnly.Name = "cmenTabViewOnly"; cmenTabViewOnly.Size = new Size(201, 22); cmenTabViewOnly.Text = @"View Only (VNC)"; // //ToolStripSeparator1 // ToolStripSeparator1.Name = "ToolStripSeparator1"; ToolStripSeparator1.Size = new Size(198, 6); // //cmenTabScreenshot // cmenTabScreenshot.Image = Resources.Screenshot_Add; cmenTabScreenshot.Name = "cmenTabScreenshot"; cmenTabScreenshot.Size = new Size(201, 22); cmenTabScreenshot.Text = @"Screenshot"; // //cmenTabStartChat // cmenTabStartChat.Image = Resources.Chat; cmenTabStartChat.Name = "cmenTabStartChat"; cmenTabStartChat.Size = new Size(201, 22); cmenTabStartChat.Text = @"Start Chat (VNC)"; cmenTabStartChat.Visible = false; // //cmenTabTransferFile // cmenTabTransferFile.Image = Resources.SSHTransfer; cmenTabTransferFile.Name = "cmenTabTransferFile"; cmenTabTransferFile.Size = new Size(201, 22); cmenTabTransferFile.Text = @"Transfer File (SSH)"; // //cmenTabRefreshScreen // cmenTabRefreshScreen.Image = Resources.Refresh; cmenTabRefreshScreen.Name = "cmenTabRefreshScreen"; cmenTabRefreshScreen.Size = new Size(201, 22); cmenTabRefreshScreen.Text = @"Refresh Screen (VNC)"; // //cmenTabSendSpecialKeys // cmenTabSendSpecialKeys.DropDownItems.AddRange(new ToolStripItem[] { cmenTabSendSpecialKeysCtrlAltDel, cmenTabSendSpecialKeysCtrlEsc }); cmenTabSendSpecialKeys.Image = Resources.Keyboard; cmenTabSendSpecialKeys.Name = "cmenTabSendSpecialKeys"; cmenTabSendSpecialKeys.Size = new Size(201, 22); cmenTabSendSpecialKeys.Text = @"Send special Keys (VNC)"; // //cmenTabSendSpecialKeysCtrlAltDel // cmenTabSendSpecialKeysCtrlAltDel.Name = "cmenTabSendSpecialKeysCtrlAltDel"; cmenTabSendSpecialKeysCtrlAltDel.Size = new Size(141, 22); cmenTabSendSpecialKeysCtrlAltDel.Text = @"Ctrl+Alt+Del"; // //cmenTabSendSpecialKeysCtrlEsc // cmenTabSendSpecialKeysCtrlEsc.Name = "cmenTabSendSpecialKeysCtrlEsc"; cmenTabSendSpecialKeysCtrlEsc.Size = new Size(141, 22); cmenTabSendSpecialKeysCtrlEsc.Text = @"Ctrl+Esc"; // //cmenTabExternalApps // cmenTabExternalApps.Image = (Image)(resources.GetObject("cmenTabExternalApps.Image")); cmenTabExternalApps.Name = "cmenTabExternalApps"; cmenTabExternalApps.Size = new Size(201, 22); cmenTabExternalApps.Text = @"External Applications"; // //cmenTabSep1 // cmenTabSep1.Name = "cmenTabSep1"; cmenTabSep1.Size = new Size(198, 6); // //cmenTabRenameTab // cmenTabRenameTab.Image = Resources.Rename; cmenTabRenameTab.Name = "cmenTabRenameTab"; cmenTabRenameTab.Size = new Size(201, 22); cmenTabRenameTab.Text = @"Rename Tab"; // //cmenTabDuplicateTab // cmenTabDuplicateTab.Name = "cmenTabDuplicateTab"; cmenTabDuplicateTab.Size = new Size(201, 22); cmenTabDuplicateTab.Text = @"Duplicate Tab"; // //cmenTabReconnect // cmenTabReconnect.Image = (Image)(resources.GetObject("cmenTabReconnect.Image")); cmenTabReconnect.Name = "cmenTabReconnect"; cmenTabReconnect.Size = new Size(201, 22); cmenTabReconnect.Text = @"Reconnect"; // //cmenTabDisconnect // cmenTabDisconnect.Image = Resources.Pause; cmenTabDisconnect.Name = "cmenTabDisconnect"; cmenTabDisconnect.Size = new Size(201, 22); cmenTabDisconnect.Text = @"Disconnect"; // //cmenTabPuttySettings // cmenTabPuttySettings.Name = "cmenTabPuttySettings"; cmenTabPuttySettings.Size = new Size(201, 22); cmenTabPuttySettings.Text = @"PuTTY Settings"; // //Connection // ClientSize = new Size(632, 453); Controls.Add(TabController); Font = new Font("Segoe UI", 8.25F, FontStyle.Regular, GraphicsUnit.Point, Convert.ToByte(0)); Icon = Resources.mRemote_Icon; Name = "Connection"; TabText = @"UI.Window.Connection"; Text = @"UI.Window.Connection"; cmenTab.ResumeLayout(false); ResumeLayout(false); }
/// <summary> /// Creates the context menu. /// </summary> private void CreateContextMenu() { m_tsmiExpandCollapse = new ToolStripMenuItem(); m_tsmiSelectAnim = new ToolStripMenuItem("Animation Speed"); m_tsmiNoAnim = new ToolStripMenuItem("None"); m_tsmiHighAnim = new ToolStripMenuItem("High"); m_tsmiMedAnim = new ToolStripMenuItem("Medium"); m_tsmiLowAnim = new ToolStripMenuItem("Low"); m_tsmiSeparator = new ToolStripSeparator(); // Add menu items m_tsmiSelectAnim.DropDownItems.AddRange(new ToolStripItem[] { m_tsmiNoAnim, m_tsmiHighAnim, m_tsmiMedAnim, m_tsmiLowAnim }); // Create context menu m_contextMenuStrip = new ContextMenuStrip(components); m_contextMenuStrip.SuspendLayout(); m_contextMenuStrip.Items.AddRange(new ToolStripItem[] { m_tsmiExpandCollapse, m_tsmiSeparator, m_tsmiSelectAnim }); m_contextMenuStrip.ResumeLayout(false); // Subscribe events m_tsmiExpandCollapse.Click += tsmiExpandCollapse_Click; foreach (ToolStripMenuItem item in m_tsmiSelectAnim.DropDownItems) { item.Click += animationSpeedSelect_Click; } }
private void InitializeComponent() { _niTrayicon = new NotifyIcon(); _niTrayicon.BalloonTipIcon = ToolTipIcon.Info; _niTrayicon.BalloonTipTitle = "TimeNazi"; _niTrayicon.BalloonTipText = "TimeNazi has been launched!"; _niTrayicon.Text = "TimeNazi"; _niTrayicon.Icon = Properties.Resources.clock_16; _niTrayicon.MouseUp += _niTrayicon_MouseUp; _niTrayicon.Visible = true; _cmsTrayIconContextMenu = new ContextMenuStrip(); _cmsTrayIconContextMenu.SuspendLayout(); // // MenuItemClose // _tsmiMenuItemExit = new ToolStripMenuItem(); _tsmiMenuItemExit.Name = "MenuItemClose"; _tsmiMenuItemExit.Text = "Exit"; _tsmiMenuItemExit.Click += _tsmiMenuItemClose_Click; // // MenuItemSettings // _tsmiMenuItemSettings = new ToolStripMenuItem(); _tsmiMenuItemSettings.Name = "MenuItemSettings"; _tsmiMenuItemSettings.Text = "Settings"; _tsmiMenuItemSettings.Click += _tsmiMenuItemSettings_Click; // // _tssSeparator // _tssSeparator = new ToolStripSeparator(); // // MenuItemShowClock // _tsmiMenuItemShowClock = new ToolStripMenuItem(); _tsmiMenuItemShowClock.Text = "Show clock"; _tsmiMenuItemShowClock.CheckOnClick = true; // // _tsmiMenuItemEnable // _tsmiMenuItemEnable = new ToolStripMenuItem(); _tsmiMenuItemEnable.Text = "Enabled"; _tsmiMenuItemEnable.CheckOnClick = true; _tsmiMenuItemEnable.Checked = true; // // MenuItemAbout // var versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location); _tsmiMenuItemAbout = new ToolStripMenuItem(); _tsmiMenuItemAbout.Name = "MenuItemAbout"; _tsmiMenuItemAbout.Text = string.Format("{0} v{1}.{2}.{3}", versionInfo.ProductName, versionInfo.ProductMajorPart, versionInfo.ProductMinorPart, versionInfo.ProductBuildPart); _tsmiMenuItemAbout.ToolTipText = string.Format("{0}, {1}", versionInfo.LegalCopyright, versionInfo.CompanyName); _tsmiMenuItemAbout.Enabled = false; // // TrayIconContextMenu // _cmsTrayIconContextMenu.Items.AddRange(new ToolStripItem[] { _tsmiMenuItemAbout, new ToolStripSeparator(), _tsmiMenuItemSettings, _tsmiMenuItemShowClock, _tsmiMenuItemEnable, _tssSeparator, _tsmiMenuItemExit }); _cmsTrayIconContextMenu.Name = "TrayIconContextMenu"; _cmsTrayIconContextMenu.ResumeLayout(false); _niTrayicon.ContextMenuStrip = _cmsTrayIconContextMenu; //_niTrayicon.BalloonTipIcon = ToolTipIcon.Warning; //_niTrayicon.BalloonTipText = "Last minute!"; //_niTrayicon.BalloonTipTitle = "Warning!"; //_niTrayicon.ShowBalloonTip(10000); }
private void InitializeComponent() { _components = new Container(); _systemTrayContextMenu = new ContextMenuStrip(_components); _systemTrayContextMenu.SuspendLayout(); SuspendLayout(); _systemTrayContextMenu.Size = new Size(104, 26); _exitToolStripItem = new ToolStripMenuItem() { Size = new Size(103, 22), Text = GlobalData.GuiExit }; _exitToolStripItem.Click += new EventHandler(ExecuteExit); ToolStripItem[] toolStripItems = new ToolStripItem[] { _exitToolStripItem }; _systemTrayContextMenu.Items.AddRange(toolStripItems); using (Stream iconStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("OpenSAGE.nod.ico")) { _systemTrayIcon = new NotifyIcon(_components) { BalloonTipIcon = ToolTipIcon.Info, BalloonTipText = GlobalData.AppName + " Background Process", ContextMenuStrip = _systemTrayContextMenu, Icon = new Icon(iconStream), Text = GlobalData.AppName, Visible = true }; } AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(292, 266); Name = "SystemTrayForm"; ShowInTaskbar = false; Text = "SystemTrayForm"; _systemTrayContextMenu.ResumeLayout(false); ResumeLayout(false); }
/// <summary> /// Add the array of menu items to the system tray /// </summary> /// <param name="cms">The menu</param> /// <param name="parent">The root of the systray menu</param> public override void getSessionMenuItems(ContextMenuStrip cms, ToolStripItemCollection parent) { // Suspend the layout before modification cms.SuspendLayout(); parent.Clear(); // Setup the System tray array of menu items ToolStripMenuItem[] tsmiArray = new ToolStripMenuItem[getSessionController().getSessionList().Count]; int i = 0; foreach (Session s in getSessionController().getSessionList()) { tsmiArray[i] = new ToolStripMenuItem(s.SessionDisplayText, null, listBox1_DoubleClick); // Make sure the menu item is tagged with the session tsmiArray[i].Tag = s; i++; } if ( tsmiArray != null ) parent.AddRange(tsmiArray); // Now resume the layout cms.ResumeLayout(); }