void btnImportCT_Click(object sender, EventArgs e) { FolderBrowserDialog fbd = new FolderBrowserDialog(); String selectPath = @"C:\AirwayVE"; if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { selectPath = fbd.SelectedPath; } _dictionary.Clear(); _CTPathList.Clear(); panelCTList.Controls.Clear(); getAllCTPath(selectPath); for (int i = 0; i < _CTPathList.Count; i++) { String path = _CTPathList[i].ToString(); RibbonStyle.RibbonMenuButton btnTemp = getRibbonBtn(path, i); panelCTList.Controls.Add(btnTemp); setCTData(path); } this.dataGridCT.ItemsSource = _CTPatientsList; }
private void btnTemp_Click(object sender, EventArgs e) { RibbonStyle.RibbonMenuButton btnTemp = (RibbonStyle.RibbonMenuButton)sender; int number = int.Parse(btnTemp.Name); if (number < _CTPathList.Count) { _selectPath = _CTPathList[number].ToString(); _selectedtCTDicomInfo = (CTDicomInfo)_CTPatientsList[number]; ctview.SetImageList(_dictionary[_selectPath]); } else { System.Windows.MessageBox.Show("数据不存在"); } }
private RibbonStyle.RibbonMenuButton getRibbonBtn(String CTFolderPath, int numb) { ArrayList CTFileList = _dictionary[CTFolderPath]; DicomImage image = new DicomImage(Path.Combine(CTFolderPath, CTFileList[0].ToString())); image.WindowWidth = 1000; image.WindowCenter = -600; RibbonStyle.RibbonMenuButton btnTemp = new RibbonStyle.RibbonMenuButton(); // // btnTemp // btnTemp.AllowDrop = true; btnTemp.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; btnTemp.BackColor = System.Drawing.Color.Transparent; btnTemp.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(4)))), ((int)(((byte)(4))))); btnTemp.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(153)))), ((int)(((byte)(122)))), ((int)(((byte)(122))))); btnTemp.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); btnTemp.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); btnTemp.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); btnTemp.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); btnTemp.FadingSpeed = 20; btnTemp.FlatAppearance.BorderSize = 0; btnTemp.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btnTemp.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); btnTemp.ForeColor = System.Drawing.Color.DarkBlue; btnTemp.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; //btnTemp.Image = global::LungCare.Airway.WinformUIControls.Properties.Resources.Quit; btnTemp.Image = (Bitmap)ImageOperation.CloneImage(image.RenderImage()); btnTemp.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Top; btnTemp.ImageOffset = 5; btnTemp.IsPressed = false; btnTemp.KeepPress = false; btnTemp.MaxImageSize = new System.Drawing.Point(0, 0); btnTemp.MenuPos = new System.Drawing.Point(0, 0); btnTemp.Name = numb.ToString(); btnTemp.Radius = 8; btnTemp.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; btnTemp.Size = new System.Drawing.Size(150, 150); btnTemp.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; btnTemp.SplitDistance = 0; btnTemp.TabIndex = 95; btnTemp.Title = ""; btnTemp.UseVisualStyleBackColor = true; btnTemp.Click += btnTemp_Click; return(btnTemp); }
public void SelectFirstSeries() { if (panelCTList.Controls.Count > 0) { try { RibbonStyle.RibbonMenuButton button = (RibbonStyle.RibbonMenuButton)panelCTList.Controls[0]; button.PerformClick(); } catch (Exception) { } } if (ctview != null) { ctview.SetPictureBoxWidth(); } }
private void SetTextButtons() { grouper1.Controls.Clear(); grouper1.Height = 35 + (getWidget().getTabNames().Length * 23); grouper2.Top = grouper1.Top + grouper1.Height + 10; int i = 0; foreach (string s in getWidget().getTabNames()) { RibbonStyle.RibbonMenuButton b = new RibbonStyle.RibbonMenuButton(); b.SetBounds(9, 25 + i * 23, 100, 23); b.Text = s; b.Click += new System.EventHandler(this.TextButton_Click); b.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); b.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(187)))), ((int)(((byte)(213))))); b.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(240)))), ((int)(((byte)(255))))); b.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(153)))), ((int)(((byte)(255))))); b.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(224)))), ((int)(((byte)(255))))); b.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(153)))), ((int)(((byte)(255))))); b.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; b.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; b.ImageOffset = 2; b.KeepPress = true; b.SinglePressButton = false; b.FadingSpeed = 35; b.Name = i.ToString(); b.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Center; if (i == 0) { b.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Top; } if (i == getWidget().getTabNames().Length - 1) { b.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Bottom; } grouper1.Controls.Add(b); // if (i == getWidget().getSelectedTab()) b.Check(); i++; } }
private void InitButton() { this.btnClose = new RibbonStyle.RibbonMenuButton(); this.btnClose.AllowDrop = true; this.btnClose.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnClose.BackColor = System.Drawing.Color.Transparent; this.btnClose.BackgroundImage = global::LungCare.SupportPlatform.Properties.Resources.保存; this.btnClose.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(4)))), ((int)(((byte)(4))))); this.btnClose.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(153)))), ((int)(((byte)(122)))), ((int)(((byte)(122))))); this.btnClose.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnClose.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnClose.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnClose.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnClose.FadingSpeed = 20; this.btnClose.FlatAppearance.BorderSize = 0; this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClose.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.btnClose.ForeColor = System.Drawing.Color.DarkBlue; this.btnClose.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnClose.Image = global::LungCare.SupportPlatform.Properties.Resources.close; this.btnClose.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Top; this.btnClose.ImageOffset = 5; this.btnClose.IsPressed = false; this.btnClose.KeepPress = false; this.btnClose.MaxImageSize = new System.Drawing.Point(0, 0); this.btnClose.MenuPos = new System.Drawing.Point(0, 0); this.btnClose.Name = "btnSaveLesionResult"; this.btnClose.Radius = 8; this.btnClose.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnClose.Size = new System.Drawing.Size(50, 50); this.btnClose.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnClose.SplitDistance = 0; this.btnClose.TabIndex = 101; this.btnClose.Title = ""; this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += btnClose_Click; }
/// <summary> /// 判断一个不包含文件夹的文件夹是不是符合CT文件夹,文件夹中的CT文件数要大于20 /// </summary> /// <param name="folderPath">需要判断的文件夹路径</param> public void checkCTFolder(String folderPath) { //DirectoryInfo dir = new DirectoryInfo(folderPath); //FileInfo[] fileList = dir.GetFiles(); string[] files = Directory.GetFiles(folderPath); if (files.Length < 1) { return; } Array.Sort(files, new FileNameComparer1()); ArrayList CTFileList = new ArrayList(); bool firstDicom = false; int tempIndex = 0; foreach (string file in files) { //判断文件路径是不是DICOM if (isDicom(file)) { firstDicom = true; Console.WriteLine(file); CTFileList.Add(file); ctview.SetPicturexBoxImage(file); if (tempIndex == 0) { _dictionary.Add(folderPath, CTFileList); _CTPathList.Add(folderPath); String path = folderPath; RibbonStyle.RibbonMenuButton btnTemp = addThumbImageRibbonBtn(path, index); panelCTList.Controls.Add(btnTemp); setCTData(file); this.dataGridCT.ItemsSource = null; this.dataGridCT.ItemsSource = _CTPatientsList; System.Windows.Forms.Application.DoEvents(); ++index; firstDicom = false; } tempIndex++; } } //if(CTFileList.Count>=20) { //IComparer fileNameCompare = new FilesNameComparerClass(); //CTFileList.Sort(fileNameCompare); //Array temp = CTFileList.ToArray(); //Array.Sort(temp, new FileNameComparer1()); //CTFileList.Clear(); //foreach(String s in temp){ // CTFileList.Add(s); //} //_dictionary.Add(folderPath,CTFileList); //_CTPathList.Add(folderPath); } if (_CTPathList.Count != 0) { //ctview.SetImage(_dictionary[_CTPathList[0].ToString()]); } }
private void LoadComponent() { btnImportCT = new RibbonStyle.RibbonMenuButton(); btnSaveCT = new RibbonStyle.RibbonMenuButton(); btnExit = new RibbonStyle.RibbonMenuButton(); // // btnImportCT // this.btnImportCT.AllowDrop = true; this.btnImportCT.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnImportCT.BackColor = System.Drawing.Color.Transparent; //this.btnImportCT.BackgroundImage = global::LungCare.Airway.WinformUIControls.Properties.Resources.支气管加点; this.btnImportCT.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(4)))), ((int)(((byte)(4))))); this.btnImportCT.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(153)))), ((int)(((byte)(122)))), ((int)(((byte)(122))))); this.btnImportCT.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnImportCT.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnImportCT.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnImportCT.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnImportCT.FadingSpeed = 20; this.btnImportCT.FlatAppearance.BorderSize = 0; this.btnImportCT.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnImportCT.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.btnImportCT.ForeColor = System.Drawing.Color.DarkBlue; this.btnImportCT.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnImportCT.Image = global::LungCare.SupportPlatform.Properties.Resources.open; this.btnImportCT.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Top; this.btnImportCT.ImageOffset = 5; this.btnImportCT.IsPressed = false; this.btnImportCT.KeepPress = false; this.btnImportCT.MaxImageSize = new System.Drawing.Point(0, 0); this.btnImportCT.MenuPos = new System.Drawing.Point(0, 0); this.btnImportCT.Name = "btnAddPoint"; this.btnImportCT.Radius = 8; this.btnImportCT.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnImportCT.Size = new System.Drawing.Size(50, 50); this.btnImportCT.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnImportCT.SplitDistance = 0; this.btnImportCT.TabIndex = 96; this.btnImportCT.Title = ""; this.btnImportCT.UseVisualStyleBackColor = true; // // btnSaveCT // this.btnSaveCT.AllowDrop = true; this.btnSaveCT.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnSaveCT.BackColor = System.Drawing.Color.Transparent; //this.btnSaveCT.BackgroundImage = global::LungCare.Airway.WinformUIControls.Properties.Resources.确认肿瘤位置; this.btnSaveCT.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(4)))), ((int)(((byte)(4))))); this.btnSaveCT.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(153)))), ((int)(((byte)(122)))), ((int)(((byte)(122))))); this.btnSaveCT.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnSaveCT.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnSaveCT.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnSaveCT.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnSaveCT.FadingSpeed = 20; this.btnSaveCT.FlatAppearance.BorderSize = 0; this.btnSaveCT.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSaveCT.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.btnSaveCT.ForeColor = System.Drawing.Color.DarkBlue; this.btnSaveCT.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnSaveCT.Image = global::LungCare.SupportPlatform.Properties.Resources.save; this.btnSaveCT.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Top; this.btnSaveCT.ImageOffset = 5; this.btnSaveCT.IsPressed = false; this.btnSaveCT.KeepPress = false; this.btnSaveCT.MaxImageSize = new System.Drawing.Point(0, 0); this.btnSaveCT.MenuPos = new System.Drawing.Point(0, 0); this.btnSaveCT.Name = "btnDrawLesion"; this.btnSaveCT.Radius = 8; this.btnSaveCT.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnSaveCT.Size = new System.Drawing.Size(50, 50); this.btnSaveCT.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnSaveCT.SplitDistance = 0; this.btnSaveCT.TabIndex = 99; this.btnSaveCT.Title = ""; this.btnSaveCT.UseVisualStyleBackColor = true; // // btnExit // this.btnExit.AllowDrop = true; this.btnExit.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnExit.BackColor = System.Drawing.Color.Transparent; this.btnExit.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(4)))), ((int)(((byte)(4))))); this.btnExit.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(153)))), ((int)(((byte)(122)))), ((int)(((byte)(122))))); this.btnExit.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnExit.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnExit.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnExit.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnExit.FadingSpeed = 20; this.btnExit.FlatAppearance.BorderSize = 0; this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnExit.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.btnExit.ForeColor = System.Drawing.Color.DarkBlue; this.btnExit.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnExit.Image = global::LungCare.SupportPlatform.Properties.Resources.Quit; this.btnExit.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Top; this.btnExit.ImageOffset = 5; this.btnExit.IsPressed = false; this.btnExit.KeepPress = false; this.btnExit.MaxImageSize = new System.Drawing.Point(0, 0); this.btnExit.MenuPos = new System.Drawing.Point(0, 0); this.btnExit.Name = "btnExit"; this.btnExit.Radius = 8; this.btnExit.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnExit.Size = new System.Drawing.Size(50, 50); this.btnExit.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnExit.SplitDistance = 0; this.btnExit.TabIndex = 95; this.btnExit.Title = ""; this.btnExit.UseVisualStyleBackColor = true; btnImportCT.Click += btnImportCT_Click; btnSaveCT.Click += btnSaveCT_Click; btnExit.Click += btnExit_Click; panel.Controls.Add(btnImportCT); panel.Controls.Add(btnSaveCT); panel.Controls.Add(btnExit); System.Windows.Forms.ToolTip p1 = new System.Windows.Forms.ToolTip(); p1.ShowAlways = true; p1.SetToolTip(this.btnImportCT, "导入CT文件"); p1.SetToolTip(this.btnSaveCT, "保存"); p1.SetToolTip(this.btnExit, "退出"); ctview = new CTViewControlSingle(); ctViewControlHost.Child = ctview; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServerStarterView)); this.lblYourIP = new System.Windows.Forms.Label(); this.txtIpAddress = new System.Windows.Forms.TextBox(); this.btnCancel = new RibbonStyle.RibbonMenuButton(); this.pnlConsole = new System.Windows.Forms.Panel(); this.consoleView = new PoL.WinFormsView.Game.ConsoleView(); this.pnlConsoleTitle = new System.Windows.Forms.Panel(); this.lblConsoleTitle = new RibbonStyle.RibbonMenuButton(); this.pnlPlayers = new System.Windows.Forms.Panel(); this.listPlayers = new System.Windows.Forms.FlowLayoutPanel(); this.pnlPlayersTitle = new System.Windows.Forms.Panel(); this.lblPlayers = new RibbonStyle.RibbonMenuButton(); this.btnStart = new RibbonStyle.RibbonMenuButton(); this.pnlConsole.SuspendLayout(); this.pnlConsoleTitle.SuspendLayout(); this.pnlPlayers.SuspendLayout(); this.pnlPlayersTitle.SuspendLayout(); this.SuspendLayout(); // // lblYourIP // this.lblYourIP.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lblYourIP.Location = new System.Drawing.Point(12, 315); this.lblYourIP.Name = "lblYourIP"; this.lblYourIP.Size = new System.Drawing.Size(104, 15); this.lblYourIP.TabIndex = 104; this.lblYourIP.Text = "Your IP:"; this.lblYourIP.TextAlign = System.Drawing.ContentAlignment.TopRight; // // txtIpAddress // this.txtIpAddress.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.txtIpAddress.Location = new System.Drawing.Point(12, 333); this.txtIpAddress.Name = "txtIpAddress"; this.txtIpAddress.ReadOnly = true; this.txtIpAddress.Size = new System.Drawing.Size(104, 23); this.txtIpAddress.TabIndex = 105; this.txtIpAddress.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnCancel.BackColor = System.Drawing.Color.Transparent; this.btnCancel.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.btnCancel.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(59)))), ((int)(((byte)(66)))), ((int)(((byte)(76))))); this.btnCancel.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnCancel.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnCancel.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnCancel.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnCancel.FadingSpeed = 20; this.btnCancel.FlatAppearance.BorderSize = 0; this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.ForeColor = System.Drawing.Color.DarkBlue; this.btnCancel.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnCancel.Image = global::PoL.WinFormsView.Properties.Resources.emblem_symbolic_link; this.btnCancel.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.btnCancel.ImageOffset = 8; this.btnCancel.IsPressed = false; this.btnCancel.KeepPress = false; this.btnCancel.Location = new System.Drawing.Point(318, 315); this.btnCancel.MaxImageSize = new System.Drawing.Point(24, 24); this.btnCancel.MenuPos = new System.Drawing.Point(0, 0); this.btnCancel.Name = "btnCancel"; this.btnCancel.Radius = 15; this.btnCancel.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnCancel.Size = new System.Drawing.Size(117, 41); this.btnCancel.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnCancel.SplitDistance = 30; this.btnCancel.TabIndex = 108; this.btnCancel.Text = "Cancel"; this.btnCancel.Title = ""; this.btnCancel.UseVisualStyleBackColor = true; // // pnlConsole // this.pnlConsole.Controls.Add(this.consoleView); this.pnlConsole.Controls.Add(this.pnlConsoleTitle); this.pnlConsole.Location = new System.Drawing.Point(318, 12); this.pnlConsole.Name = "pnlConsole"; this.pnlConsole.Size = new System.Drawing.Size(300, 290); this.pnlConsole.TabIndex = 109; // // consoleView // this.consoleView.CurrentText = ""; this.consoleView.DefaultMessagesVisible = false; this.consoleView.Dock = System.Windows.Forms.DockStyle.Fill; this.consoleView.Location = new System.Drawing.Point(0, 45); this.consoleView.Name = "consoleView"; this.consoleView.Size = new System.Drawing.Size(300, 245); this.consoleView.TabIndex = 1; // // pnlConsoleTitle // this.pnlConsoleTitle.Controls.Add(this.lblConsoleTitle); this.pnlConsoleTitle.Dock = System.Windows.Forms.DockStyle.Top; this.pnlConsoleTitle.Location = new System.Drawing.Point(0, 0); this.pnlConsoleTitle.Name = "pnlConsoleTitle"; this.pnlConsoleTitle.Size = new System.Drawing.Size(300, 45); this.pnlConsoleTitle.TabIndex = 0; // // lblConsoleTitle // this.lblConsoleTitle.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.lblConsoleTitle.BackColor = System.Drawing.Color.Transparent; this.lblConsoleTitle.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.lblConsoleTitle.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(187)))), ((int)(((byte)(213))))); this.lblConsoleTitle.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.lblConsoleTitle.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.lblConsoleTitle.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.lblConsoleTitle.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.lblConsoleTitle.Dock = System.Windows.Forms.DockStyle.Fill; this.lblConsoleTitle.Enabled = false; this.lblConsoleTitle.FadingSpeed = 0; this.lblConsoleTitle.FlatAppearance.BorderSize = 0; this.lblConsoleTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.lblConsoleTitle.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblConsoleTitle.ForeColor = System.Drawing.Color.DarkBlue; this.lblConsoleTitle.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Top; this.lblConsoleTitle.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.lblConsoleTitle.ImageOffset = 5; this.lblConsoleTitle.IsPressed = false; this.lblConsoleTitle.KeepPress = false; this.lblConsoleTitle.Location = new System.Drawing.Point(0, 0); this.lblConsoleTitle.MaxImageSize = new System.Drawing.Point(38, 0); this.lblConsoleTitle.MenuPos = new System.Drawing.Point(0, 0); this.lblConsoleTitle.Name = "lblConsoleTitle"; this.lblConsoleTitle.Radius = 15; this.lblConsoleTitle.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.lblConsoleTitle.Size = new System.Drawing.Size(300, 45); this.lblConsoleTitle.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.lblConsoleTitle.SplitDistance = 0; this.lblConsoleTitle.TabIndex = 49; this.lblConsoleTitle.Text = "Chat"; this.lblConsoleTitle.Title = "Chat"; this.lblConsoleTitle.UseVisualStyleBackColor = true; // // pnlPlayers // this.pnlPlayers.Controls.Add(this.listPlayers); this.pnlPlayers.Controls.Add(this.pnlPlayersTitle); this.pnlPlayers.Location = new System.Drawing.Point(12, 12); this.pnlPlayers.Name = "pnlPlayers"; this.pnlPlayers.Size = new System.Drawing.Size(300, 290); this.pnlPlayers.TabIndex = 107; // // listPlayers // this.listPlayers.AutoScroll = true; this.listPlayers.BackColor = System.Drawing.Color.White; this.listPlayers.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.listPlayers.Dock = System.Windows.Forms.DockStyle.Fill; this.listPlayers.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; this.listPlayers.Location = new System.Drawing.Point(0, 45); this.listPlayers.Name = "listPlayers"; this.listPlayers.Size = new System.Drawing.Size(300, 245); this.listPlayers.TabIndex = 112; this.listPlayers.WrapContents = false; // // pnlPlayersTitle // this.pnlPlayersTitle.Controls.Add(this.lblPlayers); this.pnlPlayersTitle.Dock = System.Windows.Forms.DockStyle.Top; this.pnlPlayersTitle.Location = new System.Drawing.Point(0, 0); this.pnlPlayersTitle.Name = "pnlPlayersTitle"; this.pnlPlayersTitle.Size = new System.Drawing.Size(300, 45); this.pnlPlayersTitle.TabIndex = 107; // // lblPlayers // this.lblPlayers.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.lblPlayers.BackColor = System.Drawing.Color.Transparent; this.lblPlayers.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.lblPlayers.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(187)))), ((int)(((byte)(213))))); this.lblPlayers.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.lblPlayers.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.lblPlayers.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.lblPlayers.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.lblPlayers.Dock = System.Windows.Forms.DockStyle.Fill; this.lblPlayers.Enabled = false; this.lblPlayers.FadingSpeed = 0; this.lblPlayers.FlatAppearance.BorderSize = 0; this.lblPlayers.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.lblPlayers.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblPlayers.ForeColor = System.Drawing.Color.DarkBlue; this.lblPlayers.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Top; this.lblPlayers.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.lblPlayers.ImageOffset = 5; this.lblPlayers.IsPressed = false; this.lblPlayers.KeepPress = false; this.lblPlayers.Location = new System.Drawing.Point(0, 0); this.lblPlayers.MaxImageSize = new System.Drawing.Point(38, 0); this.lblPlayers.MenuPos = new System.Drawing.Point(0, 0); this.lblPlayers.Name = "lblPlayers"; this.lblPlayers.Radius = 15; this.lblPlayers.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.lblPlayers.Size = new System.Drawing.Size(300, 45); this.lblPlayers.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.lblPlayers.SplitDistance = 0; this.lblPlayers.TabIndex = 48; this.lblPlayers.Text = "Player list"; this.lblPlayers.Title = "Players"; this.lblPlayers.UseVisualStyleBackColor = true; // // btnStart // this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnStart.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnStart.BackColor = System.Drawing.Color.Transparent; this.btnStart.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.btnStart.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(59)))), ((int)(((byte)(66)))), ((int)(((byte)(76))))); this.btnStart.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnStart.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnStart.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnStart.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnStart.FadingSpeed = 20; this.btnStart.FlatAppearance.BorderSize = 0; this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnStart.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnStart.ForeColor = System.Drawing.Color.DarkBlue; this.btnStart.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnStart.Image = global::PoL.WinFormsView.Properties.Resources.emblem_default; this.btnStart.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.btnStart.ImageOffset = 8; this.btnStart.IsPressed = false; this.btnStart.KeepPress = false; this.btnStart.Location = new System.Drawing.Point(195, 315); this.btnStart.MaxImageSize = new System.Drawing.Point(24, 24); this.btnStart.MenuPos = new System.Drawing.Point(0, 0); this.btnStart.Name = "btnStart"; this.btnStart.Radius = 15; this.btnStart.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnStart.Size = new System.Drawing.Size(117, 41); this.btnStart.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnStart.SplitDistance = 30; this.btnStart.TabIndex = 110; this.btnStart.Text = "Start"; this.btnStart.Title = ""; this.btnStart.UseVisualStyleBackColor = true; // // ServerStarterView // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; this.ClientSize = new System.Drawing.Size(630, 368); this.Controls.Add(this.btnStart); this.Controls.Add(this.btnCancel); this.Controls.Add(this.pnlConsole); this.Controls.Add(this.pnlPlayers); this.Controls.Add(this.lblYourIP); this.Controls.Add(this.txtIpAddress); this.Font = new System.Drawing.Font("Segoe UI", 9F); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ServerStarterView"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Create Multiplayer game"; this.pnlConsole.ResumeLayout(false); this.pnlConsoleTitle.ResumeLayout(false); this.pnlPlayers.ResumeLayout(false); this.pnlPlayersTitle.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void Update() { WhatChanged(); int i = 0; int totalrows = 0; int blankrows = 1; if (verseSeparator == SongVerseSeparator.TwoBlankLines) { blankrows = 2; } try { if (renew) { #region renew RemoveBackground(); foreach (string line in oldLines) { string[] mystringarr = line.Split("\n".ToCharArray()); int rows = mystringarr.Length; // Background Panel CodeVendor.Controls.Grouper p = new CodeVendor.Controls.Grouper(); p.Height = (rows * textHeight) + 14; p.Width = rtePanel.Width + 1; p.Location = new Point(-1, (totalrows * textHeight) - 11); p.BackgroundGradientMode = CodeVendor.Controls.Grouper.GroupBoxGradientMode.ForwardDiagonal; //p.BackgroundColor = GetColor((SongListItem)Typelist[i]); //p.BackgroundGradientColor = Color.LightBlue; setColor(p, (LyricsType)Typelist[i]); p.GroupTitle = ""; p.BorderColor = Color.White; p.RoundCorners = 0; p.Hide(); rtePanel.Controls.Add(p); p.Name = i.ToString(); p.SendToBack(); p.Show(); //Button RibbonStyle.RibbonMenuButton b = new RibbonStyle.RibbonMenuButton(); b.SetBounds(0, (totalrows * textHeight), 30, (rows * textHeight) + 4); b.Text = ""; //b.Click += new System.EventHandler(this.TextButton_Click); b.MouseDown += new MouseEventHandler(b_MouseDown); b.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); b.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(187)))), ((int)(((byte)(213))))); b.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(240)))), ((int)(((byte)(255))))); b.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(153)))), ((int)(((byte)(255))))); b.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(224)))), ((int)(((byte)(255))))); b.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(153)))), ((int)(((byte)(255))))); b.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; b.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; b.ImageOffset = 2; b.KeepPress = false; b.SinglePressButton = false; b.FadingSpeed = 35; b.Name = i.ToString(); b.ContextMenuStrip = this.contextMenuStrip; b.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.ToDown; b.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.Yes; b.SplitDistance = b.Width; if ((LyricsType)Typelist[i] == LyricsType.Verse) { b.Image = global::DreamBeam.Properties.Resources.verse; } else if ((LyricsType)Typelist[i] == LyricsType.Chorus) { b.Image = global::DreamBeam.Properties.Resources.chorus; } else { b.Image = global::DreamBeam.Properties.Resources.Other; } b.MaxImageSize = new Point(16, 16); ButtonPanel.Controls.Add(b); if (verseSeparator == SongVerseSeparator.OneBlankLine) { separator = "\n\n"; } totalrows = rows + blankrows + totalrows; i++; } renew = false; #endregion } else { #region refresh while (i < Typelist.Count) { foreach (Control c in ButtonPanel.Controls) { if (c.Name == i.ToString()) { string[] mystringarr = oldLines[i].Split("\n".ToCharArray()); int rows = mystringarr.Length; ((RibbonStyle.RibbonMenuButton)c).SetBounds(0, (totalrows * textHeight), 30, (rows * textHeight) + 4); if ((LyricsType)Typelist[i] == LyricsType.Verse) { ((RibbonStyle.RibbonMenuButton)c).Image = global::DreamBeam.Properties.Resources.verse; } else if ((LyricsType)Typelist[i] == LyricsType.Chorus) { ((RibbonStyle.RibbonMenuButton)c).Image = global::DreamBeam.Properties.Resources.chorus; } else { ((RibbonStyle.RibbonMenuButton)c).Image = global::DreamBeam.Properties.Resources.Other; } totalrows = rows + blankrows + totalrows; i++; } } } totalrows = 0; i = 0; while (i < Typelist.Count) { foreach (Control c in rtePanel.Controls) { if (c.Name == i.ToString() && c.Visible) { string[] mystringarr = oldLines[i].Split("\n".ToCharArray()); int rows = mystringarr.Length; c.Hide(); setColor((CodeVendor.Controls.Grouper)c, (LyricsType)Typelist[i]); c.Location = new Point(-1, (totalrows * textHeight) - 11); c.Height = (rows * textHeight) + 14; c.Width = rtePanel.Width + 1; totalrows = rows + blankrows + totalrows; c.SendToBack(); c.Show(); rte.BringToFront(); i++; } } } #endregion } }catch (Exception e) {} }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SideboardingEditorView)); this.pnlRight = new System.Windows.Forms.Panel(); this.pnlOtherInfo = new System.Windows.Forms.Panel(); this.lblOtherInfo = new RibbonStyle.RibbonMenuButton(); this.pnlButtons = new System.Windows.Forms.Panel(); this.btnExit = new RibbonStyle.RibbonMenuButton(); this.btnSaveExit = new RibbonStyle.RibbonMenuButton(); this.btnSave = new RibbonStyle.RibbonMenuButton(); this.txtCategory = new System.Windows.Forms.TextBox(); this.btnOrientation = new RibbonStyle.RibbonMenuButton(); this.txtDeckName = new System.Windows.Forms.TextBox(); this.lblCategory = new System.Windows.Forms.Label(); this.lblName = new System.Windows.Forms.Label(); this.pnlPreview = new System.Windows.Forms.Panel(); this.cardPreview = new System.Windows.Forms.PictureBox(); this.BottomToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.TopToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.RightToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.LeftToolStripPanel = new System.Windows.Forms.ToolStripPanel(); this.ContentPanel = new System.Windows.Forms.ToolStripContentPanel(); this.deckSplitContainer = new System.Windows.Forms.SplitContainer(); this.panel1 = new System.Windows.Forms.Panel(); this.txtMainQuickSearch = new System.Windows.Forms.TextBox(); this.listMain = new PoL.WinFormsView.Utils.CardListView(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.lblMainQuickSearch = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator(); this.btnMainToSide = new System.Windows.Forms.ToolStripButton(); this.btnExchangeMainSide = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.lblMainCount = new System.Windows.Forms.ToolStripLabel(); this.panel2 = new System.Windows.Forms.Panel(); this.lblMain = new System.Windows.Forms.Label(); this.panel3 = new System.Windows.Forms.Panel(); this.txtSideQuickSearch = new System.Windows.Forms.TextBox(); this.listSideboard = new PoL.WinFormsView.Utils.CardListView(); this.toolStrip2 = new System.Windows.Forms.ToolStrip(); this.lblSideQuickSearch = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel(); this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); this.btnSideToMain = new System.Windows.Forms.ToolStripButton(); this.btnExchangeSideMain = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.lblSideCount = new System.Windows.Forms.ToolStripLabel(); this.panel4 = new System.Windows.Forms.Panel(); this.lblSide = new System.Windows.Forms.Label(); this.pnlRight.SuspendLayout(); this.pnlOtherInfo.SuspendLayout(); this.pnlButtons.SuspendLayout(); this.pnlPreview.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cardPreview)).BeginInit(); this.deckSplitContainer.Panel1.SuspendLayout(); this.deckSplitContainer.Panel2.SuspendLayout(); this.deckSplitContainer.SuspendLayout(); this.panel1.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); this.toolStrip2.SuspendLayout(); this.panel4.SuspendLayout(); this.SuspendLayout(); // // pnlRight // this.pnlRight.Controls.Add(this.pnlOtherInfo); this.pnlRight.Controls.Add(this.pnlPreview); this.pnlRight.Dock = System.Windows.Forms.DockStyle.Right; this.pnlRight.Location = new System.Drawing.Point(748, 0); this.pnlRight.Name = "pnlRight"; this.pnlRight.Size = new System.Drawing.Size(260, 730); this.pnlRight.TabIndex = 32; // // pnlOtherInfo // this.pnlOtherInfo.Controls.Add(this.lblOtherInfo); this.pnlOtherInfo.Controls.Add(this.pnlButtons); this.pnlOtherInfo.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlOtherInfo.Location = new System.Drawing.Point(0, 344); this.pnlOtherInfo.Name = "pnlOtherInfo"; this.pnlOtherInfo.Padding = new System.Windows.Forms.Padding(5); this.pnlOtherInfo.Size = new System.Drawing.Size(260, 386); this.pnlOtherInfo.TabIndex = 50; // // lblOtherInfo // this.lblOtherInfo.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.lblOtherInfo.BackColor = System.Drawing.Color.Transparent; this.lblOtherInfo.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.lblOtherInfo.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(187)))), ((int)(((byte)(213))))); this.lblOtherInfo.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.lblOtherInfo.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.lblOtherInfo.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.lblOtherInfo.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.lblOtherInfo.Dock = System.Windows.Forms.DockStyle.Top; this.lblOtherInfo.Enabled = false; this.lblOtherInfo.FadingSpeed = 0; this.lblOtherInfo.FlatAppearance.BorderSize = 0; this.lblOtherInfo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.lblOtherInfo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblOtherInfo.ForeColor = System.Drawing.Color.DarkBlue; this.lblOtherInfo.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Top; this.lblOtherInfo.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.lblOtherInfo.ImageOffset = 5; this.lblOtherInfo.IsPressed = false; this.lblOtherInfo.KeepPress = false; this.lblOtherInfo.Location = new System.Drawing.Point(5, 5); this.lblOtherInfo.MaxImageSize = new System.Drawing.Point(38, 0); this.lblOtherInfo.MenuPos = new System.Drawing.Point(0, 0); this.lblOtherInfo.Name = "lblOtherInfo"; this.lblOtherInfo.Radius = 10; this.lblOtherInfo.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.lblOtherInfo.Size = new System.Drawing.Size(250, 43); this.lblOtherInfo.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.lblOtherInfo.SplitDistance = 0; this.lblOtherInfo.TabIndex = 86; this.lblOtherInfo.Text = "Other Info"; this.lblOtherInfo.Title = "Other info"; this.lblOtherInfo.UseVisualStyleBackColor = true; // // pnlButtons // this.pnlButtons.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pnlButtons.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlButtons.Controls.Add(this.btnExit); this.pnlButtons.Controls.Add(this.btnSaveExit); this.pnlButtons.Controls.Add(this.btnSave); this.pnlButtons.Controls.Add(this.txtCategory); this.pnlButtons.Controls.Add(this.btnOrientation); this.pnlButtons.Controls.Add(this.txtDeckName); this.pnlButtons.Controls.Add(this.lblCategory); this.pnlButtons.Controls.Add(this.lblName); this.pnlButtons.Location = new System.Drawing.Point(5, 48); this.pnlButtons.Name = "pnlButtons"; this.pnlButtons.Size = new System.Drawing.Size(250, 335); this.pnlButtons.TabIndex = 85; // // btnExit // this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnExit.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnExit.BackColor = System.Drawing.Color.Transparent; this.btnExit.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.btnExit.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(59)))), ((int)(((byte)(66)))), ((int)(((byte)(76))))); this.btnExit.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnExit.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnExit.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnExit.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnExit.FadingSpeed = 20; this.btnExit.FlatAppearance.BorderSize = 0; this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnExit.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnExit.ForeColor = System.Drawing.Color.DarkBlue; this.btnExit.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Bottom; this.btnExit.Image = global::PoL.WinFormsView.Properties.Resources.stop; this.btnExit.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.btnExit.ImageOffset = 8; this.btnExit.IsPressed = false; this.btnExit.KeepPress = false; this.btnExit.Location = new System.Drawing.Point(3, 288); this.btnExit.MaxImageSize = new System.Drawing.Point(24, 24); this.btnExit.MenuPos = new System.Drawing.Point(0, 0); this.btnExit.Name = "btnExit"; this.btnExit.Radius = 10; this.btnExit.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnExit.Size = new System.Drawing.Size(239, 41); this.btnExit.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnExit.SplitDistance = 30; this.btnExit.TabIndex = 89; this.btnExit.TabStop = false; this.btnExit.Text = "Exit"; this.btnExit.Title = ""; this.btnExit.UseVisualStyleBackColor = true; // // btnSaveExit // this.btnSaveExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnSaveExit.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnSaveExit.BackColor = System.Drawing.Color.Transparent; this.btnSaveExit.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.btnSaveExit.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(59)))), ((int)(((byte)(66)))), ((int)(((byte)(76))))); this.btnSaveExit.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnSaveExit.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnSaveExit.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnSaveExit.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnSaveExit.FadingSpeed = 20; this.btnSaveExit.FlatAppearance.BorderSize = 0; this.btnSaveExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSaveExit.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnSaveExit.ForeColor = System.Drawing.Color.DarkBlue; this.btnSaveExit.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Center; this.btnSaveExit.Image = global::PoL.WinFormsView.Properties.Resources.exit; this.btnSaveExit.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.btnSaveExit.ImageOffset = 8; this.btnSaveExit.IsPressed = false; this.btnSaveExit.KeepPress = false; this.btnSaveExit.Location = new System.Drawing.Point(3, 245); this.btnSaveExit.MaxImageSize = new System.Drawing.Point(24, 24); this.btnSaveExit.MenuPos = new System.Drawing.Point(0, 0); this.btnSaveExit.Name = "btnSaveExit"; this.btnSaveExit.Radius = 10; this.btnSaveExit.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnSaveExit.Size = new System.Drawing.Size(239, 41); this.btnSaveExit.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnSaveExit.SplitDistance = 30; this.btnSaveExit.TabIndex = 88; this.btnSaveExit.TabStop = false; this.btnSaveExit.Text = "Save and exit"; this.btnSaveExit.Title = ""; this.btnSaveExit.UseVisualStyleBackColor = true; // // btnSave // this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnSave.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnSave.BackColor = System.Drawing.Color.Transparent; this.btnSave.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.btnSave.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(59)))), ((int)(((byte)(66)))), ((int)(((byte)(76))))); this.btnSave.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnSave.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnSave.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnSave.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnSave.FadingSpeed = 20; this.btnSave.FlatAppearance.BorderSize = 0; this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSave.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnSave.ForeColor = System.Drawing.Color.DarkBlue; this.btnSave.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.Top; this.btnSave.Image = global::PoL.WinFormsView.Properties.Resources.document_save; this.btnSave.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.btnSave.ImageOffset = 8; this.btnSave.IsPressed = false; this.btnSave.KeepPress = false; this.btnSave.Location = new System.Drawing.Point(3, 202); this.btnSave.MaxImageSize = new System.Drawing.Point(24, 24); this.btnSave.MenuPos = new System.Drawing.Point(0, 0); this.btnSave.Name = "btnSave"; this.btnSave.Radius = 10; this.btnSave.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnSave.Size = new System.Drawing.Size(239, 41); this.btnSave.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnSave.SplitDistance = 30; this.btnSave.TabIndex = 87; this.btnSave.TabStop = false; this.btnSave.Text = "Save"; this.btnSave.Title = ""; this.btnSave.UseVisualStyleBackColor = true; // // txtCategory // this.txtCategory.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtCategory.Location = new System.Drawing.Point(13, 70); this.txtCategory.MaxLength = 50; this.txtCategory.Name = "txtCategory"; this.txtCategory.ReadOnly = true; this.txtCategory.Size = new System.Drawing.Size(216, 20); this.txtCategory.TabIndex = 86; // // btnOrientation // this.btnOrientation.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.btnOrientation.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnOrientation.BackColor = System.Drawing.Color.Transparent; this.btnOrientation.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(186)))), ((int)(((byte)(209)))), ((int)(((byte)(240))))); this.btnOrientation.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(59)))), ((int)(((byte)(66)))), ((int)(((byte)(76))))); this.btnOrientation.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnOrientation.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnOrientation.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnOrientation.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnOrientation.FadingSpeed = 20; this.btnOrientation.FlatAppearance.BorderSize = 0; this.btnOrientation.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOrientation.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnOrientation.ForeColor = System.Drawing.Color.DarkBlue; this.btnOrientation.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnOrientation.Image = global::PoL.WinFormsView.Properties.Resources.emblem_symbolic_link; this.btnOrientation.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Left; this.btnOrientation.ImageOffset = 8; this.btnOrientation.IsPressed = false; this.btnOrientation.KeepPress = false; this.btnOrientation.Location = new System.Drawing.Point(59, 155); this.btnOrientation.MaxImageSize = new System.Drawing.Point(24, 24); this.btnOrientation.MenuPos = new System.Drawing.Point(0, 0); this.btnOrientation.Name = "btnOrientation"; this.btnOrientation.Radius = 10; this.btnOrientation.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnOrientation.Size = new System.Drawing.Size(132, 41); this.btnOrientation.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnOrientation.SplitDistance = 30; this.btnOrientation.TabIndex = 85; this.btnOrientation.TabStop = false; this.btnOrientation.Text = "Orientation"; this.btnOrientation.Title = ""; this.btnOrientation.UseVisualStyleBackColor = true; // // txtDeckName // this.txtDeckName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtDeckName.Location = new System.Drawing.Point(13, 30); this.txtDeckName.MaxLength = 50; this.txtDeckName.Name = "txtDeckName"; this.txtDeckName.ReadOnly = true; this.txtDeckName.Size = new System.Drawing.Size(216, 20); this.txtDeckName.TabIndex = 7; // // lblCategory // this.lblCategory.AutoSize = true; this.lblCategory.BackColor = System.Drawing.Color.Transparent; this.lblCategory.Location = new System.Drawing.Point(10, 53); this.lblCategory.Name = "lblCategory"; this.lblCategory.Size = new System.Drawing.Size(66, 14); this.lblCategory.TabIndex = 54; this.lblCategory.Text = "CATEGORY"; // // lblName // this.lblName.AutoSize = true; this.lblName.BackColor = System.Drawing.Color.Transparent; this.lblName.Location = new System.Drawing.Point(10, 13); this.lblName.Name = "lblName"; this.lblName.Size = new System.Drawing.Size(37, 14); this.lblName.TabIndex = 53; this.lblName.Text = "NAME"; // // pnlPreview // this.pnlPreview.Controls.Add(this.cardPreview); this.pnlPreview.Dock = System.Windows.Forms.DockStyle.Top; this.pnlPreview.Location = new System.Drawing.Point(0, 0); this.pnlPreview.Name = "pnlPreview"; this.pnlPreview.Size = new System.Drawing.Size(260, 344); this.pnlPreview.TabIndex = 52; // // cardPreview // this.cardPreview.Location = new System.Drawing.Point(5, 5); this.cardPreview.Name = "cardPreview"; this.cardPreview.Size = new System.Drawing.Size(250, 334); this.cardPreview.TabIndex = 52; this.cardPreview.TabStop = false; // // BottomToolStripPanel // this.BottomToolStripPanel.Location = new System.Drawing.Point(0, 0); this.BottomToolStripPanel.Name = "BottomToolStripPanel"; this.BottomToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.BottomToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.BottomToolStripPanel.Size = new System.Drawing.Size(0, 0); // // TopToolStripPanel // this.TopToolStripPanel.Location = new System.Drawing.Point(0, 0); this.TopToolStripPanel.Name = "TopToolStripPanel"; this.TopToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TopToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.TopToolStripPanel.Size = new System.Drawing.Size(0, 0); // // RightToolStripPanel // this.RightToolStripPanel.Location = new System.Drawing.Point(0, 0); this.RightToolStripPanel.Name = "RightToolStripPanel"; this.RightToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.RightToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.RightToolStripPanel.Size = new System.Drawing.Size(0, 0); // // LeftToolStripPanel // this.LeftToolStripPanel.Location = new System.Drawing.Point(0, 0); this.LeftToolStripPanel.Name = "LeftToolStripPanel"; this.LeftToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal; this.LeftToolStripPanel.RowMargin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.LeftToolStripPanel.Size = new System.Drawing.Size(0, 0); // // ContentPanel // this.ContentPanel.Size = new System.Drawing.Size(150, 150); // // deckSplitContainer // this.deckSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.deckSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; this.deckSplitContainer.Location = new System.Drawing.Point(0, 0); this.deckSplitContainer.Name = "deckSplitContainer"; // // deckSplitContainer.Panel1 // this.deckSplitContainer.Panel1.BackColor = System.Drawing.Color.White; this.deckSplitContainer.Panel1.Controls.Add(this.panel1); // // deckSplitContainer.Panel2 // this.deckSplitContainer.Panel2.BackColor = System.Drawing.Color.White; this.deckSplitContainer.Panel2.Controls.Add(this.panel3); this.deckSplitContainer.Size = new System.Drawing.Size(748, 730); this.deckSplitContainer.SplitterDistance = 267; this.deckSplitContainer.TabIndex = 37; this.deckSplitContainer.TabStop = false; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.Control; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.txtMainQuickSearch); this.panel1.Controls.Add(this.listMain); this.panel1.Controls.Add(this.toolStrip1); this.panel1.Controls.Add(this.panel2); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(267, 730); this.panel1.TabIndex = 0; // // txtMainQuickSearch // this.txtMainQuickSearch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtMainQuickSearch.Location = new System.Drawing.Point(52, 28); this.txtMainQuickSearch.Name = "txtMainQuickSearch"; this.txtMainQuickSearch.Size = new System.Drawing.Size(100, 20); this.txtMainQuickSearch.TabIndex = 3; // // listMain // this.listMain.AllowDrop = true; this.listMain.BorderStyle = System.Windows.Forms.BorderStyle.None; this.listMain.DataSource = null; this.listMain.Dock = System.Windows.Forms.DockStyle.Fill; this.listMain.GridLines = true; this.listMain.HideSelection = false; this.listMain.Location = new System.Drawing.Point(0, 51); this.listMain.Name = "listMain"; this.listMain.OwnerDraw = true; this.listMain.ShowItemToolTips = true; this.listMain.Size = new System.Drawing.Size(265, 677); this.listMain.TabIndex = 4; this.listMain.UseCompatibleStateImageBehavior = false; this.listMain.View = System.Windows.Forms.View.Details; // // toolStrip1 // this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.lblMainQuickSearch, this.toolStripLabel2, this.toolStripSeparator8, this.btnMainToSide, this.btnExchangeMainSide, this.toolStripSeparator1, this.lblMainCount}); this.toolStrip1.Location = new System.Drawing.Point(0, 26); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(265, 25); this.toolStrip1.TabIndex = 3; this.toolStrip1.Text = "toolStrip1"; // // lblMainQuickSearch // this.lblMainQuickSearch.AutoSize = false; this.lblMainQuickSearch.Name = "lblMainQuickSearch"; this.lblMainQuickSearch.Size = new System.Drawing.Size(45, 22); this.lblMainQuickSearch.Text = "Search:"; // // toolStripLabel2 // this.toolStripLabel2.AutoSize = false; this.toolStripLabel2.Name = "toolStripLabel2"; this.toolStripLabel2.Size = new System.Drawing.Size(100, 22); this.toolStripLabel2.Text = "toolStripLabel2"; // // toolStripSeparator8 // this.toolStripSeparator8.Name = "toolStripSeparator8"; this.toolStripSeparator8.Size = new System.Drawing.Size(6, 25); // // btnMainToSide // this.btnMainToSide.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnMainToSide.Image = global::PoL.WinFormsView.Properties.Resources.down1; this.btnMainToSide.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnMainToSide.Name = "btnMainToSide"; this.btnMainToSide.Size = new System.Drawing.Size(23, 22); this.btnMainToSide.Text = "toolStripButton1"; this.btnMainToSide.ToolTipText = "To side"; // // btnExchangeMainSide // this.btnExchangeMainSide.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnExchangeMainSide.Image = global::PoL.WinFormsView.Properties.Resources.stock_vert_arrows; this.btnExchangeMainSide.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnExchangeMainSide.Name = "btnExchangeMainSide"; this.btnExchangeMainSide.Size = new System.Drawing.Size(23, 22); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // lblMainCount // this.lblMainCount.Name = "lblMainCount"; this.lblMainCount.Size = new System.Drawing.Size(86, 15); this.lblMainCount.Text = "toolStripLabel1"; // // panel2 // this.panel2.BackgroundImage = global::PoL.WinFormsView.Properties.Resources.sfondoblu; this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.panel2.Controls.Add(this.lblMain); this.panel2.Dock = System.Windows.Forms.DockStyle.Top; this.panel2.Location = new System.Drawing.Point(0, 0); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(265, 26); this.panel2.TabIndex = 54; // // lblMain // this.lblMain.BackColor = System.Drawing.Color.Transparent; this.lblMain.Dock = System.Windows.Forms.DockStyle.Fill; this.lblMain.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); this.lblMain.ForeColor = System.Drawing.Color.DarkBlue; this.lblMain.Location = new System.Drawing.Point(0, 0); this.lblMain.Name = "lblMain"; this.lblMain.Padding = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblMain.Size = new System.Drawing.Size(265, 26); this.lblMain.TabIndex = 53; this.lblMain.Text = "Main"; this.lblMain.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // panel3 // this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel3.Controls.Add(this.txtSideQuickSearch); this.panel3.Controls.Add(this.listSideboard); this.panel3.Controls.Add(this.toolStrip2); this.panel3.Controls.Add(this.panel4); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Location = new System.Drawing.Point(0, 0); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(477, 730); this.panel3.TabIndex = 0; // // txtSideQuickSearch // this.txtSideQuickSearch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtSideQuickSearch.Location = new System.Drawing.Point(52, 29); this.txtSideQuickSearch.Name = "txtSideQuickSearch"; this.txtSideQuickSearch.Size = new System.Drawing.Size(100, 20); this.txtSideQuickSearch.TabIndex = 5; // // listSideboard // this.listSideboard.AllowDrop = true; this.listSideboard.BorderStyle = System.Windows.Forms.BorderStyle.None; this.listSideboard.DataSource = null; this.listSideboard.Dock = System.Windows.Forms.DockStyle.Fill; this.listSideboard.GridLines = true; this.listSideboard.HideSelection = false; this.listSideboard.Location = new System.Drawing.Point(0, 52); this.listSideboard.Name = "listSideboard"; this.listSideboard.OwnerDraw = true; this.listSideboard.ShowItemToolTips = true; this.listSideboard.Size = new System.Drawing.Size(475, 676); this.listSideboard.TabIndex = 6; this.listSideboard.UseCompatibleStateImageBehavior = false; this.listSideboard.View = System.Windows.Forms.View.Details; // // toolStrip2 // this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.lblSideQuickSearch, this.toolStripLabel3, this.toolStripSeparator9, this.btnSideToMain, this.btnExchangeSideMain, this.toolStripSeparator2, this.lblSideCount}); this.toolStrip2.Location = new System.Drawing.Point(0, 27); this.toolStrip2.Name = "toolStrip2"; this.toolStrip2.Size = new System.Drawing.Size(475, 25); this.toolStrip2.TabIndex = 59; this.toolStrip2.Text = "toolStrip2"; // // lblSideQuickSearch // this.lblSideQuickSearch.AutoSize = false; this.lblSideQuickSearch.Name = "lblSideQuickSearch"; this.lblSideQuickSearch.Size = new System.Drawing.Size(45, 22); this.lblSideQuickSearch.Text = "Search:"; // // toolStripLabel3 // this.toolStripLabel3.AutoSize = false; this.toolStripLabel3.Name = "toolStripLabel3"; this.toolStripLabel3.Size = new System.Drawing.Size(100, 15); this.toolStripLabel3.Text = "toolStripLabel3"; // // toolStripSeparator9 // this.toolStripSeparator9.Name = "toolStripSeparator9"; this.toolStripSeparator9.Size = new System.Drawing.Size(6, 25); // // btnSideToMain // this.btnSideToMain.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnSideToMain.Image = global::PoL.WinFormsView.Properties.Resources.go_up1; this.btnSideToMain.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnSideToMain.Name = "btnSideToMain"; this.btnSideToMain.Size = new System.Drawing.Size(23, 22); this.btnSideToMain.Text = "toolStripButton1"; this.btnSideToMain.ToolTipText = "To main"; // // btnExchangeSideMain // this.btnExchangeSideMain.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnExchangeSideMain.Image = global::PoL.WinFormsView.Properties.Resources.stock_vert_arrows; this.btnExchangeSideMain.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnExchangeSideMain.Name = "btnExchangeSideMain"; this.btnExchangeSideMain.Size = new System.Drawing.Size(23, 22); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); // // lblSideCount // this.lblSideCount.Name = "lblSideCount"; this.lblSideCount.Size = new System.Drawing.Size(86, 22); this.lblSideCount.Text = "toolStripLabel1"; // // panel4 // this.panel4.BackgroundImage = global::PoL.WinFormsView.Properties.Resources.sfondoblu; this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.panel4.Controls.Add(this.lblSide); this.panel4.Dock = System.Windows.Forms.DockStyle.Top; this.panel4.Location = new System.Drawing.Point(0, 0); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(475, 27); this.panel4.TabIndex = 57; // // lblSide // this.lblSide.BackColor = System.Drawing.Color.Transparent; this.lblSide.Dock = System.Windows.Forms.DockStyle.Fill; this.lblSide.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); this.lblSide.ForeColor = System.Drawing.Color.DarkBlue; this.lblSide.Location = new System.Drawing.Point(0, 0); this.lblSide.Name = "lblSide"; this.lblSide.Padding = new System.Windows.Forms.Padding(3, 0, 0, 0); this.lblSide.Size = new System.Drawing.Size(475, 27); this.lblSide.TabIndex = 54; this.lblSide.Text = "Side"; this.lblSide.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // SideboardingEditorView // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1008, 730); this.Controls.Add(this.deckSplitContainer); this.Controls.Add(this.pnlRight); this.Font = new System.Drawing.Font("Lucida Sans", 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.Name = "SideboardingEditorView"; this.Text = "SideboardingEditorView"; this.pnlRight.ResumeLayout(false); this.pnlOtherInfo.ResumeLayout(false); this.pnlButtons.ResumeLayout(false); this.pnlButtons.PerformLayout(); this.pnlPreview.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.cardPreview)).EndInit(); this.deckSplitContainer.Panel1.ResumeLayout(false); this.deckSplitContainer.Panel2.ResumeLayout(false); this.deckSplitContainer.ResumeLayout(false); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.panel2.ResumeLayout(false); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); this.toolStrip2.ResumeLayout(false); this.toolStrip2.PerformLayout(); this.panel4.ResumeLayout(false); this.ResumeLayout(false); }
private void InitButton() { this.btnAddLesion = new RibbonStyle.RibbonMenuButton(); this.btnDeleteLesion = new RibbonStyle.RibbonMenuButton(); this.btnClose = new RibbonStyle.RibbonMenuButton(); this.btnAddLesion.AllowDrop = true; this.btnAddLesion.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnAddLesion.BackColor = System.Drawing.Color.Transparent; this.btnAddLesion.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(4)))), ((int)(((byte)(4))))); this.btnAddLesion.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(153)))), ((int)(((byte)(122)))), ((int)(((byte)(122))))); this.btnAddLesion.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnAddLesion.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnAddLesion.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnAddLesion.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnAddLesion.FadingSpeed = 20; this.btnAddLesion.FlatAppearance.BorderSize = 0; this.btnAddLesion.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAddLesion.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.btnAddLesion.ForeColor = System.Drawing.Color.DarkBlue; this.btnAddLesion.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnAddLesion.Image = global::LungCare.SupportPlatform.Properties.Resources.加号; this.btnAddLesion.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Top; this.btnAddLesion.ImageOffset = 5; this.btnAddLesion.IsPressed = false; this.btnAddLesion.KeepPress = false; // this.widthAndLevel.Location = new System.Drawing.Point(29, 256); this.btnAddLesion.MaxImageSize = new System.Drawing.Point(0, 0); this.btnAddLesion.MenuPos = new System.Drawing.Point(0, 0); this.btnAddLesion.Name = "widthAndLevel"; this.btnAddLesion.Radius = 8; this.btnAddLesion.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnAddLesion.Size = new System.Drawing.Size(50, 50); this.btnAddLesion.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnAddLesion.SplitDistance = 0; this.btnAddLesion.TabIndex = 102; this.btnAddLesion.Title = ""; this.btnAddLesion.UseVisualStyleBackColor = true; this.btnAddLesion.Visible = true; // // btnReturn // this.btnDeleteLesion.AllowDrop = true; this.btnDeleteLesion.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnDeleteLesion.BackColor = System.Drawing.Color.Transparent; this.btnDeleteLesion.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(4)))), ((int)(((byte)(4))))); this.btnDeleteLesion.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(153)))), ((int)(((byte)(122)))), ((int)(((byte)(122))))); this.btnDeleteLesion.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnDeleteLesion.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnDeleteLesion.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnDeleteLesion.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnDeleteLesion.FadingSpeed = 20; this.btnDeleteLesion.FlatAppearance.BorderSize = 0; this.btnDeleteLesion.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnDeleteLesion.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.btnDeleteLesion.ForeColor = System.Drawing.Color.DarkBlue; this.btnDeleteLesion.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnDeleteLesion.Image = global::LungCare.SupportPlatform.Properties.Resources.未完成; this.btnDeleteLesion.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Top; this.btnDeleteLesion.ImageOffset = 5; this.btnDeleteLesion.IsPressed = false; this.btnDeleteLesion.KeepPress = false; this.btnDeleteLesion.MaxImageSize = new System.Drawing.Point(0, 0); this.btnDeleteLesion.MenuPos = new System.Drawing.Point(0, 0); this.btnDeleteLesion.Name = "btnReturn"; this.btnDeleteLesion.Radius = 8; this.btnDeleteLesion.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnDeleteLesion.Size = new System.Drawing.Size(50, 50); this.btnDeleteLesion.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnDeleteLesion.SplitDistance = 0; this.btnDeleteLesion.TabIndex = 94; this.btnDeleteLesion.Title = ""; this.btnDeleteLesion.UseVisualStyleBackColor = true; this.btnClose.AllowDrop = true; this.btnClose.Arrow = RibbonStyle.RibbonMenuButton.e_arrow.None; this.btnClose.BackColor = System.Drawing.Color.Transparent; this.btnClose.BackgroundImage = global::LungCare.SupportPlatform.Properties.Resources.保存; this.btnClose.ColorBase = System.Drawing.Color.FromArgb(((int)(((byte)(5)))), ((int)(((byte)(4)))), ((int)(((byte)(4))))); this.btnClose.ColorBaseStroke = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(153)))), ((int)(((byte)(122)))), ((int)(((byte)(122))))); this.btnClose.ColorOn = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(214)))), ((int)(((byte)(78))))); this.btnClose.ColorOnStroke = System.Drawing.Color.FromArgb(((int)(((byte)(196)))), ((int)(((byte)(177)))), ((int)(((byte)(118))))); this.btnClose.ColorPress = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); this.btnClose.ColorPressStroke = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); this.btnClose.FadingSpeed = 20; this.btnClose.FlatAppearance.BorderSize = 0; this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClose.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.btnClose.ForeColor = System.Drawing.Color.DarkBlue; this.btnClose.GroupPos = RibbonStyle.RibbonMenuButton.e_groupPos.None; this.btnClose.Image = global::LungCare.SupportPlatform.Properties.Resources.close; this.btnClose.ImageLocation = RibbonStyle.RibbonMenuButton.e_imagelocation.Top; this.btnClose.ImageOffset = 5; this.btnClose.IsPressed = false; this.btnClose.KeepPress = false; this.btnClose.MaxImageSize = new System.Drawing.Point(0, 0); this.btnClose.MenuPos = new System.Drawing.Point(0, 0); this.btnClose.Name = "btnSaveLesionResult"; this.btnClose.Radius = 8; this.btnClose.ShowBase = RibbonStyle.RibbonMenuButton.e_showbase.Yes; this.btnClose.Size = new System.Drawing.Size(50, 50); this.btnClose.SplitButton = RibbonStyle.RibbonMenuButton.e_splitbutton.No; this.btnClose.SplitDistance = 0; this.btnClose.TabIndex = 101; this.btnClose.Title = ""; this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += btnClose_Click; panel1.Controls.Add(btnAddLesion); panel1.Controls.Add(btnDeleteLesion); panel2.Controls.Add(btnClose); btnAddLesion.Click += btnAddLesion_Click; btnDeleteLesion.Click += btnDeleteLesion_Click; System.Windows.Forms.FlowLayoutPanel panel3 = new System.Windows.Forms.FlowLayoutPanel(); wfClose.Child = panel3; panel3.Controls.Add(btnClose); panel2.BackColor = System.Drawing.Color.Red; //for (int i = 0; i < 5; i++) //{ // AddNewLesion(); //} listLesionControls = new List <LesionButtonUserControl>(); }