private void OnProcessFileDialog(Object sender, FileDialogEventArgs e) { switch (e.Mode) { case FileDialogMode.Save: using (var saveDialog = new SaveFileDialog()) { saveDialog.Title = e.Title; saveDialog.Filter = e.Filter; saveDialog.FileName = e.DefaultFileName; if (saveDialog.ShowDialog() != DialogResult.Cancel) { FormProgress.ShowProgress(); FormProgress.SetTitle("Downloading…", true); FormProgress.SetDetails(Path.GetFileName(saveDialog.FileName)); TabControl.Enabled = false; Application.DoEvents(); e.Continue(saveDialog.FileName); } else e.Cancel(); } break; } e.Handled = true; }
private void lnkBrowseTo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { SaveFileDialog diag = new SaveFileDialog(); if (!String.IsNullOrEmpty(txtFromDir.Text) || !String.IsNullOrWhiteSpace(txtFromDir.Text)) { if (!String.IsNullOrEmpty(fname) || !String.IsNullOrWhiteSpace(fname)) { diag.FileName = fname; } else { h.alert("The source file name is empty.\nYou must first select a source file above and then select the destination.", "File Location Error"); txtFromDir.Focus(); fname = null; return; } } else { h.alert("The source file name is empty.\nYou must first select a source file above and then select the destination.", "File Location Error"); txtFromDir.Focus(); fname = null; return; } if (diag.ShowDialog() == DialogResult.OK) { txtToDir.Text = diag.FileName.ToString(); } }
private void button2_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.textBox1.Text.Trim())) { MessageBox.Show("请输入需要转换的信息!"); } string content = this.textBox1.Text; SaveFileDialog sFD = new SaveFileDialog(); sFD.DefaultExt = "*.png|*.png"; sFD.AddExtension = true; try { if (sFD.ShowDialog() == DialogResult.OK) { //string content = @"url:http://writeblog.csdn.net/PostEdit.aspx; name:nickwar"; COMMON.ByteMatrix byteMatrix = new MultiFormatWriter().encode(content, BarcodeFormat.QR_CODE, 350, 350); writeToFile(byteMatrix, System.Drawing.Imaging.ImageFormat.Png, sFD.FileName); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnExportGrid_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (selection.SelectedCount <= FrmLogin.MAXROWCOUNT) { SaveFileDialog saveDialog = new SaveFileDialog(); saveDialog.Filter = "XLS文件|*.xls"; saveDialog.Title = "导出Excel文件"; saveDialog.DefaultExt = "xls"; if (saveDialog.ShowDialog() == DialogResult.OK) { gridView1.Columns["CheckMarkSelection"].Visible = false; gridView1.SelectAll(); gridView1.ExportToXls(saveDialog.FileName); gridView1.Columns["CheckMarkSelection"].Visible = true; gridView1.Columns["CheckMarkSelection"].VisibleIndex = 0; MessageBox.Show("导出成功!"); } } else { MessageBox.Show("记录数超过50000条,请缩小查找范围后再导出!"); } }
private void btn_save_Click(object sender, System.EventArgs e) { var saveFileDialog = new SaveFileDialog { Filter = @"Bitmap files (*.bmp)|*.bmp|Image files (*.jpg)|*.jpg|PNG files (*.png)|*.png|" + @"ICO files (*.ico)|*.ico|GIF files (*.gif)|*.gif|TIFF files (*.tiff)|*.tiff|" + @"XPS files (*.xps)|*.xps|PDF files (*.pdf)|*.pdf|PSD files (*.psd)|*.psd" }; if (saveFileDialog.ShowDialog() == DialogResult.Cancel) return; // Switch //FactorySwitch.ChooseFormat(saveFileDialog.FilterIndex).Save(saveFileDialog.FileName, pctbx_canvas.Image); // LinkedList //var factory = new FactoryLinked(); //factory.GetFormat(saveFileDialog.FilterIndex).Save(saveFileDialog.FileName, pctbx_canvas.Image); // Loop var factory = new FactoryLoop(); var formats = factory.GetValidFormats(saveFileDialog.FilterIndex); foreach (var item in formats) { item.Save(saveFileDialog.FileName, pctbx_canvas.Image); } }
private void button4_Click(object sender, EventArgs e) { SaveFileDialog sd = new SaveFileDialog(); sd.Filter = "FlexFile (*.flx)|*.flx"; sd.FilterIndex = 0; sd.DefaultExt = ".flx"; sd.AddExtension = true; if (sd.ShowDialog() == DialogResult.OK) { BinaryWriter wr = new BinaryWriter(new FileStream(sd.FileName, FileMode.Create)); wr.Write(header); for (int i = 0; i < cnt * 256; i++) { wr.Write((int)0); wr.Write((int)0); } foreach (Section s in sex) { int ofs = (int)wr.BaseStream.Position; int sz = s.data.Length; wr.BaseStream.Position = 0x80 + 8 * s.id; wr.Write(ofs); wr.Write(sz); wr.BaseStream.Position = ofs; wr.Write(s.data); } wr.Close(); } }
public void ExportPDF(DateTime dateFrom, DateTime dateTo) { Cursor current = this.Cursor; this.Cursor = Cursors.WaitCursor; if (organizationSumBindingSource.DataSource == null) GenerateReportGrid(dateFrom, dateTo); try { SaveFileDialog openFileDialog1 = new SaveFileDialog(); openFileDialog1.Filter = "Pdf files (*.Pdf)|*.Pdf"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { chartControlAnalizeCount.Dock = DockStyle.None; chartControlAnalizeCount.Width = 600; chartControlAnalizeCount.ExportToPdf(openFileDialog1.FileName); chartControlAnalizeCount.Dock = DockStyle.Top; System.Diagnostics.Process.Start(openFileDialog1.FileName); } } catch (Exception ex) { MessageBox.Show("Возможно файл открыт.", "Ошибка сохранения.", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Cursor = current; } this.Cursor = current; }
/// <summary> /// /// </summary> public static void SaveScene(bool saveAs) { if (SceneManager.ActiveScene == null) return; if (!File.Exists(SceneManager.ActiveScenePath)) { SaveFileDialog sfd = new SaveFileDialog(); sfd.InitialDirectory = SceneManager.GameProject.ProjectPath; sfd.Filter = "(*.scene)|*.scene"; DialogResult dr = sfd.ShowDialog(); if (dr == DialogResult.Yes || dr == DialogResult.OK) { SceneManager.ActiveScenePath = sfd.FileName; } else { return; } } if (saveAs) { // TODO: implement "Save As" funcionality } else { SceneManager.ActiveScene.SaveComponentValues(); SceneManager.SaveActiveScene(); } }
/// <summary> /// Function to take backup /// </summary> public void TakeBackUp() { try { if (MessageBox.Show("Do you want to take back up?", "OpenMiracle", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { if (sqlcon.State == ConnectionState.Closed) { sqlcon.Open(); } string strPath = Application.StartupPath + "\\Data\\" + PublicVariables._decCurrentCompanyId + "\\DBOpenMiracle.mdf"; SaveFileDialog saveBackupDialog = new SaveFileDialog(); string strDestinationPath = string.Empty; string strFname = "DBOpenMiracle" + DateTime.Now.ToString("ddMMyyyhhmmss"); saveBackupDialog.FileName = strFname; if (saveBackupDialog.ShowDialog() == DialogResult.OK) { strDestinationPath = saveBackupDialog.FileName; strDestinationPath = "'" + strDestinationPath + ".bak'"; SqlCommand sccmd = new SqlCommand("CompanyBackUpDb", sqlcon); sccmd.CommandType = CommandType.StoredProcedure; sccmd.Parameters.Add("@path", SqlDbType.VarChar).Value = strPath; sccmd.Parameters.Add("@name", SqlDbType.VarChar).Value = strDestinationPath; decimal decEffect = Convert.ToDecimal(sccmd.ExecuteNonQuery().ToString()); MessageBox.Show("The backup of database completed successfully", "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } } } catch (Exception ex) { MessageBox.Show("BR 1 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
internal void SaveToFile() { SaveFileDialog sfd = new SaveFileDialog(); sfd.AddExtension = true; //sfd.CheckFileExists = true; //sfd.CheckPathExists = true; sfd.CreatePrompt = true; sfd.DefaultExt = "rtf"; sfd.Filter = "リッチテキストフォーマット|*.rtf"; if (sfd.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { Stream write = null; try { write = sfd.OpenFile(); rtb_thread_main.SaveFile(write, RichTextBoxStreamType.RichText); MessageBox.Show("セーブ成功しました。"); } catch (System.IO.IOException) { MessageBox.Show("セーブ失敗ました。"); } finally { if (write != null) { write.Close(); } } } }
private void init() { saveFileDialog = new SaveFileDialog(); applyFilterOptions(); string initialDirectory = null; try { initialDirectory = Path.GetDirectoryName(conf.OutputFileAsFullpath); } catch { LOG.WarnFormat("OutputFileAsFullpath was set to {0}, ignoring due to problem in path.", conf.OutputFileAsFullpath); } if (!string.IsNullOrEmpty(initialDirectory) && Directory.Exists(initialDirectory)) { saveFileDialog.InitialDirectory = initialDirectory; } else if (Directory.Exists(conf.OutputFilePath)) { saveFileDialog.InitialDirectory = conf.OutputFilePath; } // The following property fixes a problem that the directory where we save is locked (bug #2899790) saveFileDialog.RestoreDirectory = true; saveFileDialog.OverwritePrompt = true; saveFileDialog.CheckPathExists = false; saveFileDialog.AddExtension = true; ApplySuggestedValues(); }
public void CommandExport(object param) { if (!TilePoolExists(param)) return; Guid uid = (Guid)param; TilePool tilePool = Editor.Project.TilePoolManager.Pools[uid]; using (System.Drawing.Bitmap export = tilePool.TileSource.CreateBitmap()) { using (SaveFileDialog ofd = new SaveFileDialog()) { ofd.Title = "Export Raw Tileset"; ofd.Filter = "Portable Network Graphics (*.png)|*.png|Windows Bitmap (*.bmp)|*.bmp|All Files|*"; ofd.OverwritePrompt = true; ofd.RestoreDirectory = false; if (ofd.ShowDialog() == DialogResult.OK) { try { export.Save(ofd.FileName); } catch { MessageBox.Show("Could not save image file.", "Export Failed", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } } } }
private void btnExport_Click(object sender, EventArgs e) { var saveFileDlg = new SaveFileDialog {Filter = Resources.SaveFileFilter}; if (DialogResult.OK.Equals(saveFileDlg.ShowDialog())) { var workbookParameterContainer = new WorkbookParameterContainer(); workbookParameterContainer.Load(@"Template\Template.xml"); SheetParameterContainer sheetParameterContainer = workbookParameterContainer["重复单元格式化器"]; ExportHelper.ExportToLocal(@"Template\Template.xls", saveFileDlg.FileName, new SheetFormatter("重复单元格式化器", new RepeaterFormatter<StudentInfo>(sheetParameterContainer["rptStudentInfo_Start"], sheetParameterContainer["rptStudentInfo_End"], StudentLogic.GetList(), new CellFormatter<StudentInfo>(sheetParameterContainer["Name"], t => t.Name), new CellFormatter<StudentInfo>(sheetParameterContainer["Gender"], t => t.Gender ? "男" : "女"), new CellFormatter<StudentInfo>(sheetParameterContainer["Class"], t => t.Class), new CellFormatter<StudentInfo>(sheetParameterContainer["RecordNo"], t => t.RecordNo), new CellFormatter<StudentInfo>(sheetParameterContainer["Phone"], t => t.Phone), new CellFormatter<StudentInfo>(sheetParameterContainer["Email"], t => t.Email) ) ) ); } }
public static bool SaveDIBAs(string picname, IntPtr bminfo, IntPtr pixdat) { SaveFileDialog sd = new SaveFileDialog(); sd.FileName = picname; sd.Title = "Save bitmap as..."; sd.Filter = "Bitmap file (*.bmp)|*.bmp|TIFF file (*.tif)|*.tif|JPEG file (*.jpg)|*.jpg|PNG file (*.png)|*.png|GIF file (*.gif)|*.gif|All files (*.*)|*.*"; sd.FilterIndex = 1; if (sd.ShowDialog() != DialogResult.OK) return false; Guid clsid; if (!GetCodecClsid(sd.FileName, out clsid)) { MessageBox.Show("Unknown picture format for extension " + Path.GetExtension(sd.FileName), "Image Codec", MessageBoxButtons.OK, MessageBoxIcon.Information); return false; } IntPtr img = IntPtr.Zero; int st = GdipCreateBitmapFromGdiDib(bminfo, pixdat, ref img); if ((st != 0) || (img == IntPtr.Zero)) return false; st = GdipSaveImageToFile(img, sd.FileName, ref clsid, IntPtr.Zero); GdipDisposeImage(img); return st == 0; }
private void btnGenerate_Click(object sender, EventArgs e) { //string filename = "Azure_Pass_Account" +/* datePicker.ToString() + */inputApplicant.Text; Excel.Application excel = new Excel.Application(); excel.Visible = true; Excel.Workbook wb = excel.Workbooks.Add(1); Excel.Worksheet sh = wb.Sheets.Add(); datePicker.Format = DateTimePickerFormat.Custom; datePicker.CustomFormat = "yyMMdd"; sh.Name = "Azure Account"; sh.Cells[1, "A"].Value2 = "Index"; sh.Cells[1, "B"].Value2 = "Account"; sh.Cells[1, "C"].Value2 = "Password"; sh.Cells[1, "D"].Value2 = "Applicant"; for(int index = 1; index <= Int32.Parse( inputAmount.Text); index ++) { sh.Cells[index + 1 ,"A"].Value2 = index; sh.Cells[index + 1, "B"].Value2 = "MS" + datePicker.Text + index.ToString("000") + "@outlook.com"; sh.Cells[index + 1, "C"].Value2 = "MS" + datePicker.Text; sh.Cells[index + 1, "D"].Value2 = inputApplicant.Text; } string filename = "Azure_Pass_Account_" + datePicker.Text + "_" + inputApplicant.Text + "_Auto_Generate"; SaveFileDialog mySaveFileDialog = new SaveFileDialog(); mySaveFileDialog.FileName = filename; mySaveFileDialog.Filter = "Excel files (*.xlsx)|*.xlsx"; mySaveFileDialog.ShowDialog(); excel.Quit(); }
public bool export() { checkStuff(); SaveFileDialog ofd = new SaveFileDialog(); ofd.Filter = LanguageManager.Get("Filters", "png"); if (ofd.ShowDialog(win) == DialogResult.Cancel) return false; calcSizes(); Bitmap b = new Bitmap(tx, ty); Graphics bgfx = Graphics.FromImage(b); int x = 0; foreach (PixelPalettedImage img in imgs) { int y = 0; foreach (Palette pal in pals) { Bitmap bb = img.render(pal); bgfx.DrawImage(bb, x, y, bb.Width, bb.Height); bb.Dispose(); y += tys; } x += img.getWidth(); } b.Save(ofd.FileName); b.Dispose(); return true; }
bool RunDialog (OpenFileDialogData data) { Application.EnableVisualStyles (); FileDialog fileDlg = null; if (data.Action == Gtk.FileChooserAction.Open) fileDlg = new OpenFileDialog (); else fileDlg = new SaveFileDialog (); var dlg = new CustomOpenFileDialog (fileDlg, data); SelectFileDialogHandler.SetCommonFormProperties (data, dlg.FileDialog); using (dlg) { rootForm = new WinFormsRoot (); if (dlg.ShowDialog (rootForm) == DialogResult.Cancel) { return false; } FilePath[] paths = new FilePath [fileDlg.FileNames.Length]; for (int n = 0; n < fileDlg.FileNames.Length; n++) paths [n] = fileDlg.FileNames [n]; data.SelectedFiles = paths; if (dlg.SelectedEncodingId != null) data.Encoding = dlg.SelectedEncodingId > 0 ? Encoding.GetEncoding (dlg.SelectedEncodingId) : null; if (dlg.SelectedViewer != null) data.SelectedViewer = dlg.SelectedViewer; data.CloseCurrentWorkspace = dlg.CloseCurrentWorkspace; } return true; }
private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { SaveFileDialog saveFileDialog1 = new SaveFileDialog(); string fname = ""; saveFileDialog1.Filter = "Microsoft Excel (*.xls)|*.xls"; if (saveFileDialog1.ShowDialog() == DialogResult.OK) { fname = saveFileDialog1.FileName; try { dsoFramerControl1.FileSave(saveFileDialog1.FileName, true); if (MsgBox.ShowAskMessageBox("导出成功,是否打开该文档?") != DialogResult.OK) { ExcelAccess ex = new ExcelAccess(); ex.Open(fname); //此处写填充内容代码 ex.ShowExcel(); return; } } catch { MsgBox.ShowSuccessfulMessageBox("无法保存" + fname + "。请用其他文件名保存文件,或将文件存至其他位置。"); return; } } }
public static void ExportGridEx(Janus.Windows.GridEX.GridEX gridEx ) { Stream sw = null; try { var sd = new SaveFileDialog { Filter = "Excel File (*.xml)|*.xml" }; if (sd.ShowDialog() == DialogResult.OK) { //sw = new FileStream(sd.FileName, FileMode.OpenOrCreate, FileAccess.ReadWrite); sw = new FileStream(sd.FileName, FileMode.Create); GridEXExporter grdListExporter = new GridEXExporter(); grdListExporter.IncludeExcelProcessingInstruction = true; grdListExporter.IncludeFormatStyle = true; grdListExporter.IncludeHeaders = true; grdListExporter.GridEX = gridEx; grdListExporter.Export(sw); Utility.ShowMsg("Xuất dữ liệu thành công"); } } catch (Exception ex) { Utility.ShowMsg(ex.Message); } finally { if (sw != null) { sw.Flush(); sw.Close(); sw.Dispose(); } } }
public override void Invoke() { string value = HtmlSmartTag.Element.GetAttribute("ng-controller").Value; if (string.IsNullOrEmpty(value)) value = "myController"; string folder = ProjectHelpers.GetProjectFolder(EditorExtensionsPackage.DTE.ActiveDocument.FullName); string file; using (var dialog = new SaveFileDialog()) { dialog.FileName = value + ".js"; dialog.DefaultExt = ".js"; dialog.Filter = "JS files | *.js"; dialog.InitialDirectory = folder; if (dialog.ShowDialog() != DialogResult.OK) return; file = dialog.FileName; } EditorExtensionsPackage.DTE.UndoContext.Open(this.DisplayText); string script = GetScript(value); File.WriteAllText(file, script); ProjectHelpers.AddFileToActiveProject(file); EditorExtensionsPackage.DTE.ItemOperations.OpenFile(file); EditorExtensionsPackage.DTE.UndoContext.Close(); }
public static void SaveRadTree(RadTreeView view, IWin32Window frm = null, string filename = "") { var saveFileDialogCsv = new SaveFileDialog(); saveFileDialogCsv.Title = "Save data to Comma Separated File"; saveFileDialogCsv.Filter = "CSV or Excel|*.csv"; saveFileDialogCsv.CheckPathExists = true; saveFileDialogCsv.DefaultExt = "csv"; saveFileDialogCsv.AddExtension = true; saveFileDialogCsv.OverwritePrompt = true; saveFileDialogCsv.InitialDirectory = Repository.DataFolder; saveFileDialogCsv.FileName = filename; if (saveFileDialogCsv.ShowDialog(frm) == System.Windows.Forms.DialogResult.OK) { try { sb = new StringBuilder(); foreach (var node in view.Nodes) { sb.AppendLine(node.Text.Replace("<=", ",")); ListNodes(node); } System.IO.File.WriteAllText(saveFileDialogCsv.FileName, sb.ToString(),Encoding.UTF8); } catch (Exception exc) { MessageBox.Show(exc.Message, "Unexpected Error"); } } }
/// <summary> /// Displays a save file dialog. /// </summary> /// <param name="title">Dialog title.</param> /// <param name="startPath">Initial path.</param> /// <param name="extension">File extension filter.</param> /// <param name="callback">Callback that is executed after the dialog completes.</param> /// <returns>True if succeeded.</returns> public static bool FileSave(String title, String startPath, String extension, Action<String> callback) { var dialog = new SaveFileDialog { Title = title, InitialDirectory = startPath, DefaultExt = @"*.*", Filter = extension, CheckPathExists = true, OverwritePrompt = true }; if (dialog.ShowDialog() == DialogResult.OK) { if (callback != null) { callback(dialog.FileName); } } else { if (callback != null) { callback(String.Empty); } return false; } return true; }
private void btnSaveSetList_Click(object sender, EventArgs e) { using (SaveFileDialog dlgSave = new SaveFileDialog()) { dlgSave.Title = "Select where to save the training set to..."; dlgSave.Filter = "ENFORM Set File (*.eset)|*.eset|Text File (*.txt) |*.txt|Any file (*.*)|*.*"; if (dlgSave.ShowDialog() == DialogResult.OK) { using (StreamWriter w = new StreamWriter(dlgSave.FileName, false)) { foreach (selectedSet.SelectedIndexRow row in selectedTable.Rows) { if (row.testingset || row.trainingset) { w.WriteLine(row.subjectid.ToString() + "," + Convert.ToInt32(row.trainingset).ToString() + "," + Convert.ToInt32(row.testingset).ToString() + "," + feretDataSet.faces.Select("subjectid=" +row.subjectid.ToString())[0]["filename"].ToString() ); } } } } } }
public Form1() { InitializeComponent(); cd = new ColorDialog(); ld = new SHMUP.Screens.Levels.LevelManager.LevelData(); sfd = new SaveFileDialog(); sfd.Filter = "SHMUP Level File (*.lvl)|*.lvl"; ofd = new OpenFileDialog(); ofd.Filter = "SHMUP Level File (*.lvl)|*.lvl"; //for (int i = 0; i < (int)SHMUP.Screens.Levels.LevelManager.bosses.ZZZEndOfList; i++) //{ // comBossType.Items.Add((SHMUP.Screens.Levels.LevelManager.bosses)i); //} string appPath = Application.ExecutablePath.Remove(Application.ExecutablePath.LastIndexOf(Path.DirectorySeparatorChar)); String[] bosses = Directory.GetFiles(Path.Combine(Path.Combine(appPath, "Content"), "Bosses"), "*.bos"); for (int i = 0; i < bosses.Length; i++) { bosses[i] = bosses[i].Remove(0, Path.Combine(Path.Combine(appPath, "Content"), "Bosses").Length + 1); bosses[i] = bosses[i].Remove(bosses[i].LastIndexOf(".bos")); comBossType.Items.Add(bosses[i]); } for (int i = 0; i < (int)SHMUP.Screens.Levels.LevelManager.enemies.ZZZEndOfList; i++) { comEnemyType.Items.Add((SHMUP.Screens.Levels.LevelManager.enemies)i); } ClearAll(); }
private void btnSave_Click(object sender, EventArgs e) { SaveFileDialog sfd = new SaveFileDialog(); sfd.Title = "图象另存为"; sfd.OverwritePrompt = true; sfd.CheckPathExists = true; sfd.Filter = cmbSaveFiletype.Text + "|" + cmbSaveFiletype.Text; sfd.ShowHelp = true; if (sfd.ShowDialog() == DialogResult.OK) { string strFileName = sfd.FileName; switch (cmbSaveFiletype.Text) { case "*.bmp": m_bitmap.Save(strFileName, ImageFormat.Bmp); break; case "*.jpg": m_bitmap.Save(strFileName, ImageFormat.Jpeg); break; case "*.gif": m_bitmap.Save(strFileName, ImageFormat.Gif); break; case "*.tif": m_bitmap.Save(strFileName, ImageFormat.Tiff); break; } MessageBox.Show("图象文件格式转换成功!", "恭喜", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
public static int dialSaveFile(ref string dir, string filter, string title, int filterIndex, out string path) { path = ""; SaveFileDialog dlg = new SaveFileDialog(); if (Directory.Exists(dir)) dlg.InitialDirectory = dir; dlg.Title = title; dlg.Filter = filter; dlg.RestoreDirectory = true; dlg.FilterIndex = filterIndex; if (dlg.ShowDialog() == DialogResult.OK) { path = dlg.FileName; dir = Path.GetDirectoryName(path); return dlg.FilterIndex; } return -1; }
private void buttonExtract_Click(object sender, EventArgs e) { if (!File.Exists(txtCompiledFile.Text)) { MessageBox.Show(this, "Please select a compiled ArchAngel template file.", "Missing File", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } SaveFileDialog dialog = new SaveFileDialog(); dialog.DefaultExt = ".stz"; dialog.Filter = "ArchAngel templates (*.stz)|*.stz"; if (dialog.ShowDialog() == DialogResult.OK) { if (!Directory.Exists(Path.GetDirectoryName(dialog.FileName))) { MessageBox.Show(this, "Please specify a valid save location.", "Invalid Folder", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } if (File.Exists(dialog.FileName)) { Slyce.Common.Utility.DeleteFileBrute(dialog.FileName); } Project.ExtractTemplateFromCompiledTemplate(txtCompiledFile.Text, dialog.FileName); this.FileName = dialog.FileName; this.DialogResult = DialogResult.OK; this.Close(); } }
private void barra1_click_imprimir_button() { SaveFileDialog sfDialog = new SaveFileDialog(); sfDialog.AddExtension = true; sfDialog.Filter = "PDF Files (*.pdf)|*.PDF"; sfDialog.DefaultExt = ".pdf"; DialogResult drResult = sfDialog.ShowDialog(); if (drResult.Equals(DialogResult.OK)) { switch (tabControl1.SelectedIndex) { case 0: convertidor.ExportGrid(dgv_Tab0_Historial, sfDialog.FileName,"BODEGA"); break; case 1: convertidor.ExportGrid(dgv_Tab1_Historial, sfDialog.FileName,"UBICACION"); break; case 2: convertidor.ExportGrid(dgv_Tab2_Historial, sfDialog.FileName,"TIPO PRODUCTO"); break; case 3: convertidor.ExportGrid(dataGridView1, sfDialog.FileName, "Verificacion Inventario"); break; } } }
private void yesButton_Click(object sender, EventArgs e) { using (SaveFileDialog save = new SaveFileDialog()) { save.DefaultExt = "sql"; save.OverwritePrompt = true; save.Filter = "SQL Script Files (*.sql)|*.sql|All Files (*.*)|*.*"; save.FileName = String.Format("{0}.sql", _tableName); save.Title = "Save SQLite Change Script"; DialogResult = save.ShowDialog(this); if (DialogResult == DialogResult.OK) { _defaultSave = _saveOrig.Checked; using (System.IO.StreamWriter writer = new System.IO.StreamWriter(save.FileName, false, Encoding.UTF8)) { if ((_show.Visible == true && _saveOrig.Checked == true) || (_show.Visible == false && _splitter.Panel2Collapsed == true)) { if (_show.Visible == true) writer.WriteLine("/*"); writer.WriteLine(_original.Text.Replace("\r", "").TrimEnd('\n').Replace("\n", "\r\n")); if (_show.Visible == true) writer.WriteLine("*/"); } if (_show.Visible == true || _splitter.Panel2Collapsed == false) writer.WriteLine(_script.Text.Replace("\r", "").TrimEnd('\n').Replace("\n", "\r\n")); } } } Close(); }
public override object EditValue(ITypeDescriptorContext context, System.IServiceProvider provider, object value) { if (context == null || provider == null || context.Instance == null) { return base.EditValue(provider, value); } FileDialog fileDlg; if (context.PropertyDescriptor.Attributes[typeof(SaveFileAttribute)] == null) { fileDlg = new OpenFileDialog(); } else { fileDlg = new SaveFileDialog(); } fileDlg.Title = "Select " + context.PropertyDescriptor.DisplayName; fileDlg.FileName = (string) value; FileDialogFilterAttribute filterAtt = (FileDialogFilterAttribute) context.PropertyDescriptor.Attributes[typeof(FileDialogFilterAttribute)]; if (filterAtt != null) { fileDlg.Filter = filterAtt.Filter; } if (fileDlg.ShowDialog() == DialogResult.OK) { value = fileDlg.FileName; } fileDlg.Dispose(); return value; }
private void BgWorkerReport_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { MotherForm.SetStatusBarMessage("完成。"); #region 建立資料夾 //時間戳印 string fileDateTime = DateTime.Now.ToString("yyyyMMdd"); //Docx string pathDocx = ""; string pathDefaultFolderDocx = Path.Combine(System.Windows.Forms.Application.StartupPath, "Reports\\學生第6學期修課紀錄Docx_" + fileDateTime); string pathFolderDocx = Path.Combine(System.Windows.Forms.Application.StartupPath, "Reports\\學生第6學期修課紀錄Docx_" + fileDateTime); //PDF string pathPDF = ""; string pathDefaultFolderPDF = Path.Combine(System.Windows.Forms.Application.StartupPath, "Reports\\學生第6學期修課紀錄PDF_" + fileDateTime); string pathFolderPDF = Path.Combine(System.Windows.Forms.Application.StartupPath, "Reports\\學生第6學期修課紀錄PDF_" + fileDateTime); // 完成後開啟資料夾 string folderDocx = ""; string folderPDF = ""; //建立Word資料夾 try { if (Directory.Exists(pathFolderDocx)) { int a = 1; while (true) { string newPath = Path.GetDirectoryName(pathFolderDocx) + "\\" + Path.GetFileNameWithoutExtension(pathDefaultFolderDocx) + "_" + (a++) + Path.GetExtension(pathFolderDocx); if (!Directory.Exists(newPath)) { pathFolderDocx = newPath; break; } } } else { Directory.CreateDirectory(pathFolderDocx); } folderDocx = pathFolderDocx; } catch (Exception ex) { FISCA.Presentation.Controls.MsgBox.Show("建立資料夾失敗:" + ex.Message); } //建立PDF資料夾 try { if (Directory.Exists(pathFolderPDF)) { int a = 1; while (true) { string newPath = Path.GetDirectoryName(pathFolderPDF) + "\\" + Path.GetFileNameWithoutExtension(pathDefaultFolderPDF) + "_" + (a++) + Path.GetExtension(pathFolderPDF); if (!Directory.Exists(newPath)) { pathFolderPDF = newPath; break; } } } else { Directory.CreateDirectory(pathFolderPDF); } folderPDF = pathFolderPDF; } catch (Exception ex) { FISCA.Presentation.Controls.MsgBox.Show("建立資料夾失敗:" + ex.Message); } #endregion #region 單檔列印 foreach (string sid in StudentDocDict.Keys) { #region Word try { Document document = StudentDocDict[sid]; #region 儲存檔案 string reportNameSingle = StudentDocNameDict[sid]; string className = StudentClassFolderDict[sid]; pathDocx = Path.Combine(pathFolderDocx, reportNameSingle + ".docx"); if (IsAccordingToClass) { pathDocx = Path.Combine(pathFolderDocx, className, reportNameSingle + ".docx"); } if (File.Exists(pathDocx)) { int i = 1; while (true) { string newPath = Path.GetDirectoryName(pathDocx) + "\\" + Path.GetFileNameWithoutExtension(pathDocx) + "_" + (i++) + Path.GetExtension(pathDocx); if (!File.Exists(newPath)) { pathDocx = newPath; break; } } } try { document.Save(pathDocx, SaveFormat.Docx); } catch (Exception ex) { System.Windows.Forms.SaveFileDialog sd = new System.Windows.Forms.SaveFileDialog(); sd.Title = "另存新檔"; sd.FileName = reportNameSingle + ".docx"; sd.Filter = "Word檔案 (*.docx)|*.docx|所有檔案 (*.*)|*.*"; if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { document.Save(sd.FileName, Aspose.Words.SaveFormat.Docx); } catch { FISCA.Presentation.Controls.MsgBox.Show("指定路徑無法存取。", "建立檔案失敗", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); return; } } } #endregion } catch (Exception ex) { FISCA.Presentation.Controls.MsgBox.Show("產生過程發生錯誤:" + ex.Message); } #endregion #region PDF try { Document document = StudentDocDict[sid]; #region 儲存檔案 string reportNameSingle = StudentDocNameDict[sid]; string className = StudentClassFolderDict[sid]; pathPDF = Path.Combine(pathFolderPDF, reportNameSingle + ".PDF"); if (IsAccordingToClass) { pathPDF = Path.Combine(pathFolderPDF, className, reportNameSingle + ".PDF"); } if (File.Exists(pathPDF)) { int i = 1; while (true) { string newPath = Path.GetDirectoryName(pathPDF) + "\\" + Path.GetFileNameWithoutExtension(pathPDF) + "_" + (i++) + Path.GetExtension(pathPDF); if (!File.Exists(newPath)) { pathPDF = newPath; break; } } } try { document.Save(pathPDF, SaveFormat.Pdf); } catch (Exception ex) { System.Windows.Forms.SaveFileDialog sd = new System.Windows.Forms.SaveFileDialog(); sd.Title = "另存新檔"; sd.FileName = reportNameSingle + ".PDF"; sd.Filter = "PDF檔案 (*.PDF)|*.PDF|所有檔案 (*.*)|*.*"; if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { document.Save(sd.FileName, Aspose.Words.SaveFormat.Pdf); } catch { FISCA.Presentation.Controls.MsgBox.Show("指定路徑無法存取。", "建立檔案失敗", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); return; } } } #endregion } catch (Exception ex) { FISCA.Presentation.Controls.MsgBox.Show("產生過程發生錯誤," + ex.Message); } #endregion } try { System.Diagnostics.Process.Start(folderDocx); System.Diagnostics.Process.Start(folderPDF); } catch (Exception ex) { MsgBox.Show(ex.Message); } #endregion }
private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmStockfromFile)); this.components = new System.ComponentModel.Container(); this.ToolTip1 = new System.Windows.Forms.ToolTip(components); this.Frame2 = new System.Windows.Forms.GroupBox(); this.txtFile = new System.Windows.Forms.TextBox(); this.prgStockItem = new System.Windows.Forms.ProgressBar(); this.Label1 = new System.Windows.Forms.Label(); this.Label2 = new System.Windows.Forms.Label(); this.picButtons = new System.Windows.Forms.Panel(); this.cmdNext = new System.Windows.Forms.Button(); this.cmdBack = new System.Windows.Forms.Button(); this.CommonDialog1Open = new System.Windows.Forms.OpenFileDialog(); this.CommonDialog1Save = new System.Windows.Forms.SaveFileDialog(); this.CommonDialog1Font = new System.Windows.Forms.FontDialog(); this.CommonDialog1Color = new System.Windows.Forms.ColorDialog(); this.CommonDialog1Print = new System.Windows.Forms.PrintDialog(); this._frmMode_1 = new System.Windows.Forms.GroupBox(); this.Picture1 = new System.Windows.Forms.PictureBox(); this.txtName = new System.Windows.Forms.TextBox(); this.txtReceipt = new System.Windows.Forms.TextBox(); this.Frame1 = new System.Windows.Forms.GroupBox(); this.txtQuantity = new System.Windows.Forms.TextBox(); this.txtCost = new System.Windows.Forms.TextBox(); this.cmbShrink = new myDataGridView(); this._lblLabels_2 = new System.Windows.Forms.Label(); this._lblLabels_10 = new System.Windows.Forms.Label(); this._lblLabels_1 = new System.Windows.Forms.Label(); this.cmbPricingGroup = new myDataGridView(); this.cmbStockGroup = new myDataGridView(); this.cmbDeposit = new myDataGridView(); this.cmbSupplier = new myDataGridView(); this._lblLabels_6 = new System.Windows.Forms.Label(); this._lblLabels_0 = new System.Windows.Forms.Label(); this._lblLabels_3 = new System.Windows.Forms.Label(); this._lblLabels_4 = new System.Windows.Forms.Label(); this._lblLabels_7 = new System.Windows.Forms.Label(); this._lblLabels_8 = new System.Windows.Forms.Label(); //Me.frmMode = New Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray(components) //Me.lblLabels = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(components) this.Frame2.SuspendLayout(); this.picButtons.SuspendLayout(); this._frmMode_1.SuspendLayout(); this.Frame1.SuspendLayout(); this.SuspendLayout(); this.ToolTip1.Active = true; ((System.ComponentModel.ISupportInitialize) this.cmbShrink).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.cmbPricingGroup).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.cmbStockGroup).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.cmbDeposit).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.cmbSupplier).BeginInit(); //CType(Me.frmMode, System.ComponentModel.ISupportInitialize).BeginInit() //CType(Me.lblLabels, System.ComponentModel.ISupportInitialize).BeginInit() this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Text = "Adding Stock Items"; this.ClientSize = new System.Drawing.Size(528, 170); this.Location = new System.Drawing.Point(3, 22); this.ControlBox = false; this.MaximizeBox = false; this.MinimizeBox = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; this.Enabled = true; this.KeyPreview = false; this.Cursor = System.Windows.Forms.Cursors.Default; this.RightToLeft = System.Windows.Forms.RightToLeft.No; this.HelpButton = false; this.WindowState = System.Windows.Forms.FormWindowState.Normal; this.Name = "frmStockfromFile"; this.Frame2.Size = new System.Drawing.Size(515, 99); this.Frame2.Location = new System.Drawing.Point(6, 62); this.Frame2.TabIndex = 24; this.Frame2.BackColor = System.Drawing.SystemColors.Control; this.Frame2.Enabled = true; this.Frame2.ForeColor = System.Drawing.SystemColors.ControlText; this.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Frame2.Visible = true; this.Frame2.Padding = new System.Windows.Forms.Padding(0); this.Frame2.Name = "Frame2"; this.txtFile.AutoSize = false; this.txtFile.Enabled = false; this.txtFile.Size = new System.Drawing.Size(403, 19); this.txtFile.Location = new System.Drawing.Point(104, 12); this.txtFile.TabIndex = 26; this.txtFile.AcceptsReturn = true; this.txtFile.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.txtFile.BackColor = System.Drawing.SystemColors.Window; this.txtFile.CausesValidation = true; this.txtFile.ForeColor = System.Drawing.SystemColors.WindowText; this.txtFile.HideSelection = true; this.txtFile.ReadOnly = false; this.txtFile.MaxLength = 0; this.txtFile.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtFile.Multiline = false; this.txtFile.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtFile.ScrollBars = System.Windows.Forms.ScrollBars.None; this.txtFile.TabStop = true; this.txtFile.Visible = true; this.txtFile.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtFile.Name = "txtFile"; this.prgStockItem.Size = new System.Drawing.Size(495, 21); this.prgStockItem.Location = new System.Drawing.Point(14, 34); this.prgStockItem.TabIndex = 25; this.prgStockItem.Maximum = 10000; this.prgStockItem.Name = "prgStockItem"; this.Label1.Text = "File Name: "; this.Label1.Size = new System.Drawing.Size(81, 17); this.Label1.Location = new System.Drawing.Point(20, 12); this.Label1.TabIndex = 28; this.Label1.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.Label1.BackColor = System.Drawing.SystemColors.Control; this.Label1.Enabled = true; this.Label1.ForeColor = System.Drawing.SystemColors.ControlText; this.Label1.Cursor = System.Windows.Forms.Cursors.Default; this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label1.UseMnemonic = true; this.Label1.Visible = true; this.Label1.AutoSize = false; this.Label1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.Label1.Name = "Label1"; this.Label2.TextAlign = System.Drawing.ContentAlignment.TopRight; this.Label2.Text = ":"; this.Label2.Size = new System.Drawing.Size(295, 23); this.Label2.Location = new System.Drawing.Point(212, 60); this.Label2.TabIndex = 27; this.Label2.BackColor = System.Drawing.SystemColors.Control; this.Label2.Enabled = true; this.Label2.ForeColor = System.Drawing.SystemColors.ControlText; this.Label2.Cursor = System.Windows.Forms.Cursors.Default; this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label2.UseMnemonic = true; this.Label2.Visible = true; this.Label2.AutoSize = false; this.Label2.BorderStyle = System.Windows.Forms.BorderStyle.None; this.Label2.Name = "Label2"; this.picButtons.Dock = System.Windows.Forms.DockStyle.Top; this.picButtons.BackColor = System.Drawing.Color.Blue; this.picButtons.Size = new System.Drawing.Size(528, 53); this.picButtons.Location = new System.Drawing.Point(0, 0); this.picButtons.TabIndex = 21; this.picButtons.TabStop = false; this.picButtons.CausesValidation = true; this.picButtons.Enabled = true; this.picButtons.ForeColor = System.Drawing.SystemColors.ControlText; this.picButtons.Cursor = System.Windows.Forms.Cursors.Default; this.picButtons.RightToLeft = System.Windows.Forms.RightToLeft.No; this.picButtons.Visible = true; this.picButtons.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.picButtons.Name = "picButtons"; this.cmdNext.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cmdNext.Text = "&Do Update>>"; this.cmdNext.Size = new System.Drawing.Size(96, 33); this.cmdNext.Location = new System.Drawing.Point(420, 6); this.cmdNext.TabIndex = 23; this.cmdNext.TabStop = false; this.cmdNext.BackColor = System.Drawing.SystemColors.Control; this.cmdNext.CausesValidation = true; this.cmdNext.Enabled = true; this.cmdNext.ForeColor = System.Drawing.SystemColors.ControlText; this.cmdNext.Cursor = System.Windows.Forms.Cursors.Default; this.cmdNext.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cmdNext.Name = "cmdNext"; this.cmdBack.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cmdBack.Text = "E&xit"; this.cmdBack.Size = new System.Drawing.Size(97, 33); this.cmdBack.Location = new System.Drawing.Point(8, 6); this.cmdBack.TabIndex = 22; this.cmdBack.TabStop = false; this.cmdBack.BackColor = System.Drawing.SystemColors.Control; this.cmdBack.CausesValidation = true; this.cmdBack.Enabled = true; this.cmdBack.ForeColor = System.Drawing.SystemColors.ControlText; this.cmdBack.Cursor = System.Windows.Forms.Cursors.Default; this.cmdBack.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cmdBack.Name = "cmdBack"; this._frmMode_1.Text = "New \"Stock Item\" Details."; this._frmMode_1.Enabled = false; this._frmMode_1.Size = new System.Drawing.Size(331, 263); this._frmMode_1.Location = new System.Drawing.Point(-2, 506); this._frmMode_1.TabIndex = 0; this._frmMode_1.BackColor = System.Drawing.SystemColors.Control; this._frmMode_1.ForeColor = System.Drawing.SystemColors.ControlText; this._frmMode_1.RightToLeft = System.Windows.Forms.RightToLeft.No; this._frmMode_1.Visible = true; this._frmMode_1.Padding = new System.Windows.Forms.Padding(0); this._frmMode_1.Name = "_frmMode_1"; this.Picture1.Size = new System.Drawing.Size(295, 4); this.Picture1.Location = new System.Drawing.Point(28, 162); this.Picture1.TabIndex = 10; this.Picture1.TabStop = false; this.Picture1.Dock = System.Windows.Forms.DockStyle.None; this.Picture1.BackColor = System.Drawing.SystemColors.Control; this.Picture1.CausesValidation = true; this.Picture1.Enabled = true; this.Picture1.ForeColor = System.Drawing.SystemColors.ControlText; this.Picture1.Cursor = System.Windows.Forms.Cursors.Default; this.Picture1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Picture1.Visible = true; this.Picture1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Normal; this.Picture1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.Picture1.Name = "Picture1"; this.txtName.AutoSize = false; this.txtName.Size = new System.Drawing.Size(241, 19); this.txtName.Location = new System.Drawing.Point(82, 18); this.txtName.TabIndex = 9; this.txtName.Text = "[New Product]"; this.txtName.AcceptsReturn = true; this.txtName.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.txtName.BackColor = System.Drawing.SystemColors.Window; this.txtName.CausesValidation = true; this.txtName.Enabled = true; this.txtName.ForeColor = System.Drawing.SystemColors.WindowText; this.txtName.HideSelection = true; this.txtName.ReadOnly = false; this.txtName.MaxLength = 0; this.txtName.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtName.Multiline = false; this.txtName.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtName.ScrollBars = System.Windows.Forms.ScrollBars.None; this.txtName.TabStop = true; this.txtName.Visible = true; this.txtName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtName.Name = "txtName"; this.txtReceipt.AutoSize = false; this.txtReceipt.Size = new System.Drawing.Size(241, 19); this.txtReceipt.Location = new System.Drawing.Point(82, 39); this.txtReceipt.MaxLength = 20; this.txtReceipt.TabIndex = 8; this.txtReceipt.AcceptsReturn = true; this.txtReceipt.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.txtReceipt.BackColor = System.Drawing.SystemColors.Window; this.txtReceipt.CausesValidation = true; this.txtReceipt.Enabled = true; this.txtReceipt.ForeColor = System.Drawing.SystemColors.WindowText; this.txtReceipt.HideSelection = true; this.txtReceipt.ReadOnly = false; this.txtReceipt.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtReceipt.Multiline = false; this.txtReceipt.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtReceipt.ScrollBars = System.Windows.Forms.ScrollBars.None; this.txtReceipt.TabStop = true; this.txtReceipt.Visible = true; this.txtReceipt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtReceipt.Name = "txtReceipt"; this.Frame1.Size = new System.Drawing.Size(317, 57); this.Frame1.Location = new System.Drawing.Point(8, 168); this.Frame1.TabIndex = 1; this.Frame1.BackColor = System.Drawing.SystemColors.Control; this.Frame1.Enabled = true; this.Frame1.ForeColor = System.Drawing.SystemColors.ControlText; this.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Frame1.Visible = true; this.Frame1.Padding = new System.Windows.Forms.Padding(0); this.Frame1.Name = "Frame1"; this.txtQuantity.AutoSize = false; this.txtQuantity.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.txtQuantity.Size = new System.Drawing.Size(28, 19); this.txtQuantity.Location = new System.Drawing.Point(56, 12); this.txtQuantity.TabIndex = 3; this.txtQuantity.Text = "12"; this.txtQuantity.AcceptsReturn = true; this.txtQuantity.BackColor = System.Drawing.SystemColors.Window; this.txtQuantity.CausesValidation = true; this.txtQuantity.Enabled = true; this.txtQuantity.ForeColor = System.Drawing.SystemColors.WindowText; this.txtQuantity.HideSelection = true; this.txtQuantity.ReadOnly = false; this.txtQuantity.MaxLength = 0; this.txtQuantity.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtQuantity.Multiline = false; this.txtQuantity.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtQuantity.ScrollBars = System.Windows.Forms.ScrollBars.None; this.txtQuantity.TabStop = true; this.txtQuantity.Visible = true; this.txtQuantity.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtQuantity.Name = "txtQuantity"; this.txtCost.AutoSize = false; this.txtCost.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.txtCost.Size = new System.Drawing.Size(56, 19); this.txtCost.Location = new System.Drawing.Point(256, 14); this.txtCost.TabIndex = 2; this.txtCost.Text = "0.00"; this.txtCost.AcceptsReturn = true; this.txtCost.BackColor = System.Drawing.SystemColors.Window; this.txtCost.CausesValidation = true; this.txtCost.Enabled = true; this.txtCost.ForeColor = System.Drawing.SystemColors.WindowText; this.txtCost.HideSelection = true; this.txtCost.ReadOnly = false; this.txtCost.MaxLength = 0; this.txtCost.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtCost.Multiline = false; this.txtCost.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtCost.ScrollBars = System.Windows.Forms.ScrollBars.None; this.txtCost.TabStop = true; this.txtCost.Visible = true; this.txtCost.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtCost.Name = "txtCost"; //cmbShrink.OcxState = CType(resources.GetObject("cmbShrink.OcxState"), System.Windows.Forms.AxHost.State) this.cmbShrink.Size = new System.Drawing.Size(91, 21); this.cmbShrink.Location = new System.Drawing.Point(134, 30); this.cmbShrink.TabIndex = 4; this.cmbShrink.Name = "cmbShrink"; this._lblLabels_2.TextAlign = System.Drawing.ContentAlignment.TopRight; this._lblLabels_2.Text = "There are "; this._lblLabels_2.Size = new System.Drawing.Size(49, 13); this._lblLabels_2.Location = new System.Drawing.Point(6, 16); this._lblLabels_2.TabIndex = 7; this._lblLabels_2.BackColor = System.Drawing.Color.Transparent; this._lblLabels_2.Enabled = true; this._lblLabels_2.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_2.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_2.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_2.UseMnemonic = true; this._lblLabels_2.Visible = true; this._lblLabels_2.AutoSize = true; this._lblLabels_2.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_2.Name = "_lblLabels_2"; this._lblLabels_10.Text = "Units in a case/carton, which costs"; this._lblLabels_10.Size = new System.Drawing.Size(167, 13); this._lblLabels_10.Location = new System.Drawing.Point(86, 16); this._lblLabels_10.TabIndex = 6; this._lblLabels_10.TextAlign = System.Drawing.ContentAlignment.TopLeft; this._lblLabels_10.BackColor = System.Drawing.Color.Transparent; this._lblLabels_10.Enabled = true; this._lblLabels_10.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_10.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_10.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_10.UseMnemonic = true; this._lblLabels_10.Visible = true; this._lblLabels_10.AutoSize = true; this._lblLabels_10.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_10.Name = "_lblLabels_10"; this._lblLabels_1.TextAlign = System.Drawing.ContentAlignment.TopRight; this._lblLabels_1.Text = "and you sell in shrinks of"; this._lblLabels_1.Size = new System.Drawing.Size(115, 13); this._lblLabels_1.Location = new System.Drawing.Point(8, 38); this._lblLabels_1.TabIndex = 5; this._lblLabels_1.BackColor = System.Drawing.Color.Transparent; this._lblLabels_1.Enabled = true; this._lblLabels_1.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_1.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_1.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_1.UseMnemonic = true; this._lblLabels_1.Visible = true; this._lblLabels_1.AutoSize = true; this._lblLabels_1.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_1.Name = "_lblLabels_1"; //cmbPricingGroup.OcxState = CType(resources.GetObject("cmbPricingGroup.OcxState"), System.Windows.Forms.AxHost.State) this.cmbPricingGroup.Size = new System.Drawing.Size(241, 21); this.cmbPricingGroup.Location = new System.Drawing.Point(82, 108); this.cmbPricingGroup.TabIndex = 11; this.cmbPricingGroup.Name = "cmbPricingGroup"; //cmbStockGroup.OcxState = CType(resources.GetObject("cmbStockGroup.OcxState"), System.Windows.Forms.AxHost.State) this.cmbStockGroup.Size = new System.Drawing.Size(241, 21); this.cmbStockGroup.Location = new System.Drawing.Point(82, 132); this.cmbStockGroup.TabIndex = 12; this.cmbStockGroup.Name = "cmbStockGroup"; //cmbDeposit.OcxState = CType(resources.GetObject("cmbDeposit.OcxState"), System.Windows.Forms.AxHost.State) this.cmbDeposit.Size = new System.Drawing.Size(241, 21); this.cmbDeposit.Location = new System.Drawing.Point(82, 84); this.cmbDeposit.TabIndex = 13; this.cmbDeposit.Name = "cmbDeposit"; //cmbSupplier.OcxState = CType(resources.GetObject("cmbSupplier.OcxState"), System.Windows.Forms.AxHost.State) this.cmbSupplier.Size = new System.Drawing.Size(241, 21); this.cmbSupplier.Location = new System.Drawing.Point(82, 60); this.cmbSupplier.TabIndex = 14; this.cmbSupplier.Name = "cmbSupplier"; this._lblLabels_6.TextAlign = System.Drawing.ContentAlignment.TopRight; this._lblLabels_6.Text = "Deposit:"; this._lblLabels_6.Size = new System.Drawing.Size(39, 13); this._lblLabels_6.Location = new System.Drawing.Point(38, 90); this._lblLabels_6.TabIndex = 20; this._lblLabels_6.BackColor = System.Drawing.Color.Transparent; this._lblLabels_6.Enabled = true; this._lblLabels_6.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_6.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_6.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_6.UseMnemonic = true; this._lblLabels_6.Visible = true; this._lblLabels_6.AutoSize = true; this._lblLabels_6.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_6.Name = "_lblLabels_6"; this._lblLabels_0.TextAlign = System.Drawing.ContentAlignment.TopRight; this._lblLabels_0.Text = "Supplier:"; this._lblLabels_0.Size = new System.Drawing.Size(41, 13); this._lblLabels_0.Location = new System.Drawing.Point(36, 66); this._lblLabels_0.TabIndex = 19; this._lblLabels_0.BackColor = System.Drawing.Color.Transparent; this._lblLabels_0.Enabled = true; this._lblLabels_0.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_0.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_0.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_0.UseMnemonic = true; this._lblLabels_0.Visible = true; this._lblLabels_0.AutoSize = true; this._lblLabels_0.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_0.Name = "_lblLabels_0"; this._lblLabels_3.TextAlign = System.Drawing.ContentAlignment.TopRight; this._lblLabels_3.Text = "Pricing Group:"; this._lblLabels_3.Size = new System.Drawing.Size(67, 13); this._lblLabels_3.Location = new System.Drawing.Point(10, 114); this._lblLabels_3.TabIndex = 18; this._lblLabels_3.BackColor = System.Drawing.Color.Transparent; this._lblLabels_3.Enabled = true; this._lblLabels_3.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_3.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_3.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_3.UseMnemonic = true; this._lblLabels_3.Visible = true; this._lblLabels_3.AutoSize = true; this._lblLabels_3.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_3.Name = "_lblLabels_3"; this._lblLabels_4.TextAlign = System.Drawing.ContentAlignment.TopRight; this._lblLabels_4.Text = "Stock Group:"; this._lblLabels_4.Size = new System.Drawing.Size(63, 13); this._lblLabels_4.Location = new System.Drawing.Point(14, 138); this._lblLabels_4.TabIndex = 17; this._lblLabels_4.BackColor = System.Drawing.Color.Transparent; this._lblLabels_4.Enabled = true; this._lblLabels_4.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_4.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_4.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_4.UseMnemonic = true; this._lblLabels_4.Visible = true; this._lblLabels_4.AutoSize = true; this._lblLabels_4.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_4.Name = "_lblLabels_4"; this._lblLabels_7.TextAlign = System.Drawing.ContentAlignment.TopRight; this._lblLabels_7.Text = "Display Name:"; this._lblLabels_7.Size = new System.Drawing.Size(68, 13); this._lblLabels_7.Location = new System.Drawing.Point(10, 20); this._lblLabels_7.TabIndex = 16; this._lblLabels_7.BackColor = System.Drawing.Color.Transparent; this._lblLabels_7.Enabled = true; this._lblLabels_7.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_7.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_7.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_7.UseMnemonic = true; this._lblLabels_7.Visible = true; this._lblLabels_7.AutoSize = true; this._lblLabels_7.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_7.Name = "_lblLabels_7"; this._lblLabels_8.TextAlign = System.Drawing.ContentAlignment.TopRight; this._lblLabels_8.Text = "Receipt Name:"; this._lblLabels_8.Size = new System.Drawing.Size(71, 13); this._lblLabels_8.Location = new System.Drawing.Point(6, 45); this._lblLabels_8.TabIndex = 15; this._lblLabels_8.BackColor = System.Drawing.Color.Transparent; this._lblLabels_8.Enabled = true; this._lblLabels_8.ForeColor = System.Drawing.SystemColors.ControlText; this._lblLabels_8.Cursor = System.Windows.Forms.Cursors.Default; this._lblLabels_8.RightToLeft = System.Windows.Forms.RightToLeft.No; this._lblLabels_8.UseMnemonic = true; this._lblLabels_8.Visible = true; this._lblLabels_8.AutoSize = true; this._lblLabels_8.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lblLabels_8.Name = "_lblLabels_8"; this.Controls.Add(Frame2); this.Controls.Add(picButtons); this.Controls.Add(_frmMode_1); this.Frame2.Controls.Add(txtFile); this.Frame2.Controls.Add(prgStockItem); this.Frame2.Controls.Add(Label1); this.Frame2.Controls.Add(Label2); this.picButtons.Controls.Add(cmdNext); this.picButtons.Controls.Add(cmdBack); this._frmMode_1.Controls.Add(Picture1); this._frmMode_1.Controls.Add(txtName); this._frmMode_1.Controls.Add(txtReceipt); this._frmMode_1.Controls.Add(Frame1); this._frmMode_1.Controls.Add(cmbPricingGroup); this._frmMode_1.Controls.Add(cmbStockGroup); this._frmMode_1.Controls.Add(cmbDeposit); this._frmMode_1.Controls.Add(cmbSupplier); this._frmMode_1.Controls.Add(_lblLabels_6); this._frmMode_1.Controls.Add(_lblLabels_0); this._frmMode_1.Controls.Add(_lblLabels_3); this._frmMode_1.Controls.Add(_lblLabels_4); this._frmMode_1.Controls.Add(_lblLabels_7); this._frmMode_1.Controls.Add(_lblLabels_8); this.Frame1.Controls.Add(txtQuantity); this.Frame1.Controls.Add(txtCost); this.Frame1.Controls.Add(cmbShrink); this.Frame1.Controls.Add(_lblLabels_2); this.Frame1.Controls.Add(_lblLabels_10); this.Frame1.Controls.Add(_lblLabels_1); //Me.frmMode.SetIndex(_frmMode_1, CType(1, Short)) //Me.lblLabels.SetIndex(_lblLabels_2, CType(2, Short)) //Me.lblLabels.SetIndex(_lblLabels_10, CType(10, Short)) //Me.lblLabels.SetIndex(_lblLabels_1, CType(1, Short)) //Me.lblLabels.SetIndex(_lblLabels_6, CType(6, Short)) //Me.lblLabels.SetIndex(_lblLabels_0, CType(0, Short)) //Me.lblLabels.SetIndex(_lblLabels_3, CType(3, Short)) //Me.lblLabels.SetIndex(_lblLabels_4, CType(4, Short)) //Me.lblLabels.SetIndex(_lblLabels_7, CType(7, Short)) //Me.lblLabels.SetIndex(_lblLabels_8, CType(8, Short)) //CType(Me.lblLabels, System.ComponentModel.ISupportInitialize).EndInit() //CType(Me.frmMode, System.ComponentModel.ISupportInitialize).EndInit() ((System.ComponentModel.ISupportInitialize) this.cmbSupplier).EndInit(); ((System.ComponentModel.ISupportInitialize) this.cmbDeposit).EndInit(); ((System.ComponentModel.ISupportInitialize) this.cmbStockGroup).EndInit(); ((System.ComponentModel.ISupportInitialize) this.cmbPricingGroup).EndInit(); ((System.ComponentModel.ISupportInitialize) this.cmbShrink).EndInit(); this.Frame2.ResumeLayout(false); this.picButtons.ResumeLayout(false); this._frmMode_1.ResumeLayout(false); this.Frame1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
public void OpenSaveDialog() { Texture2D texture = TakeScreenShot(); string fileName = "ScreenShot"; System.Windows.Forms.SaveFileDialog sfd = new System.Windows.Forms.SaveFileDialog(); sfd.Title = "Save Screen Shot"; sfd.Filter = "png files (*.png)|*.png|txt files (*.txt)|*.txt|All files (*.*)|*.*"; sfd.FilterIndex = 1; sfd.RestoreDirectory = true; Stream myStream; var path = ""; if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if ((myStream = sfd.OpenFile()) != null) { var file = texture.EncodeToPNG(); myStream.Write(file, 0, file.Length); path = sfd.FileName; print(path); Process.Start(@path); if (path.Length > 0) { path = StepBackward(path); string[] files = GetAllFileInPath(path); StartCoroutine(LoadImages(files, OnLoadImageCallback)); } myStream.Close(); } } /* * path = EditorUtility.SaveFilePanel( * "Save ScreenShot", * "", * fileName + ".png", * "png"); * UnityEngine.Debug.Log(path); * */ /* if (path.Length != 0) * { * var pngData = texture.EncodeToPNG(); * if (pngData != null) * { * File.WriteAllBytes(path, pngData); * Process.Start(@path); * UnityEngine.Debug.Log("Save Data : " + path); * } * }*/ }
public string BrowseForFileSave(IntPtr owner, string filter, string initialPath = null) { if (string.IsNullOrEmpty(initialPath)) { initialPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar; } IVsUIShell uiShell = GetService(typeof(SVsUIShell)) as IVsUIShell; if (null == uiShell) { using (var sfd = new System.Windows.Forms.SaveFileDialog()) { sfd.AutoUpgradeEnabled = true; sfd.Filter = filter; sfd.FileName = Path.GetFileName(initialPath); sfd.InitialDirectory = Path.GetDirectoryName(initialPath); DialogResult result; if (owner == IntPtr.Zero) { result = sfd.ShowDialog(); } else { result = sfd.ShowDialog(NativeWindow.FromHandle(owner)); } if (result == DialogResult.OK) { return(sfd.FileName); } else { return(null); } } } if (owner == IntPtr.Zero) { ErrorHandler.ThrowOnFailure(uiShell.GetDialogOwnerHwnd(out owner)); } VSSAVEFILENAMEW[] saveInfo = new VSSAVEFILENAMEW[1]; saveInfo[0].lStructSize = (uint)Marshal.SizeOf(typeof(VSSAVEFILENAMEW)); saveInfo[0].pwzFilter = filter.Replace('|', '\0') + "\0"; saveInfo[0].hwndOwner = owner; saveInfo[0].nMaxFileName = 260; var pFileName = Marshal.AllocCoTaskMem(520); saveInfo[0].pwzFileName = pFileName; saveInfo[0].pwzInitialDir = Path.GetDirectoryName(initialPath); var nameArray = (Path.GetFileName(initialPath) + "\0").ToCharArray(); Marshal.Copy(nameArray, 0, pFileName, nameArray.Length); try { int hr = uiShell.GetSaveFileNameViaDlg(saveInfo); if (hr == VSConstants.OLE_E_PROMPTSAVECANCELLED) { return(null); } ErrorHandler.ThrowOnFailure(hr); return(Marshal.PtrToStringAuto(saveInfo[0].pwzFileName)); } finally { if (pFileName != IntPtr.Zero) { Marshal.FreeCoTaskMem(pFileName); } } }
private void Command_Create_Executed(object sender, ExecutedRoutedEventArgs e) { List <UserError> createErrors = new List <UserError>(); //Use Winforms' SaveFile Dialog try { using (WinForms.SaveFileDialog saveDialog = new WinForms.SaveFileDialog()) { saveDialog.InitialDirectory = Properties.Settings.Default.Expansions; saveDialog.Filter = "Card Database (*.cdb)|*.cdb"; if (saveDialog.ShowDialog() == WinForms.DialogResult.OK) { string filePath = saveDialog.FileName; toFilePath = filePath; //Save Settings Properties.Settings.Default.Expansions = Path.GetDirectoryName(filePath); Properties.Settings.Default.Save(); //Show Database Name Label_DatabaseTo.Text = Path.GetFileName(filePath); SQLiteConnection.CreateFile(filePath); using (SQLiteConnection sqlConn = new SQLiteConnection("Data Source=" + filePath + ";")) { sqlConn.Open(); string execSql_Data = "CREATE TABLE 'datas' ('id' integer,'ot' integer, 'alias' integer," + "'setcode' integer, 'type' integer, 'atk' integer, 'def' integer, 'level' integer," + "'race' integer, 'attribute' integer, 'category' integer, PRIMARY KEY('id'))"; string execSql_Text = "CREATE TABLE 'texts'('id' integer, 'name' text, 'desc' text," + "'str1' text, 'str2' text, 'str3' text, 'str4' text, 'str5' text, 'str6' text," + "'str7' text, 'str8' text, 'str9' text, 'str10' text, 'str11' text, 'str12' text," + "'str13' text, 'str14' text, 'str15' text, 'str16' text, PRIMARY KEY('id'))"; SQLiteCommand sqlCmd_Data = new SQLiteCommand(execSql_Data, sqlConn); sqlCmd_Data.ExecuteNonQuery(); SQLiteCommand sqlCmd_Text = new SQLiteCommand(execSql_Text, sqlConn); sqlCmd_Text.ExecuteNonQuery(); //Create Expansion if (TableTo != null) { TableTo.Dispose(); } TableTo = OpenDatabase(sqlConn, filePath); //Clear or Create new 'changesTo' List InitializeChangesList(); //Dispose sqlCmd_Data.Dispose(); sqlCmd_Text.Dispose(); sqlConn.Close(); } } } } catch (Exception exception) { //Add Error createErrors.Add(new UserError(exception)); //Window ErrorList errorWindow = new ErrorList(createErrors.ToArray()); errorWindow.ShowDialog(); errorWindow.Close(); } }
/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.tb1 = new System.Windows.Forms.ToolBar(); this.tbbSeparator0 = new System.Windows.Forms.ToolBarButton(); this.tbbOpen = new System.Windows.Forms.ToolBarButton(); this.tbbSave = new System.Windows.Forms.ToolBarButton(); this.tbbSeparator1 = new System.Windows.Forms.ToolBarButton(); this.tbbLeft = new System.Windows.Forms.ToolBarButton(); this.tbbRight = new System.Windows.Forms.ToolBarButton(); this.tbbCenter = new System.Windows.Forms.ToolBarButton(); this.tbbSeparator3 = new System.Windows.Forms.ToolBarButton(); this.tbbBold = new System.Windows.Forms.ToolBarButton(); this.tbbItalic = new System.Windows.Forms.ToolBarButton(); this.tbbUnderline = new System.Windows.Forms.ToolBarButton(); this.tbbSeparator4 = new System.Windows.Forms.ToolBarButton(); this.tbbStrikeout = new System.Windows.Forms.ToolBarButton(); this.tbbSeparator5 = new System.Windows.Forms.ToolBarButton(); this.tbbSuperScript = new System.Windows.Forms.ToolBarButton(); this.tbbSubScript = new System.Windows.Forms.ToolBarButton(); this.tbbSeparator6 = new System.Windows.Forms.ToolBarButton(); this.tbbFont = new System.Windows.Forms.ToolBarButton(); this.tbbColor = new System.Windows.Forms.ToolBarButton(); this.imgList1 = new System.Windows.Forms.ImageList(this.components); this.sfd1 = new System.Windows.Forms.SaveFileDialog(); this.ofd1 = new System.Windows.Forms.OpenFileDialog(); this.fontDialog1 = new System.Windows.Forms.FontDialog(); this.colorDialog1 = new System.Windows.Forms.ColorDialog(); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.txtBoxTo = new System.Windows.Forms.TextBox(); this.txtBoxSubject = new System.Windows.Forms.TextBox(); this.richTextBox1 = new HtmlRichText.HtmlRichTextBox(); this.SuspendLayout(); // // tb1 // this.tb1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.tbbSeparator0, this.tbbOpen, this.tbbSave, this.tbbSeparator1, this.tbbLeft, this.tbbRight, this.tbbCenter, this.tbbSeparator3, this.tbbBold, this.tbbItalic, this.tbbUnderline, this.tbbSeparator4, this.tbbStrikeout, this.tbbSeparator5, this.tbbSuperScript, this.tbbSubScript, this.tbbSeparator6, this.tbbFont, this.tbbColor }); this.tb1.ButtonSize = new System.Drawing.Size(16, 16); this.tb1.Divider = false; this.tb1.DropDownArrows = true; this.tb1.ImageList = this.imgList1; this.tb1.Location = new System.Drawing.Point(0, 0); this.tb1.Name = "tb1"; this.tb1.ShowToolTips = true; this.tb1.Size = new System.Drawing.Size(675, 26); this.tb1.TabIndex = 2; this.tb1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tb1_ButtonClick); // // tbbSeparator0 // this.tbbSeparator0.Name = "tbbSeparator0"; this.tbbSeparator0.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbbOpen // this.tbbOpen.ImageIndex = 10; this.tbbOpen.Name = "tbbOpen"; this.tbbOpen.ToolTipText = "Open"; // // tbbSave // this.tbbSave.ImageIndex = 11; this.tbbSave.Name = "tbbSave"; this.tbbSave.ToolTipText = "Save"; // // tbbSeparator1 // this.tbbSeparator1.Name = "tbbSeparator1"; this.tbbSeparator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbbLeft // this.tbbLeft.ImageIndex = 0; this.tbbLeft.Name = "tbbLeft"; this.tbbLeft.ToolTipText = "Left"; // // tbbRight // this.tbbRight.ImageIndex = 1; this.tbbRight.Name = "tbbRight"; this.tbbRight.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbbRight.ToolTipText = "Right"; // // tbbCenter // this.tbbCenter.ImageIndex = 2; this.tbbCenter.Name = "tbbCenter"; this.tbbCenter.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbbCenter.ToolTipText = "Center"; // // tbbSeparator3 // this.tbbSeparator3.Name = "tbbSeparator3"; this.tbbSeparator3.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbbBold // this.tbbBold.ImageIndex = 3; this.tbbBold.Name = "tbbBold"; this.tbbBold.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbbBold.ToolTipText = "Bold"; // // tbbItalic // this.tbbItalic.ImageIndex = 4; this.tbbItalic.Name = "tbbItalic"; this.tbbItalic.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbbItalic.ToolTipText = "Italic"; // // tbbUnderline // this.tbbUnderline.ImageIndex = 5; this.tbbUnderline.Name = "tbbUnderline"; this.tbbUnderline.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbbUnderline.ToolTipText = "Underline"; // // tbbSeparator4 // this.tbbSeparator4.Name = "tbbSeparator4"; this.tbbSeparator4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbbStrikeout // this.tbbStrikeout.ImageIndex = 6; this.tbbStrikeout.Name = "tbbStrikeout"; this.tbbStrikeout.ToolTipText = "Strikeout"; // // tbbSeparator5 // this.tbbSeparator5.Name = "tbbSeparator5"; this.tbbSeparator5.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbbSuperScript // this.tbbSuperScript.ImageIndex = 12; this.tbbSuperScript.Name = "tbbSuperScript"; this.tbbSuperScript.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbbSuperScript.ToolTipText = "Super"; // // tbbSubScript // this.tbbSubScript.ImageIndex = 13; this.tbbSubScript.Name = "tbbSubScript"; this.tbbSubScript.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbbSubScript.ToolTipText = "Sub"; // // tbbSeparator6 // this.tbbSeparator6.Name = "tbbSeparator6"; this.tbbSeparator6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbbFont // this.tbbFont.ImageIndex = 8; this.tbbFont.Name = "tbbFont"; this.tbbFont.ToolTipText = "Font"; // // tbbColor // this.tbbColor.ImageIndex = 9; this.tbbColor.Name = "tbbColor"; this.tbbColor.ToolTipText = "Color"; // // imgList1 // this.imgList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgList1.ImageStream"))); this.imgList1.TransparentColor = System.Drawing.Color.Transparent; this.imgList1.Images.SetKeyName(0, ""); this.imgList1.Images.SetKeyName(1, ""); this.imgList1.Images.SetKeyName(2, ""); this.imgList1.Images.SetKeyName(3, ""); this.imgList1.Images.SetKeyName(4, ""); this.imgList1.Images.SetKeyName(5, ""); this.imgList1.Images.SetKeyName(6, ""); this.imgList1.Images.SetKeyName(7, ""); this.imgList1.Images.SetKeyName(8, ""); this.imgList1.Images.SetKeyName(9, ""); this.imgList1.Images.SetKeyName(10, ""); this.imgList1.Images.SetKeyName(11, ""); this.imgList1.Images.SetKeyName(12, ""); this.imgList1.Images.SetKeyName(13, ""); // // sfd1 // this.sfd1.DefaultExt = "htm"; this.sfd1.Filter = "Html Files|*.htm;*.html|Rich Text Files|*.rtf|Plain Text File|*.txt|All Files|*.*" + ""; this.sfd1.Title = "Save As"; // // ofd1 // this.ofd1.DefaultExt = "htm"; this.ofd1.Filter = "Html Files|*.htm;*.html|Rich Text Files|*.rtf|Plain Text File|*.txt|All Files|*.*" + ""; this.ofd1.Title = "Open File"; // // button1 // this.button1.Location = new System.Drawing.Point(13, 272); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 4; this.button1.Text = "Send"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 43); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(20, 13); this.label1.TabIndex = 5; this.label1.Text = "To"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(12, 70); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(43, 13); this.label2.TabIndex = 6; this.label2.Text = "Subject"; // // txtBoxTo // this.txtBoxTo.Location = new System.Drawing.Point(79, 40); this.txtBoxTo.Name = "txtBoxTo"; this.txtBoxTo.Size = new System.Drawing.Size(168, 20); this.txtBoxTo.TabIndex = 7; // // txtBoxSubject // this.txtBoxSubject.Location = new System.Drawing.Point(79, 70); this.txtBoxSubject.Name = "txtBoxSubject"; this.txtBoxSubject.Size = new System.Drawing.Size(168, 20); this.txtBoxSubject.TabIndex = 8; // // richTextBox1 // this.richTextBox1.Location = new System.Drawing.Point(15, 101); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(232, 160); this.richTextBox1.TabIndex = 3; this.richTextBox1.Text = "richTextBox1"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(675, 388); this.Controls.Add(this.txtBoxSubject); this.Controls.Add(this.txtBoxTo); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.button1); this.Controls.Add(this.richTextBox1); this.Controls.Add(this.tb1); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Form1"; 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() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ReportForm)); this.BottomPanel = new System.Windows.Forms.Panel(); this.CloseButton = new System.Windows.Forms.Button(); this.SaveButton = new System.Windows.Forms.Button(); this.MainPanel = new System.Windows.Forms.Panel(); this.ControlItemStatisticsCheckBox = new System.Windows.Forms.CheckBox(); this.SelectionDetailedFilterCheckBox = new System.Windows.Forms.CheckBox(); this.SelectionGroupsCheckBox = new System.Windows.Forms.CheckBox(); this.NoResultTextBox = new System.Windows.Forms.TextBox(); this.NoResultLabel = new System.Windows.Forms.Label(); this.SelectionPlatesCheckBox = new System.Windows.Forms.CheckBox(); this.MarkerAnnotationsButton = new System.Windows.Forms.Button(); this.MarkerAnnotationsCheckBox = new System.Windows.Forms.CheckBox(); this.ItemColumnsButton = new System.Windows.Forms.Button(); this.ExperimentColumnsButton = new System.Windows.Forms.Button(); this.SourceInfoCheckBox = new System.Windows.Forms.CheckBox(); this.PairwiseApprovedRadioButton = new System.Windows.Forms.RadioButton(); this.PairwiseAllRadioButton = new System.Windows.Forms.RadioButton(); this.TableExperimentColumnRadioButton = new System.Windows.Forms.RadioButton(); this.TableExperimentRowRadioButton = new System.Windows.Forms.RadioButton(); this.ResultsCheckBox = new System.Windows.Forms.CheckBox(); this.ItemStatisticsCheckBox = new System.Windows.Forms.CheckBox(); this.ExperimentStatisticsCheckBox = new System.Windows.Forms.CheckBox(); this.MySaveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.TopPanel = new System.Windows.Forms.Panel(); this.BrowseDirectoriesButton = new System.Windows.Forms.Button(); this.FileGroupTextBox = new System.Windows.Forms.TextBox(); this.FilegroupLabel = new System.Windows.Forms.Label(); this.PathLabel = new System.Windows.Forms.Label(); this.PathTextBox = new System.Windows.Forms.TextBox(); this.SplitFileCheckBox = new System.Windows.Forms.CheckBox(); this.XMLFileRadioButton = new System.Windows.Forms.RadioButton(); this.TextFileRadioButton = new System.Windows.Forms.RadioButton(); this.ReportTypeLabel = new System.Windows.Forms.Label(); this.MyFolderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); this.BottomPanel.SuspendLayout(); this.MainPanel.SuspendLayout(); this.TopPanel.SuspendLayout(); this.SuspendLayout(); // // BottomPanel // this.BottomPanel.Controls.Add(this.CloseButton); this.BottomPanel.Controls.Add(this.SaveButton); this.BottomPanel.Dock = System.Windows.Forms.DockStyle.Bottom; this.BottomPanel.Location = new System.Drawing.Point(0, 423); this.BottomPanel.Name = "BottomPanel"; this.BottomPanel.Size = new System.Drawing.Size(566, 45); this.BottomPanel.TabIndex = 0; // // CloseButton // this.CloseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.CloseButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.CloseButton.Location = new System.Drawing.Point(486, 13); this.CloseButton.Name = "CloseButton"; this.CloseButton.Size = new System.Drawing.Size(72, 24); this.CloseButton.TabIndex = 24; this.CloseButton.Text = "&Cancel"; this.CloseButton.Click += new System.EventHandler(this.CloseButton_Click); // // SaveButton // this.SaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.SaveButton.Location = new System.Drawing.Point(16, 13); this.SaveButton.Name = "SaveButton"; this.SaveButton.Size = new System.Drawing.Size(72, 24); this.SaveButton.TabIndex = 23; this.SaveButton.Text = "&Save..."; this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click); // // MainPanel // this.MainPanel.Controls.Add(this.ControlItemStatisticsCheckBox); this.MainPanel.Controls.Add(this.SelectionDetailedFilterCheckBox); this.MainPanel.Controls.Add(this.SelectionGroupsCheckBox); this.MainPanel.Controls.Add(this.NoResultTextBox); this.MainPanel.Controls.Add(this.NoResultLabel); this.MainPanel.Controls.Add(this.SelectionPlatesCheckBox); this.MainPanel.Controls.Add(this.MarkerAnnotationsButton); this.MainPanel.Controls.Add(this.MarkerAnnotationsCheckBox); this.MainPanel.Controls.Add(this.ItemColumnsButton); this.MainPanel.Controls.Add(this.ExperimentColumnsButton); this.MainPanel.Controls.Add(this.SourceInfoCheckBox); this.MainPanel.Controls.Add(this.PairwiseApprovedRadioButton); this.MainPanel.Controls.Add(this.PairwiseAllRadioButton); this.MainPanel.Controls.Add(this.TableExperimentColumnRadioButton); this.MainPanel.Controls.Add(this.TableExperimentRowRadioButton); this.MainPanel.Controls.Add(this.ResultsCheckBox); this.MainPanel.Controls.Add(this.ItemStatisticsCheckBox); this.MainPanel.Controls.Add(this.ExperimentStatisticsCheckBox); this.MainPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.MainPanel.Location = new System.Drawing.Point(0, 141); this.MainPanel.Name = "MainPanel"; this.MainPanel.Size = new System.Drawing.Size(566, 282); this.MainPanel.TabIndex = 1; // // ControlItemStatisticsCheckBox // this.ControlItemStatisticsCheckBox.AutoSize = true; this.ControlItemStatisticsCheckBox.Checked = true; this.ControlItemStatisticsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.ControlItemStatisticsCheckBox.Location = new System.Drawing.Point(32, 153); this.ControlItemStatisticsCheckBox.Name = "ControlItemStatisticsCheckBox"; this.ControlItemStatisticsCheckBox.Size = new System.Drawing.Size(161, 17); this.ControlItemStatisticsCheckBox.TabIndex = 10; this.ControlItemStatisticsCheckBox.Text = "Include control item statistics"; this.ControlItemStatisticsCheckBox.UseVisualStyleBackColor = true; this.ControlItemStatisticsCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // SelectionDetailedFilterCheckBox // this.SelectionDetailedFilterCheckBox.AutoSize = true; this.SelectionDetailedFilterCheckBox.Checked = true; this.SelectionDetailedFilterCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.SelectionDetailedFilterCheckBox.Location = new System.Drawing.Point(32, 120); this.SelectionDetailedFilterCheckBox.Name = "SelectionDetailedFilterCheckBox"; this.SelectionDetailedFilterCheckBox.Size = new System.Drawing.Size(123, 17); this.SelectionDetailedFilterCheckBox.TabIndex = 9; this.SelectionDetailedFilterCheckBox.Text = "Include detailed filter"; this.SelectionDetailedFilterCheckBox.UseVisualStyleBackColor = true; this.SelectionDetailedFilterCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // SelectionGroupsCheckBox // this.SelectionGroupsCheckBox.AutoSize = true; this.SelectionGroupsCheckBox.Checked = true; this.SelectionGroupsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.SelectionGroupsCheckBox.Location = new System.Drawing.Point(32, 86); this.SelectionGroupsCheckBox.Name = "SelectionGroupsCheckBox"; this.SelectionGroupsCheckBox.Size = new System.Drawing.Size(166, 17); this.SelectionGroupsCheckBox.TabIndex = 8; this.SelectionGroupsCheckBox.Text = "Include selected working sets"; this.SelectionGroupsCheckBox.UseVisualStyleBackColor = true; this.SelectionGroupsCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // NoResultTextBox // this.NoResultTextBox.Location = new System.Drawing.Point(389, 237); this.NoResultTextBox.MaxLength = 3; this.NoResultTextBox.Name = "NoResultTextBox"; this.NoResultTextBox.Size = new System.Drawing.Size(40, 20); this.NoResultTextBox.TabIndex = 22; this.NoResultTextBox.Text = "*/*"; // // NoResultLabel // this.NoResultLabel.AutoSize = true; this.NoResultLabel.Location = new System.Drawing.Point(250, 240); this.NoResultLabel.Name = "NoResultLabel"; this.NoResultLabel.Size = new System.Drawing.Size(138, 13); this.NoResultLabel.TabIndex = 13; this.NoResultLabel.Text = "Indicate missing values with"; // // SelectionPlatesCheckBox // this.SelectionPlatesCheckBox.AutoSize = true; this.SelectionPlatesCheckBox.Checked = true; this.SelectionPlatesCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.SelectionPlatesCheckBox.Location = new System.Drawing.Point(32, 52); this.SelectionPlatesCheckBox.Name = "SelectionPlatesCheckBox"; this.SelectionPlatesCheckBox.Size = new System.Drawing.Size(135, 17); this.SelectionPlatesCheckBox.TabIndex = 7; this.SelectionPlatesCheckBox.Text = "Include selected plates"; this.SelectionPlatesCheckBox.UseVisualStyleBackColor = true; this.SelectionPlatesCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // MarkerAnnotationsButton // this.MarkerAnnotationsButton.Location = new System.Drawing.Point(396, 47); this.MarkerAnnotationsButton.Name = "MarkerAnnotationsButton"; this.MarkerAnnotationsButton.Size = new System.Drawing.Size(72, 24); this.MarkerAnnotationsButton.TabIndex = 14; this.MarkerAnnotationsButton.Text = "Columns..."; this.MarkerAnnotationsButton.Click += new System.EventHandler(this.MarkerAnnotationsButton_Click); // // MarkerAnnotationsCheckBox // this.MarkerAnnotationsCheckBox.Checked = true; this.MarkerAnnotationsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.MarkerAnnotationsCheckBox.Location = new System.Drawing.Point(214, 52); this.MarkerAnnotationsCheckBox.Name = "MarkerAnnotationsCheckBox"; this.MarkerAnnotationsCheckBox.Size = new System.Drawing.Size(176, 16); this.MarkerAnnotationsCheckBox.TabIndex = 13; this.MarkerAnnotationsCheckBox.Text = "Include marker annotations"; this.MarkerAnnotationsCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // ItemColumnsButton // this.ItemColumnsButton.Location = new System.Drawing.Point(396, 80); this.ItemColumnsButton.Name = "ItemColumnsButton"; this.ItemColumnsButton.Size = new System.Drawing.Size(72, 24); this.ItemColumnsButton.TabIndex = 16; this.ItemColumnsButton.Text = "Columns..."; this.ItemColumnsButton.Click += new System.EventHandler(this.ItemColumnsButton_Click); // // ExperimentColumnsButton // this.ExperimentColumnsButton.Location = new System.Drawing.Point(396, 14); this.ExperimentColumnsButton.Name = "ExperimentColumnsButton"; this.ExperimentColumnsButton.Size = new System.Drawing.Size(72, 24); this.ExperimentColumnsButton.TabIndex = 12; this.ExperimentColumnsButton.Text = "Columns..."; this.ExperimentColumnsButton.Click += new System.EventHandler(this.ExperimentColumnsButton_Click); // // SourceInfoCheckBox // this.SourceInfoCheckBox.Checked = true; this.SourceInfoCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.SourceInfoCheckBox.Location = new System.Drawing.Point(32, 19); this.SourceInfoCheckBox.Name = "SourceInfoCheckBox"; this.SourceInfoCheckBox.Size = new System.Drawing.Size(176, 16); this.SourceInfoCheckBox.TabIndex = 6; this.SourceInfoCheckBox.Text = "Include source information"; this.SourceInfoCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // PairwiseApprovedRadioButton // this.PairwiseApprovedRadioButton.Location = new System.Drawing.Point(253, 212); this.PairwiseApprovedRadioButton.Name = "PairwiseApprovedRadioButton"; this.PairwiseApprovedRadioButton.Size = new System.Drawing.Size(192, 16); this.PairwiseApprovedRadioButton.TabIndex = 21; this.PairwiseApprovedRadioButton.Text = "Pairwise, approved combinations"; this.PairwiseApprovedRadioButton.CheckedChanged += new System.EventHandler(this.StatusChanged); // // PairwiseAllRadioButton // this.PairwiseAllRadioButton.Location = new System.Drawing.Point(253, 188); this.PairwiseAllRadioButton.Name = "PairwiseAllRadioButton"; this.PairwiseAllRadioButton.Size = new System.Drawing.Size(192, 16); this.PairwiseAllRadioButton.TabIndex = 20; this.PairwiseAllRadioButton.Text = "Pairwise, all combinations"; this.PairwiseAllRadioButton.CheckedChanged += new System.EventHandler(this.StatusChanged); // // TableExperimentColumnRadioButton // this.TableExperimentColumnRadioButton.Location = new System.Drawing.Point(253, 164); this.TableExperimentColumnRadioButton.Name = "TableExperimentColumnRadioButton"; this.TableExperimentColumnRadioButton.Size = new System.Drawing.Size(192, 16); this.TableExperimentColumnRadioButton.TabIndex = 19; this.TableExperimentColumnRadioButton.Text = "Table, experiments in columns"; this.TableExperimentColumnRadioButton.CheckedChanged += new System.EventHandler(this.StatusChanged); // // TableExperimentRowRadioButton // this.TableExperimentRowRadioButton.Checked = true; this.TableExperimentRowRadioButton.Location = new System.Drawing.Point(253, 140); this.TableExperimentRowRadioButton.Name = "TableExperimentRowRadioButton"; this.TableExperimentRowRadioButton.Size = new System.Drawing.Size(192, 16); this.TableExperimentRowRadioButton.TabIndex = 18; this.TableExperimentRowRadioButton.TabStop = true; this.TableExperimentRowRadioButton.Text = "Table, experiments in rows"; this.TableExperimentRowRadioButton.CheckedChanged += new System.EventHandler(this.StatusChanged); // // ResultsCheckBox // this.ResultsCheckBox.Checked = true; this.ResultsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.ResultsCheckBox.Location = new System.Drawing.Point(214, 118); this.ResultsCheckBox.Name = "ResultsCheckBox"; this.ResultsCheckBox.Size = new System.Drawing.Size(176, 16); this.ResultsCheckBox.TabIndex = 17; this.ResultsCheckBox.Text = "Include results"; this.ResultsCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // ItemStatisticsCheckBox // this.ItemStatisticsCheckBox.Checked = true; this.ItemStatisticsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.ItemStatisticsCheckBox.Location = new System.Drawing.Point(214, 85); this.ItemStatisticsCheckBox.Name = "ItemStatisticsCheckBox"; this.ItemStatisticsCheckBox.Size = new System.Drawing.Size(176, 16); this.ItemStatisticsCheckBox.TabIndex = 15; this.ItemStatisticsCheckBox.Text = "Include item statistics"; this.ItemStatisticsCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // ExperimentStatisticsCheckBox // this.ExperimentStatisticsCheckBox.Checked = true; this.ExperimentStatisticsCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.ExperimentStatisticsCheckBox.Location = new System.Drawing.Point(214, 19); this.ExperimentStatisticsCheckBox.Name = "ExperimentStatisticsCheckBox"; this.ExperimentStatisticsCheckBox.Size = new System.Drawing.Size(176, 16); this.ExperimentStatisticsCheckBox.TabIndex = 11; this.ExperimentStatisticsCheckBox.Text = "Include experiment statistics"; this.ExperimentStatisticsCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // MySaveFileDialog // this.MySaveFileDialog.FileName = "FileName"; // // TopPanel // this.TopPanel.Controls.Add(this.BrowseDirectoriesButton); this.TopPanel.Controls.Add(this.FileGroupTextBox); this.TopPanel.Controls.Add(this.FilegroupLabel); this.TopPanel.Controls.Add(this.PathLabel); this.TopPanel.Controls.Add(this.PathTextBox); this.TopPanel.Controls.Add(this.SplitFileCheckBox); this.TopPanel.Controls.Add(this.XMLFileRadioButton); this.TopPanel.Controls.Add(this.TextFileRadioButton); this.TopPanel.Controls.Add(this.ReportTypeLabel); this.TopPanel.Dock = System.Windows.Forms.DockStyle.Top; this.TopPanel.Location = new System.Drawing.Point(0, 0); this.TopPanel.Name = "TopPanel"; this.TopPanel.Size = new System.Drawing.Size(566, 141); this.TopPanel.TabIndex = 2; // // BrowseDirectoriesButton // this.BrowseDirectoriesButton.Location = new System.Drawing.Point(389, 75); this.BrowseDirectoriesButton.Name = "BrowseDirectoriesButton"; this.BrowseDirectoriesButton.Size = new System.Drawing.Size(25, 25); this.BrowseDirectoriesButton.TabIndex = 4; this.BrowseDirectoriesButton.Text = "..."; this.BrowseDirectoriesButton.UseVisualStyleBackColor = true; this.BrowseDirectoriesButton.Click += new System.EventHandler(this.BrowseDirectoriesButton_Click); // // FileGroupTextBox // this.FileGroupTextBox.Location = new System.Drawing.Point(127, 100); this.FileGroupTextBox.Name = "FileGroupTextBox"; this.FileGroupTextBox.Size = new System.Drawing.Size(256, 20); this.FileGroupTextBox.TabIndex = 5; this.FileGroupTextBox.Text = "Report1"; // // FilegroupLabel // this.FilegroupLabel.AutoSize = true; this.FilegroupLabel.Location = new System.Drawing.Point(29, 103); this.FilegroupLabel.Name = "FilegroupLabel"; this.FilegroupLabel.Size = new System.Drawing.Size(82, 13); this.FilegroupLabel.TabIndex = 6; this.FilegroupLabel.Text = "Filegroup name:"; // // PathLabel // this.PathLabel.AutoSize = true; this.PathLabel.Location = new System.Drawing.Point(29, 81); this.PathLabel.Name = "PathLabel"; this.PathLabel.Size = new System.Drawing.Size(87, 13); this.PathLabel.TabIndex = 5; this.PathLabel.Text = "Destination path:"; // // PathTextBox // this.PathTextBox.Location = new System.Drawing.Point(127, 78); this.PathTextBox.Name = "PathTextBox"; this.PathTextBox.Size = new System.Drawing.Size(256, 20); this.PathTextBox.TabIndex = 3; // // SplitFileCheckBox // this.SplitFileCheckBox.AutoSize = true; this.SplitFileCheckBox.Location = new System.Drawing.Point(11, 55); this.SplitFileCheckBox.Name = "SplitFileCheckBox"; this.SplitFileCheckBox.Size = new System.Drawing.Size(159, 17); this.SplitFileCheckBox.TabIndex = 2; this.SplitFileCheckBox.Text = "Each section in separate file"; this.SplitFileCheckBox.UseVisualStyleBackColor = true; this.SplitFileCheckBox.CheckedChanged += new System.EventHandler(this.StatusChanged); // // XMLFileRadioButton // this.XMLFileRadioButton.Location = new System.Drawing.Point(224, 24); this.XMLFileRadioButton.Name = "XMLFileRadioButton"; this.XMLFileRadioButton.Size = new System.Drawing.Size(72, 16); this.XMLFileRadioButton.TabIndex = 1; this.XMLFileRadioButton.Text = "XML file"; this.XMLFileRadioButton.CheckedChanged += new System.EventHandler(this.StatusChanged); // // TextFileRadioButton // this.TextFileRadioButton.Checked = true; this.TextFileRadioButton.Location = new System.Drawing.Point(128, 24); this.TextFileRadioButton.Name = "TextFileRadioButton"; this.TextFileRadioButton.Size = new System.Drawing.Size(80, 16); this.TextFileRadioButton.TabIndex = 0; this.TextFileRadioButton.TabStop = true; this.TextFileRadioButton.Text = "Text file"; this.TextFileRadioButton.CheckedChanged += new System.EventHandler(this.StatusChanged); // // ReportTypeLabel // this.ReportTypeLabel.Location = new System.Drawing.Point(8, 24); this.ReportTypeLabel.Name = "ReportTypeLabel"; this.ReportTypeLabel.Size = new System.Drawing.Size(112, 16); this.ReportTypeLabel.TabIndex = 0; this.ReportTypeLabel.Text = "Select report type:"; // // ReportForm // this.AcceptButton = this.SaveButton; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.CloseButton; this.ClientSize = new System.Drawing.Size(566, 468); this.Controls.Add(this.MainPanel); this.Controls.Add(this.TopPanel); this.Controls.Add(this.BottomPanel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ReportForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Report"; this.BottomPanel.ResumeLayout(false); this.MainPanel.ResumeLayout(false); this.MainPanel.PerformLayout(); this.TopPanel.ResumeLayout(false); this.TopPanel.PerformLayout(); this.ResumeLayout(false); }
/// <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(); this.panelGraph = new System.Windows.Forms.Panel(); this.mainMenuPlot = new System.Windows.Forms.MainMenu(this.components); this.menuItemFile = new System.Windows.Forms.MenuItem(); this.menuItemSaveGraph = new System.Windows.Forms.MenuItem(); this.menuItemSaveXML = new System.Windows.Forms.MenuItem(); this.menuItemFormat = new System.Windows.Forms.MenuItem(); this.menuItemFont = new System.Windows.Forms.MenuItem(); this.saveFileDialogPlot = new System.Windows.Forms.SaveFileDialog(); this.saveFileDialogGraph = new System.Windows.Forms.SaveFileDialog(); this.SuspendLayout(); // // panelGraph // this.panelGraph.BackColor = System.Drawing.Color.White; this.panelGraph.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelGraph.Location = new System.Drawing.Point(24, 40); this.panelGraph.Name = "panelGraph"; this.panelGraph.Size = new System.Drawing.Size(900, 500); this.panelGraph.TabIndex = 20; // // mainMenuPlot // this.mainMenuPlot.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemFile, this.menuItemFormat }); // // menuItemFile // this.menuItemFile.Index = 0; this.menuItemFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemSaveGraph, this.menuItemSaveXML }); this.menuItemFile.Text = "File"; // // menuItemSaveGraph // this.menuItemSaveGraph.Index = 0; this.menuItemSaveGraph.Text = "Save graph as"; this.menuItemSaveGraph.Click += new System.EventHandler(this.menuItemSaveGraph_Click); // // menuItemSaveXML // this.menuItemSaveXML.Index = 1; this.menuItemSaveXML.Text = "Save as XML"; this.menuItemSaveXML.Click += new System.EventHandler(this.menuItemSaveXML_Click); // // menuItemFormat // this.menuItemFormat.Index = 1; this.menuItemFormat.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemFont }); this.menuItemFormat.Text = "Format"; // // menuItemFont // this.menuItemFont.Index = 0; this.menuItemFont.Text = "Font"; this.menuItemFont.Click += new System.EventHandler(this.menuItemFont_Click); // // saveFileDialogPlot // this.saveFileDialogPlot.Filter = "XML Function files |*.xml"; // // saveFileDialogGraph // this.saveFileDialogGraph.Filter = "Graph files |*.gra"; // // FormGraphSave // this.ClientSize = new System.Drawing.Size(976, 589); this.Controls.Add(this.panelGraph); this.Menu = this.mainMenuPlot; this.Name = "FormGraphSave"; this.Text = "Save graph"; this.ResumeLayout(false); }
public void DailyExportToExcel() { System.Windows.Forms.SaveFileDialog sfd = new System.Windows.Forms.SaveFileDialog(); sfd.Filter = "Excel 2007 (*.xlsx)|*.xlsx"; sfd.FilterIndex = 1; sfd.RestoreDirectory = true; if (sfd.ShowDialog() == DialogResult.OK) { string localFilePath = sfd.FileName.ToString(); //获得文件路径 File.Copy(@"\\qqqqqq-ms2\Templates\Daily.xlsx", localFilePath, true); IWorkbook wk = WorkbookFactory.Create(localFilePath); //导出明细 ISheet tb = wk.GetSheet(wk.GetSheetName(0)); int t = 1; foreach (BPM_Daily temmodul in allDailyList) { //制令单号 工号 姓名 日期 班别 b25 工序 标准工时 生产工时 投入数量 良品数 不良数 IRow row = tb.CreateRow(t); row.CreateCell(0).SetCellValue(temmodul.OrderID); //工单单号 row.CreateCell(1).SetCellValue(temmodul.JobNum); //工号 row.CreateCell(2).SetCellValue(temmodul.Name); //姓名 row.CreateCell(3).SetCellValue(temmodul.Date.ToString()); //日期 row.CreateCell(4).SetCellValue(temmodul.ClassType); //班别 row.CreateCell(5).SetCellValue(temmodul.ProcessID); //工序ID row.CreateCell(6).SetCellValue(temmodul.ProcessName); //工序名称 row.CreateCell(7).SetCellValue(Convert.ToDouble(temmodul.StandardHours.ToString())); //标准工时 row.CreateCell(8).SetCellValue(Convert.ToDouble(temmodul.WorkHours.ToString())); //生产工时 row.CreateCell(9).SetCellValue(Convert.ToDouble(temmodul.Qty.ToString())); //数量 row.CreateCell(10).SetCellValue(Convert.ToDouble(temmodul.QtyOK.ToString())); //良品数量 row.CreateCell(11).SetCellValue(Convert.ToDouble(temmodul.QtyNG.ToString())); //不良品数量 row.CreateCell(12).SetCellValue(temmodul.Workstation); //站别 t++; } //导出未作业人员列表 ISheet tb2 = wk.GetSheet(wk.GetSheetName(1)); int t2 = 1; foreach (HR_User temmodul in NotWorkUserList) { //制令单号 工号 姓名 日期 班别 b25 工序 标准工时 生产工时 投入数量 良品数 不良数 IRow row = tb2.CreateRow(t2); row.CreateCell(0).SetCellValue(temmodul.Job_Num); //工号 row.CreateCell(1).SetCellValue(temmodul.Name); //姓名 row.CreateCell(2).SetCellValue(temmodul.Workstation); //站别 t2++; } ////导出汇总信息 //var totalDailyUserList = new List<BPM_Daily>(); //foreach (var daily in allDailyList) //{ // //用户汇总 总览表 // if (totalDailyUserList.FirstOrDefault(x => x.JobNum == daily.JobNum) == null) //如果未找到了该作业元的汇总资料 // { // totalDailyUserList.Add(new BPM_Daily() // { // JobNum = daily.JobNum, // Name = daily.Name, // WorkHours = allDailyList.Where(x => x.JobNum == daily.JobNum).Sum(x => x.WorkHours), // NotWorkHours = allDailyList.Where(x => x.JobNum == daily.JobNum).Sum(x => x.NotWorkHours), // QtyNG = allDailyList.Where(x => x.JobNum == daily.JobNum).Sum(x => x.QtyNG), // QtyOK = allDailyList.Where(x => x.JobNum == daily.JobNum).Sum(x => x.QtyOK), // Workstation = daily.Workstation // }); // } //} //导出汇总信息 var totalDailyUserList = new List <BPM_Daily>(); foreach (var te in allDailyList) { //用户汇总 总览表 if (totalDailyUserList.FirstOrDefault(m => m.JobNum == te.JobNum) == null) { var temModel = new Server.Model.BPM_Daily(); temModel.JobNum = te.JobNum; temModel.Name = te.Name; temModel.Workstation = te.Workstation; temModel.WorkHours = allDailyList.Where(x => x.JobNum == te.JobNum).Sum(x => x.WorkHours); temModel.NotWorkHours = allDailyList.Where(x => x.JobNum == te.JobNum).Sum(x => x.NotWorkHours); temModel.QtyNG = allDailyList.Where(x => x.JobNum == te.JobNum).Sum(x => x.QtyNG); temModel.QtyOK = allDailyList.Where(x => x.JobNum == te.JobNum).Sum(x => x.QtyOK); temModel.TotalWorkHoursStandard = allDailyList.Where(m => m.JobNum == te.JobNum).Sum(m => m.TotalWorkHoursStandard); temModel.TotalWorkHoursNotRelax = allDailyList.Where(m => m.JobNum == te.JobNum).Sum(m => m.TotalWorkHoursNotRelax); temModel.WorkHours = allDailyList.Where(m => m.JobNum == te.JobNum).Sum(m => m.WorkHours); temModel.Efficiency = Convert.ToDouble(temModel.TotalWorkHoursStandard / temModel.WorkHours); // temModel.TotalWorkHoursNotRelax = Convert.ToDecimal(temModel.TotalWorkHoursNotRelax / temModel.WorkHours); totalDailyUserList.Add(temModel); } } ISheet tb3 = wk.GetSheet(wk.GetSheetName(2)); int t3 = 1; foreach (BPM_Daily temmodul in totalDailyUserList) { //制令单号 工号 姓名 日期 班别 b25 工序 标准工时 生产工时 投入数量 良品数 不良数 IRow row = tb3.CreateRow(t3); row.CreateCell(1).SetCellValue(temmodul.JobNum); //工号 row.CreateCell(2).SetCellValue(temmodul.Name); //姓名 row.CreateCell(8).SetCellValue(Convert.ToDouble(temmodul.WorkHours.ToString())); //生产工时 row.CreateCell(10).SetCellValue(Convert.ToDouble(temmodul.QtyOK.ToString())); //良品数量 row.CreateCell(11).SetCellValue(Convert.ToDouble(temmodul.QtyNG.ToString())); //不良品数量 row.CreateCell(12).SetCellValue(temmodul.Workstation); //站别 row.CreateCell(13).SetCellValue(Convert.ToDouble(temmodul.TotalWorkHoursNotRelax)); //得到工时 row.CreateCell(14).SetCellValue(Convert.ToDouble(temmodul.TotalWorkHoursStandard)); //宽放后得到工时 row.CreateCell(15).SetCellValue(Convert.ToDouble(temmodul.TotalWorkHoursNotRelax / temmodul.WorkHours)); //宽放后得到工时 row.CreateCell(16).SetCellValue(Convert.ToDouble(temmodul.TotalWorkHoursStandard / temmodul.WorkHours)); //宽放后得到工时 t3++; } FileStream fs2 = File.Create(localFilePath); wk.Write(fs2); //向打开的这个xls文件中写入mySheet表并保存。 ZhuifengLib.MessageShow.Message.MessageInfo("提示:创建成功!"); } }
/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem11 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem41 = new System.Windows.Forms.MenuItem(); this.menuItem40 = new System.Windows.Forms.MenuItem(); this.menuItem42 = new System.Windows.Forms.MenuItem(); this.menuItemUploadScript = new System.Windows.Forms.MenuItem(); this.menuItem15 = new System.Windows.Forms.MenuItem(); this.menuItem13 = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); this.menuItem35 = new System.Windows.Forms.MenuItem(); this.menuItem34 = new System.Windows.Forms.MenuItem(); this.menuItem36 = new System.Windows.Forms.MenuItem(); this.menuItem31 = new System.Windows.Forms.MenuItem(); this.menuItem32 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.menuItem24 = new System.Windows.Forms.MenuItem(); this.menuItem23 = new System.Windows.Forms.MenuItem(); this.menuItem25 = new System.Windows.Forms.MenuItem(); this.menuItem22 = new System.Windows.Forms.MenuItem(); this.menuItem21 = new System.Windows.Forms.MenuItem(); this.menuItem20 = new System.Windows.Forms.MenuItem(); this.menuItem26 = new System.Windows.Forms.MenuItem(); this.menuItem28 = new System.Windows.Forms.MenuItem(); this.menuItem27 = new System.Windows.Forms.MenuItem(); this.menuItem37 = new System.Windows.Forms.MenuItem(); this.menuItem38 = new System.Windows.Forms.MenuItem(); this.menuItem39 = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); this.menuItem12 = new System.Windows.Forms.MenuItem(); this.menuItem14 = new System.Windows.Forms.MenuItem(); this.menuItem33 = new System.Windows.Forms.MenuItem(); this.menuItem29 = new System.Windows.Forms.MenuItem(); this.menuItem30 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem16 = new System.Windows.Forms.MenuItem(); this.menuItem17 = new System.Windows.Forms.MenuItem(); this.menuItem18 = new System.Windows.Forms.MenuItem(); this.menuItem19 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.panel1 = new System.Windows.Forms.Panel(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem10 = new System.Windows.Forms.MenuItem(); this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog(); this.printDialog1 = new System.Windows.Forms.PrintDialog(); this.numberedTextBoxUC1 = new NumberedTextBox.NumberedTextBoxUC(); this.panel1.SuspendLayout(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem8, this.menuItem12, this.menuItem2 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem11, this.menuItem4, this.menuItem41, this.menuItem40, this.menuItem42, this.menuItemUploadScript, this.menuItem15, this.menuItem13, this.menuItem5, this.menuItem7, this.menuItem35, this.menuItem34, this.menuItem36, this.menuItem31, this.menuItem32, this.menuItem6 }); this.menuItem1.Text = "File"; // // menuItem11 // this.menuItem11.Index = 0; this.menuItem11.Text = "New"; this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click); // // menuItem4 // this.menuItem4.Index = 1; this.menuItem4.Text = "Open..."; this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click); // // menuItem41 // this.menuItem41.Index = 2; this.menuItem41.Text = "-"; // // menuItem40 // this.menuItem40.Index = 3; this.menuItem40.Text = "Import Example..."; this.menuItem40.Click += new System.EventHandler(this.menuItem40_Click); // // menuItem42 // this.menuItem42.Index = 4; this.menuItem42.Text = "-"; // // menuItemUploadScript // this.menuItemUploadScript.Enabled = false; this.menuItemUploadScript.Index = 5; this.menuItemUploadScript.Text = "Upload Your LSL script..."; this.menuItemUploadScript.Click += new System.EventHandler(this.menuItemUploadScript_Click); // // menuItem15 // this.menuItem15.Index = 6; this.menuItem15.Text = "-"; // // menuItem13 // this.menuItem13.Index = 7; this.menuItem13.Shortcut = System.Windows.Forms.Shortcut.CtrlS; this.menuItem13.Text = "Save"; this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click); // // menuItem5 // this.menuItem5.Index = 8; this.menuItem5.Text = "Save..."; this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click); // // menuItem7 // this.menuItem7.Index = 9; this.menuItem7.Text = "-"; // // menuItem35 // this.menuItem35.Index = 10; this.menuItem35.Text = "Page Setup..."; this.menuItem35.Click += new System.EventHandler(this.menuItem35_Click); // // menuItem34 // this.menuItem34.Index = 11; this.menuItem34.Shortcut = System.Windows.Forms.Shortcut.CtrlP; this.menuItem34.Text = "Print"; this.menuItem34.Click += new System.EventHandler(this.menuItem34_Click); // // menuItem36 // this.menuItem36.Index = 12; this.menuItem36.Text = "-"; // // menuItem31 // this.menuItem31.Index = 13; this.menuItem31.Text = "Copy to clipboard"; this.menuItem31.Click += new System.EventHandler(this.menuItem31_Click); // // menuItem32 // this.menuItem32.Index = 14; this.menuItem32.Text = "-"; // // menuItem6 // this.menuItem6.Index = 15; this.menuItem6.Text = "Exit"; this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click); // // menuItem8 // this.menuItem8.Index = 1; this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem24, this.menuItem23, this.menuItem25, this.menuItem22, this.menuItem21, this.menuItem20, this.menuItem26, this.menuItem28, this.menuItem27, this.menuItem37, this.menuItem9 }); this.menuItem8.Text = "Edit"; // // menuItem24 // this.menuItem24.Index = 0; this.menuItem24.Shortcut = System.Windows.Forms.Shortcut.CtrlZ; this.menuItem24.Text = "Undo"; this.menuItem24.Click += new System.EventHandler(this.menuItem24_Click); // // menuItem23 // this.menuItem23.Enabled = false; this.menuItem23.Index = 1; this.menuItem23.Shortcut = System.Windows.Forms.Shortcut.CtrlY; this.menuItem23.Text = "Redo"; this.menuItem23.Click += new System.EventHandler(this.menuItem23_Click); // // menuItem25 // this.menuItem25.Index = 2; this.menuItem25.Text = "-"; // // menuItem22 // this.menuItem22.Index = 3; this.menuItem22.Shortcut = System.Windows.Forms.Shortcut.CtrlX; this.menuItem22.Text = "Cut"; this.menuItem22.Click += new System.EventHandler(this.menuItem22_Click); // // menuItem21 // this.menuItem21.Index = 4; this.menuItem21.Shortcut = System.Windows.Forms.Shortcut.CtrlC; this.menuItem21.Text = "Copy"; this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click); // // menuItem20 // this.menuItem20.Index = 5; this.menuItem20.Shortcut = System.Windows.Forms.Shortcut.CtrlV; this.menuItem20.Text = "Paste"; this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click); // // menuItem26 // this.menuItem26.Index = 6; this.menuItem26.Shortcut = System.Windows.Forms.Shortcut.Del; this.menuItem26.Text = "Delete"; this.menuItem26.Click += new System.EventHandler(this.menuItem26_Click); // // menuItem28 // this.menuItem28.Index = 7; this.menuItem28.Shortcut = System.Windows.Forms.Shortcut.CtrlA; this.menuItem28.Text = "Select All"; this.menuItem28.Click += new System.EventHandler(this.menuItem28_Click); // // menuItem27 // this.menuItem27.Index = 8; this.menuItem27.Text = "-"; // // menuItem37 // this.menuItem37.Index = 9; this.menuItem37.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem38, this.menuItem39 }); this.menuItem37.Text = "Advanced"; // // menuItem38 // this.menuItem38.Index = 0; this.menuItem38.Text = "Format Document"; this.menuItem38.Click += new System.EventHandler(this.menuItem38_Click); // // menuItem39 // this.menuItem39.Enabled = false; this.menuItem39.Index = 1; this.menuItem39.Text = "Format Selection"; this.menuItem39.Click += new System.EventHandler(this.menuItem39_Click); // // menuItem9 // this.menuItem9.Enabled = false; this.menuItem9.Index = 10; this.menuItem9.Text = "Word wrap"; this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click); // // menuItem12 // this.menuItem12.Index = 2; this.menuItem12.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem14, this.menuItem33, this.menuItem29, this.menuItem30 }); this.menuItem12.Text = "Compiler"; // // menuItem14 // this.menuItem14.Index = 0; this.menuItem14.Shortcut = System.Windows.Forms.Shortcut.F5; this.menuItem14.Text = "Start"; this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click); // // menuItem33 // this.menuItem33.Index = 1; this.menuItem33.Text = "Compiler Window"; this.menuItem33.Click += new System.EventHandler(this.menuItem33_Click); // // menuItem29 // this.menuItem29.Index = 2; this.menuItem29.Text = "-"; // // menuItem30 // this.menuItem30.Index = 3; this.menuItem30.Text = "Properties..."; this.menuItem30.Click += new System.EventHandler(this.menuItem30_Click); // // menuItem2 // this.menuItem2.Index = 3; this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem16, this.menuItem17, this.menuItem18, this.menuItem19, this.menuItem3 }); this.menuItem2.Text = "Help"; // // menuItem16 // this.menuItem16.Index = 0; this.menuItem16.Shortcut = System.Windows.Forms.Shortcut.F1; this.menuItem16.Text = "Index..."; this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click); // // menuItem17 // this.menuItem17.Index = 1; this.menuItem17.Text = "-"; // // menuItem18 // this.menuItem18.Index = 2; this.menuItem18.Text = "Check for Updates"; this.menuItem18.Click += new System.EventHandler(this.menuItem18_Click); // // menuItem19 // this.menuItem19.Index = 3; this.menuItem19.Text = "-"; // // menuItem3 // this.menuItem3.Index = 4; this.menuItem3.Text = "About..."; this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); // // panel1 // this.panel1.Controls.Add(this.tabControl1); this.panel1.Controls.Add(this.statusStrip1); 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(592, 353); this.panel1.TabIndex = 2; // // tabControl1 // this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControl1.Location = new System.Drawing.Point(0, 0); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(592, 331); this.tabControl1.TabIndex = 1; this.tabControl1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tabControl1_MouseDown); // // tabPage1 // this.tabPage1.BackColor = System.Drawing.Color.Transparent; this.tabPage1.Controls.Add(this.numberedTextBoxUC1); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(584, 305); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "New"; this.tabPage1.UseVisualStyleBackColor = true; // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel1 }); this.statusStrip1.Location = new System.Drawing.Point(0, 331); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(592, 22); this.statusStrip1.TabIndex = 2; this.statusStrip1.Text = "statusStrip1"; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(19, 17); this.toolStripStatusLabel1.Text = "..."; // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem10 }); // // menuItem10 // this.menuItem10.Index = 0; this.menuItem10.Text = "Close"; this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click); // // numberedTextBoxUC1 // this.numberedTextBoxUC1.BackColor = System.Drawing.SystemColors.Control; this.numberedTextBoxUC1.Dock = System.Windows.Forms.DockStyle.Fill; this.numberedTextBoxUC1.Location = new System.Drawing.Point(3, 3); this.numberedTextBoxUC1.Name = "numberedTextBoxUC1"; this.numberedTextBoxUC1.Size = new System.Drawing.Size(578, 299); this.numberedTextBoxUC1.TabIndex = 1; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(592, 353); this.Controls.Add(this.panel1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.IsMdiContainer = true; this.Menu = this.mainMenu1; this.Name = "Form1"; this.Text = "LSL-Editor"; this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing); this.Load += new System.EventHandler(this.Form1_Load); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); }
/// <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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton5 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton2 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton3 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton4 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton5_Down = new System.Windows.Forms.ToolBarButton(); this.toolBarButton6_Up = new System.Windows.Forms.ToolBarButton(); this.toolBarButton7_Left = new System.Windows.Forms.ToolBarButton(); this.toolBarButton8_Right = new System.Windows.Forms.ToolBarButton(); this.tree_View1 = new Salford.VisualClearWin.Tree_View(); this.imageList2 = new System.Windows.Forms.ImageList(this.components); this.text_Box1 = new Salford.VisualClearWin.Text_Box(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2_New = new System.Windows.Forms.MenuItem(); this.menuItem3_Open = new System.Windows.Forms.MenuItem(); this.menuItem4_Save = new System.Windows.Forms.MenuItem(); this.menuItem5_SaveAs = new System.Windows.Forms.MenuItem(); this.menuItem6_Exit = new System.Windows.Forms.MenuItem(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.decimal_UpDown1 = new Salford.VisualClearWin.Decimal_UpDown(); this.decimal_UpDown2 = new Salford.VisualClearWin.Decimal_UpDown(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.decimal_UpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.decimal_UpDown2)).BeginInit(); this.SuspendLayout(); // // imageList1 // this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit; this.imageList1.ImageSize = new System.Drawing.Size(16, 16); this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.White; // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarButton1, this.toolBarButton5, this.toolBarButton2, this.toolBarButton3, this.toolBarButton4, this.toolBarButton5_Down, this.toolBarButton6_Up, this.toolBarButton7_Left, this.toolBarButton8_Right }); this.toolBar1.DropDownArrows = true; this.toolBar1.ImageList = this.imageList1; this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(288, 25); this.toolBar1.TabIndex = 1; // // toolBarButton1 // this.toolBarButton1.ImageIndex = 0; this.toolBarButton1.ToolTipText = "Append a sibling node"; // // toolBarButton5 // this.toolBarButton5.ImageIndex = 7; this.toolBarButton5.ToolTipText = "Insert a sibling node"; // // toolBarButton2 // this.toolBarButton2.ImageIndex = 1; this.toolBarButton2.ToolTipText = "Add a child node"; // // toolBarButton3 // this.toolBarButton3.ImageIndex = 2; this.toolBarButton3.ToolTipText = "Delete the selected node and its children"; // // toolBarButton4 // this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButton5_Down // this.toolBarButton5_Down.ImageIndex = 3; this.toolBarButton5_Down.ToolTipText = "Move down"; // // toolBarButton6_Up // this.toolBarButton6_Up.ImageIndex = 4; this.toolBarButton6_Up.ToolTipText = "Move up"; // // toolBarButton7_Left // this.toolBarButton7_Left.ImageIndex = 5; this.toolBarButton7_Left.ToolTipText = "Move left"; // // toolBarButton8_Right // this.toolBarButton8_Right.ImageIndex = 6; this.toolBarButton8_Right.ToolTipText = "Move right"; // // tree_View1 // this.tree_View1.HideSelection = false; this.tree_View1.ImageList = this.imageList2; this.tree_View1.LabelEdit = true; this.tree_View1.Location = new System.Drawing.Point(0, 80); this.tree_View1.Name = "tree_View1"; this.tree_View1.Pivoting = Salford.VisualClearWin.Pivot.Full; this.tree_View1.Size = new System.Drawing.Size(288, 176); this.tree_View1.TabIndex = 0; this.toolTip1.SetToolTip(this.tree_View1, "Edit the tree here..."); // // imageList2 // this.imageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; this.imageList2.ImageSize = new System.Drawing.Size(16, 16); this.imageList2.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream"))); this.imageList2.TransparentColor = System.Drawing.Color.Transparent; // // text_Box1 // this.text_Box1.Enabled = false; this.text_Box1.HideSelection = false; this.text_Box1.Location = new System.Drawing.Point(48, 56); this.text_Box1.Name = "text_Box1"; this.text_Box1.Pivoting = Salford.VisualClearWin.Pivot.Horizontal; this.text_Box1.Size = new System.Drawing.Size(234, 20); this.text_Box1.TabIndex = 2; this.text_Box1.Text = ""; this.toolTip1.SetToolTip(this.text_Box1, "Enter node data here..."); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem2_New, this.menuItem3_Open, this.menuItem4_Save, this.menuItem5_SaveAs, this.menuItem6_Exit }); this.menuItem1.Text = "File"; // // menuItem2_New // this.menuItem2_New.Index = 0; this.menuItem2_New.Text = "New"; // // menuItem3_Open // this.menuItem3_Open.Index = 1; this.menuItem3_Open.Text = "Open"; // // menuItem4_Save // this.menuItem4_Save.Index = 2; this.menuItem4_Save.Text = "Save"; // // menuItem5_SaveAs // this.menuItem5_SaveAs.Index = 3; this.menuItem5_SaveAs.Text = "Save As"; // // menuItem6_Exit // this.menuItem6_Exit.Index = 4; this.menuItem6_Exit.Text = "Exit"; // // openFileDialog1 // this.openFileDialog1.DefaultExt = "tre"; this.openFileDialog1.Filter = "Tree files (*.tre)|*.tre|All files (*.*)|*.*"; // // saveFileDialog1 // this.saveFileDialog1.Filter = "Tree files (*.tre)|*.tre|All files (*.*)|*.*"; // // decimal_UpDown1 // this.decimal_UpDown1.Enabled = false; this.decimal_UpDown1.Location = new System.Drawing.Point(56, 32); this.decimal_UpDown1.Maximum = new System.Decimal(new int[] { 10, 0, 0, 0 }); this.decimal_UpDown1.Minimum = new System.Decimal(new int[] { 1, 0, 0, -2147483648 }); this.decimal_UpDown1.Name = "decimal_UpDown1"; this.decimal_UpDown1.Size = new System.Drawing.Size(40, 20); this.decimal_UpDown1.TabIndex = 3; // // decimal_UpDown2 // this.decimal_UpDown2.Enabled = false; this.decimal_UpDown2.Location = new System.Drawing.Point(208, 32); this.decimal_UpDown2.Maximum = new System.Decimal(new int[] { 10, 0, 0, 0 }); this.decimal_UpDown2.Minimum = new System.Decimal(new int[] { 1, 0, 0, -2147483648 }); this.decimal_UpDown2.Name = "decimal_UpDown2"; this.decimal_UpDown2.Size = new System.Drawing.Size(40, 20); this.decimal_UpDown2.TabIndex = 4; // // label1 // this.label1.Location = new System.Drawing.Point(8, 35); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(39, 16); this.label1.TabIndex = 5; this.label1.Text = "Image:"; // // label2 // this.label2.Location = new System.Drawing.Point(112, 35); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(86, 16); this.label2.TabIndex = 6; this.label2.Text = "Selected Image:"; // // label3 // this.label3.Location = new System.Drawing.Point(8, 59); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(32, 16); this.label3.TabIndex = 7; this.label3.Text = "Data:"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(288, 257); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label3, this.label2, this.label1, this.decimal_UpDown2, this.decimal_UpDown1, this.text_Box1, this.tree_View1, this.toolBar1 }); this.Menu = this.mainMenu1; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "TreeNode Editor"; ((System.ComponentModel.ISupportInitialize)(this.decimal_UpDown1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.decimal_UpDown2)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// 匯出合併欄位總表Word(新版 在校成績證明書) /// </summary> public static void ExportMappingFieldWord(string doc) { #region 儲存檔案 string inputReportName = "在校成績證明書合併欄位總表"; string reportName = inputReportName; string path = Path.Combine(System.Windows.Forms.Application.StartupPath, "Reports"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } path = Path.Combine(path, reportName + ".doc"); if (File.Exists(path)) { int i = 1; while (true) { string newPath = Path.GetDirectoryName(path) + "\\" + Path.GetFileNameWithoutExtension(path) + (i++) + Path.GetExtension(path); if (!File.Exists(newPath)) { path = newPath; break; } } } Document tempDoc = new Document(new MemoryStream(Properties.Resources.在校成績證明書_2022功能變數)); if (doc == "英文版") { tempDoc = new Document(new MemoryStream(Properties.Resources.在校成績證明書_2022英文版功能變數)); } try { #region 動態產生合併欄位 // 讀取總表檔案並動態加入合併欄位 Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(tempDoc); builder.MoveToDocumentEnd(); #region 缺曠動態產生合併欄位 List <string> plist = K12.Data.PeriodMapping.SelectAll().Select(x => x.Type).Distinct().ToList(); List <string> alist = K12.Data.AbsenceMapping.SelectAll().Select(x => x.Name).ToList(); builder.Writeln(); builder.Writeln(); builder.Writeln("缺曠動態產生合併欄位"); builder.StartTable(); builder.InsertCell(); builder.Write("缺曠名稱"); builder.InsertCell(); builder.Write("一上缺曠節數"); builder.InsertCell(); builder.Write("一下缺曠節數"); builder.InsertCell(); builder.Write("二上缺曠節數"); builder.InsertCell(); builder.Write("二下缺曠節數"); builder.InsertCell(); builder.Write("三上缺曠節數"); builder.InsertCell(); builder.Write("三下缺曠節數"); builder.EndRow(); foreach (string pp in plist) { foreach (string aa in alist) { string key = pp.Replace(" ", "_") + "_" + aa.Replace(" ", "_"); builder.InsertCell(); builder.Write(key); for (int i = 1; i <= 6; i++) { builder.InsertCell(); builder.InsertField("MERGEFIELD " + key + i + " \\* MERGEFORMAT ", "«" + key + i + "»"); } builder.EndRow(); } } builder.EndTable(); #endregion #region 日常生活表現 //builder.Writeln(); //builder.Writeln(); //builder.Writeln("日常生活表現評量"); //builder.StartTable(); //builder.InsertCell(); //builder.Write("分類"); //builder.InsertCell(); //builder.Write("名稱"); //builder.InsertCell(); //builder.Write("建議內容"); //builder.EndRow(); //builder.EndTable(); //// 日常生活表現 //builder.Writeln(); //builder.Writeln(); //builder.Writeln("日常生活表現評量子項目"); //builder.StartTable(); //builder.InsertCell(); //builder.Write("項目"); //builder.InsertCell(); //builder.Write("指標"); //builder.InsertCell(); //builder.Write("表現程度"); //builder.EndRow(); //for (int i = 1; i <= 7; i++) //{ // builder.InsertCell(); // builder.InsertField("MERGEFIELD " + "日常生活表現程度_Item_Name" + i + " \\* MERGEFORMAT ", "«項目" + i + "»"); // builder.InsertCell(); // builder.InsertField("MERGEFIELD " + "日常生活表現程度_Item_Index" + i + " \\* MERGEFORMAT ", "«指標" + i + "»"); // builder.InsertCell(); // builder.InsertField("MERGEFIELD " + "日常生活表現程度_Item_Degree" + i + " \\* MERGEFORMAT ", "«表現" + i + "»"); // builder.EndRow(); //} //builder.EndTable(); #endregion //List<string> DomainList = new List<string> { "語文", "數學", "社會", "自然科學", "自然與生活科技", "藝術", "藝術與人文", "健康與體育", "綜合活動", "科技", "彈性課程" }; List <string> DomainList = Util.GetDomainList(); #region 學期領域成績 builder.Writeln(); builder.Writeln(); builder.Writeln("學期領域成績"); builder.StartTable(); builder.InsertCell(); builder.Write("領域"); if (doc == "英文版") { builder.InsertCell(); builder.Write("領域英文"); } builder.InsertCell(); builder.Write("一上權數"); builder.InsertCell(); builder.Write("一上成績"); builder.InsertCell(); builder.Write("一上等第"); builder.InsertCell(); builder.Write("一下權數"); builder.InsertCell(); builder.Write("一下成績"); builder.InsertCell(); builder.Write("一下等第"); builder.InsertCell(); builder.Write("二上權數"); builder.InsertCell(); builder.Write("二上成績"); builder.InsertCell(); builder.Write("二上等第"); builder.InsertCell(); builder.Write("二下權數"); builder.InsertCell(); builder.Write("二下成績"); builder.InsertCell(); builder.Write("二下等第"); builder.InsertCell(); builder.Write("三上權數"); builder.InsertCell(); builder.Write("三上成績"); builder.InsertCell(); builder.Write("三上等第"); builder.InsertCell(); builder.Write("三下權數"); builder.InsertCell(); builder.Write("三下成績"); builder.InsertCell(); builder.Write("三下等第"); builder.EndRow(); foreach (string domain in DomainList) { if (domain == "彈性課程") { continue; } builder.InsertCell(); builder.Write(domain); if (doc == "英文版") { builder.InsertCell(); builder.Write(_SubjDomainEngNameMapping.GetDomainEngName(domain)); } for (int i = 1; i <= 6; i++) { //領域_語文_成績_1 string scoreKey = "領域_" + domain + "_成績_" + i; string levelKey = "領域_" + domain + "_等第_" + i; string creditKey = "領域_" + domain + "_權數_" + i; builder.InsertCell(); builder.InsertField("MERGEFIELD " + creditKey + " \\* MERGEFORMAT ", "«C" + i + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + scoreKey + " \\* MERGEFORMAT ", "«S" + i + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + levelKey + " \\* MERGEFORMAT ", "«D" + i + "»"); } builder.EndRow(); } builder.InsertCell(); builder.Write("學習領域總成績"); if (doc == "英文版") { builder.InsertCell(); builder.Write("Weighted Average Score"); } for (int i = 1; i <= 6; i++) { //領域_學習領域總成績_成績_1 string scoreKey = "領域_" + "學習領域總成績" + "_成績_" + i; string levelKey = "領域_" + "學習領域總成績" + "_等第_" + i; builder.InsertCell(); builder.Write(""); builder.InsertCell(); builder.InsertField("MERGEFIELD " + scoreKey + " \\* MERGEFORMAT ", "«S" + i + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + levelKey + " \\* MERGEFORMAT ", "«D" + i + "»"); } builder.EndRow(); builder.EndTable(); #endregion #region 學期科目成績 foreach (string domain in DomainList) { builder.Writeln(); builder.Writeln(); builder.Writeln(domain + "領域科目成績"); builder.StartTable(); builder.InsertCell(); builder.Write("科目"); builder.InsertCell(); builder.Write("一上權數"); builder.InsertCell(); builder.Write("一上成績"); builder.InsertCell(); builder.Write("一上等第"); builder.InsertCell(); builder.Write("一下權數"); builder.InsertCell(); builder.Write("一下成績"); builder.InsertCell(); builder.Write("一下等第"); builder.InsertCell(); builder.Write("二上權數"); builder.InsertCell(); builder.Write("二上成績"); builder.InsertCell(); builder.Write("二上等第"); builder.InsertCell(); builder.Write("二下權數"); builder.InsertCell(); builder.Write("二下成績"); builder.InsertCell(); builder.Write("二下等第"); builder.InsertCell(); builder.Write("三上權數"); builder.InsertCell(); builder.Write("三上成績"); builder.InsertCell(); builder.Write("三上等第"); builder.InsertCell(); builder.Write("三下權數"); builder.InsertCell(); builder.Write("三下成績"); builder.InsertCell(); builder.Write("三下等第"); builder.EndRow(); //1上 for (int i = 1; i <= 6; i++) { string subjectKey = domain + "_科目名稱" + i; builder.InsertCell(); builder.InsertField("MERGEFIELD " + subjectKey + " \\* MERGEFORMAT ", "«N" + i + "»"); for (int a = 1; a <= 6; a++) { builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_權數" + a + " \\* MERGEFORMAT ", "«C" + a + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_成績" + a + " \\* MERGEFORMAT ", "«S" + a + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_等第" + a + " \\* MERGEFORMAT ", "«L" + a + "»"); } builder.EndRow(); } if (domain == "彈性課程") { for (int i = 7; i <= 18; i++) { string subjectKey = domain + "_科目名稱" + i; builder.InsertCell(); builder.InsertField("MERGEFIELD " + subjectKey + " \\* MERGEFORMAT ", "«N" + i + "»"); for (int a = 1; a <= 6; a++) { builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_權數" + a + " \\* MERGEFORMAT ", "«C" + a + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_成績" + a + " \\* MERGEFORMAT ", "«S" + a + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_等第" + a + " \\* MERGEFORMAT ", "«L" + a + "»"); } builder.EndRow(); } } builder.EndTable(); } #endregion #region 學期科目原始成績 foreach (string domain in DomainList) { builder.Writeln(); builder.Writeln(); builder.Writeln(domain + "領域科目原始成績"); builder.StartTable(); builder.InsertCell(); builder.Write("科目"); builder.InsertCell(); builder.Write("一上權數"); builder.InsertCell(); builder.Write("一上成績"); builder.InsertCell(); builder.Write("一上等第"); builder.InsertCell(); builder.Write("一下權數"); builder.InsertCell(); builder.Write("一下成績"); builder.InsertCell(); builder.Write("一下等第"); builder.InsertCell(); builder.Write("二上權數"); builder.InsertCell(); builder.Write("二上成績"); builder.InsertCell(); builder.Write("二上等第"); builder.InsertCell(); builder.Write("二下權數"); builder.InsertCell(); builder.Write("二下成績"); builder.InsertCell(); builder.Write("二下等第"); builder.InsertCell(); builder.Write("三上權數"); builder.InsertCell(); builder.Write("三上成績"); builder.InsertCell(); builder.Write("三上等第"); builder.InsertCell(); builder.Write("三下權數"); builder.InsertCell(); builder.Write("三下成績"); builder.InsertCell(); builder.Write("三下等第"); builder.EndRow(); //1上 for (int i = 1; i <= 6; i++) { string subjectKey = domain + "_科目名稱" + i; builder.InsertCell(); builder.InsertField("MERGEFIELD " + subjectKey + " \\* MERGEFORMAT ", "«N" + i + "»"); for (int a = 1; a <= 6; a++) { builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_權數" + a + " \\* MERGEFORMAT ", "«C" + a + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_原始成績" + a + " \\* MERGEFORMAT ", "«S" + a + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_原始等第" + a + " \\* MERGEFORMAT ", "«L" + a + "»"); } builder.EndRow(); } if (domain == "彈性課程") { for (int i = 7; i <= 18; i++) { string subjectKey = domain + "_科目名稱" + i; builder.InsertCell(); builder.InsertField("MERGEFIELD " + subjectKey + " \\* MERGEFORMAT ", "«N" + i + "»"); for (int a = 1; a <= 6; a++) { builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_權數" + a + " \\* MERGEFORMAT ", "«C" + a + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_原始成績" + a + " \\* MERGEFORMAT ", "«S" + a + "»"); builder.InsertCell(); builder.InsertField("MERGEFIELD " + domain + "_科目" + i + "_原始等第" + a + " \\* MERGEFORMAT ", "«L" + a + "»"); } builder.EndRow(); } } builder.EndTable(); } #endregion #endregion tempDoc.Save(path, SaveFormat.Doc); System.Diagnostics.Process.Start(path); } catch { System.Windows.Forms.SaveFileDialog sd = new System.Windows.Forms.SaveFileDialog(); sd.Title = "另存新檔"; sd.FileName = reportName + ".doc"; sd.Filter = "Word檔案 (*.doc)|*.doc|所有檔案 (*.*)|*.*"; if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { tempDoc.Save(sd.FileName, SaveFormat.Doc); } catch { FISCA.Presentation.Controls.MsgBox.Show("指定路徑無法存取。", "建立檔案失敗", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); return; } } } #endregion }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.panel1 = new System.Windows.Forms.Panel(); this.horizontalScaleGroupBox = new System.Windows.Forms.GroupBox(); this.veryFineRadioButton = new System.Windows.Forms.RadioButton(); this.fineRadioButton = new System.Windows.Forms.RadioButton(); this.mediumRadioButton = new System.Windows.Forms.RadioButton(); this.coarseRadioButton = new System.Windows.Forms.RadioButton(); this.verticalScaleGroupBox = new System.Windows.Forms.GroupBox(); this.radioButton10 = new System.Windows.Forms.RadioButton(); this.radioButton9 = new System.Windows.Forms.RadioButton(); this.radioButton8 = new System.Windows.Forms.RadioButton(); this.radioButton7 = new System.Windows.Forms.RadioButton(); this.radioButton6 = new System.Windows.Forms.RadioButton(); this.radioButton5 = new System.Windows.Forms.RadioButton(); this.radioButton4 = new System.Windows.Forms.RadioButton(); this.radioButton3 = new System.Windows.Forms.RadioButton(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.panel2 = new System.Windows.Forms.Panel(); this.graphPanel = new System.Windows.Forms.Panel(); this.splitter1 = new System.Windows.Forms.Splitter(); this.panel3 = new System.Windows.Forms.Panel(); this.typeLegendPanel = new System.Windows.Forms.Panel(); this.versionTimer = new System.Timers.Timer(); this.contextMenu = new System.Windows.Forms.ContextMenu(); this.showWhoAllocatedMenuItem = new System.Windows.Forms.MenuItem(); this.exportMenuItem = new System.Windows.Forms.MenuItem(); this.exportSaveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.panel1.SuspendLayout(); this.horizontalScaleGroupBox.SuspendLayout(); this.verticalScaleGroupBox.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.versionTimer)).BeginInit(); this.SuspendLayout(); // // panel1 // this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] { this.horizontalScaleGroupBox, this.verticalScaleGroupBox }); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(816, 72); this.panel1.TabIndex = 0; // // horizontalScaleGroupBox // this.horizontalScaleGroupBox.Controls.AddRange(new System.Windows.Forms.Control[] { this.veryFineRadioButton, this.fineRadioButton, this.mediumRadioButton, this.coarseRadioButton }); this.horizontalScaleGroupBox.Location = new System.Drawing.Point(480, 8); this.horizontalScaleGroupBox.Name = "horizontalScaleGroupBox"; this.horizontalScaleGroupBox.Size = new System.Drawing.Size(312, 48); this.horizontalScaleGroupBox.TabIndex = 1; this.horizontalScaleGroupBox.TabStop = false; this.horizontalScaleGroupBox.Text = "Horizontal Scale"; // // veryFineRadioButton // this.veryFineRadioButton.Location = new System.Drawing.Point(232, 16); this.veryFineRadioButton.Name = "veryFineRadioButton"; this.veryFineRadioButton.Size = new System.Drawing.Size(72, 24); this.veryFineRadioButton.TabIndex = 3; this.veryFineRadioButton.Text = "Very Fine"; this.veryFineRadioButton.CheckedChanged += new System.EventHandler(this.Refresh); // // fineRadioButton // this.fineRadioButton.Location = new System.Drawing.Point(168, 16); this.fineRadioButton.Name = "fineRadioButton"; this.fineRadioButton.Size = new System.Drawing.Size(48, 24); this.fineRadioButton.TabIndex = 2; this.fineRadioButton.Text = "Fine"; this.fineRadioButton.CheckedChanged += new System.EventHandler(this.Refresh); // // mediumRadioButton // this.mediumRadioButton.Location = new System.Drawing.Point(88, 16); this.mediumRadioButton.Name = "mediumRadioButton"; this.mediumRadioButton.Size = new System.Drawing.Size(64, 24); this.mediumRadioButton.TabIndex = 1; this.mediumRadioButton.Text = "Medium"; this.mediumRadioButton.CheckedChanged += new System.EventHandler(this.Refresh); // // coarseRadioButton // this.coarseRadioButton.Checked = true; this.coarseRadioButton.Location = new System.Drawing.Point(16, 16); this.coarseRadioButton.Name = "coarseRadioButton"; this.coarseRadioButton.Size = new System.Drawing.Size(64, 24); this.coarseRadioButton.TabIndex = 0; this.coarseRadioButton.TabStop = true; this.coarseRadioButton.Text = "Coarse"; this.coarseRadioButton.CheckedChanged += new System.EventHandler(this.Refresh); // // verticalScaleGroupBox // this.verticalScaleGroupBox.Controls.AddRange(new System.Windows.Forms.Control[] { this.radioButton10, this.radioButton9, this.radioButton8, this.radioButton7, this.radioButton6, this.radioButton5, this.radioButton4, this.radioButton3, this.radioButton2, this.radioButton1 }); this.verticalScaleGroupBox.Location = new System.Drawing.Point(16, 8); this.verticalScaleGroupBox.Name = "verticalScaleGroupBox"; this.verticalScaleGroupBox.Size = new System.Drawing.Size(432, 48); this.verticalScaleGroupBox.TabIndex = 0; this.verticalScaleGroupBox.TabStop = false; this.verticalScaleGroupBox.Text = "Vertical Scale: Kilobytes/Pixel"; // // radioButton10 // this.radioButton10.Location = new System.Drawing.Point(376, 16); this.radioButton10.Name = "radioButton10"; this.radioButton10.Size = new System.Drawing.Size(48, 24); this.radioButton10.TabIndex = 9; this.radioButton10.Text = "1000"; this.radioButton10.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton9 // this.radioButton9.Location = new System.Drawing.Point(328, 16); this.radioButton9.Name = "radioButton9"; this.radioButton9.Size = new System.Drawing.Size(48, 24); this.radioButton9.TabIndex = 8; this.radioButton9.Text = "500"; this.radioButton9.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton8 // this.radioButton8.Location = new System.Drawing.Point(280, 16); this.radioButton8.Name = "radioButton8"; this.radioButton8.Size = new System.Drawing.Size(48, 24); this.radioButton8.TabIndex = 7; this.radioButton8.Text = "200"; this.radioButton8.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton7 // this.radioButton7.Location = new System.Drawing.Point(232, 16); this.radioButton7.Name = "radioButton7"; this.radioButton7.Size = new System.Drawing.Size(48, 24); this.radioButton7.TabIndex = 6; this.radioButton7.Text = "100"; this.radioButton7.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton6 // this.radioButton6.Location = new System.Drawing.Point(192, 16); this.radioButton6.Name = "radioButton6"; this.radioButton6.Size = new System.Drawing.Size(40, 24); this.radioButton6.TabIndex = 5; this.radioButton6.Text = "50"; this.radioButton6.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton5 // this.radioButton5.Location = new System.Drawing.Point(152, 16); this.radioButton5.Name = "radioButton5"; this.radioButton5.Size = new System.Drawing.Size(40, 24); this.radioButton5.TabIndex = 4; this.radioButton5.Text = "20"; this.radioButton5.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton4 // this.radioButton4.Location = new System.Drawing.Point(112, 16); this.radioButton4.Name = "radioButton4"; this.radioButton4.Size = new System.Drawing.Size(40, 24); this.radioButton4.TabIndex = 3; this.radioButton4.Text = "10"; this.radioButton4.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton3 // this.radioButton3.Location = new System.Drawing.Point(80, 16); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(32, 24); this.radioButton3.TabIndex = 2; this.radioButton3.Text = "5"; this.radioButton3.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton2 // this.radioButton2.Location = new System.Drawing.Point(48, 16); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(32, 24); this.radioButton2.TabIndex = 1; this.radioButton2.Text = "2"; this.radioButton2.CheckedChanged += new System.EventHandler(this.Refresh); // // radioButton1 // this.radioButton1.Location = new System.Drawing.Point(16, 16); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(24, 24); this.radioButton1.TabIndex = 0; this.radioButton1.Text = "1"; this.radioButton1.CheckedChanged += new System.EventHandler(this.Refresh); // // panel2 // this.panel2.AutoScroll = true; this.panel2.BackColor = System.Drawing.SystemColors.Control; this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel2.Controls.AddRange(new System.Windows.Forms.Control[] { this.graphPanel }); this.panel2.Dock = System.Windows.Forms.DockStyle.Left; this.panel2.Location = new System.Drawing.Point(0, 72); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(592, 501); this.panel2.TabIndex = 1; // // graphPanel // this.graphPanel.BackColor = System.Drawing.SystemColors.Control; this.graphPanel.Name = "graphPanel"; this.graphPanel.Size = new System.Drawing.Size(584, 488); this.graphPanel.TabIndex = 0; this.graphPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.graphPanel_Paint); this.graphPanel.MouseMove += new System.Windows.Forms.MouseEventHandler(this.graphPanel_MouseMove); this.graphPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.graphPanel_MouseDown); // // splitter1 // this.splitter1.Location = new System.Drawing.Point(592, 72); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(3, 501); this.splitter1.TabIndex = 2; this.splitter1.TabStop = false; // // panel3 // this.panel3.AutoScroll = true; this.panel3.BackColor = System.Drawing.SystemColors.Control; this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel3.Controls.AddRange(new System.Windows.Forms.Control[] { this.typeLegendPanel }); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Location = new System.Drawing.Point(595, 72); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(221, 501); this.panel3.TabIndex = 3; // // typeLegendPanel // this.typeLegendPanel.BackColor = System.Drawing.SystemColors.Control; this.typeLegendPanel.Name = "typeLegendPanel"; this.typeLegendPanel.Size = new System.Drawing.Size(208, 488); this.typeLegendPanel.TabIndex = 0; this.typeLegendPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.typeLegendPanel_Paint); this.typeLegendPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.typeLegendPanel_MouseDown); // // versionTimer // this.versionTimer.Enabled = true; this.versionTimer.SynchronizingObject = this; this.versionTimer.Elapsed += new System.Timers.ElapsedEventHandler(this.versionTimer_Elapsed); // // contextMenu // this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.showWhoAllocatedMenuItem, this.exportMenuItem }); // // showWhoAllocatedMenuItem // this.showWhoAllocatedMenuItem.Index = 0; this.showWhoAllocatedMenuItem.Text = "Show Who Allocated"; this.showWhoAllocatedMenuItem.Click += new System.EventHandler(this.showWhoAllocatedMenuItem_Click); // // exportMenuItem // this.exportMenuItem.Index = 1; this.exportMenuItem.Text = "Export Data to File..."; this.exportMenuItem.Click += new System.EventHandler(this.exportMenuItem_Click); // // exportSaveFileDialog // this.exportSaveFileDialog.FileName = "doc1"; // // HistogramViewForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(816, 573); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.panel3, this.splitter1, this.panel2, this.panel1 }); this.Name = "HistogramViewForm"; this.Text = "HistogramViewForm"; this.panel1.ResumeLayout(false); this.horizontalScaleGroupBox.ResumeLayout(false); this.verticalScaleGroupBox.ResumeLayout(false); this.panel2.ResumeLayout(false); this.panel3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.versionTimer)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Metodo necessario per il supporto della finestra di progettazione. Non modificare /// il contenuto del metodo con l'editor di codice. /// </summary> private void InitializeComponent() { this.DS = new admpay_splitcolumn.vistaForm(); this.btnInputFile = new System.Windows.Forms.Button(); this.txtInputFile = new System.Windows.Forms.TextBox(); this.btnFileLordi = new System.Windows.Forms.Button(); this.openInputFileDlg = new System.Windows.Forms.OpenFileDialog(); this.saveOutputFileDlg = new System.Windows.Forms.SaveFileDialog(); this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.lblTask = new System.Windows.Forms.Label(); this.btnFileReversali = new System.Windows.Forms.Button(); this.btnFileContr = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.label1 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.DS)).BeginInit(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // DS // this.DS.DataSetName = "vistaForm"; this.DS.Locale = new System.Globalization.CultureInfo("en-US"); this.DS.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // btnInputFile // this.btnInputFile.Location = new System.Drawing.Point(8, 8); this.btnInputFile.Name = "btnInputFile"; this.btnInputFile.Size = new System.Drawing.Size(80, 23); this.btnInputFile.TabIndex = 0; this.btnInputFile.Text = "File di Input"; this.btnInputFile.Click += new System.EventHandler(this.btnInputFile_Click); // // txtInputFile // this.txtInputFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtInputFile.Location = new System.Drawing.Point(96, 8); this.txtInputFile.Name = "txtInputFile"; this.txtInputFile.ReadOnly = true; this.txtInputFile.Size = new System.Drawing.Size(393, 20); this.txtInputFile.TabIndex = 2; // // btnFileLordi // this.btnFileLordi.Location = new System.Drawing.Point(191, 19); this.btnFileLordi.Name = "btnFileLordi"; this.btnFileLordi.Size = new System.Drawing.Size(104, 23); this.btnFileLordi.TabIndex = 4; this.btnFileLordi.Text = "Lordi"; this.btnFileLordi.Click += new System.EventHandler(this.btnFileLordi_Click); // // progressBar1 // this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.progressBar1.Location = new System.Drawing.Point(2, 185); this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new System.Drawing.Size(481, 23); this.progressBar1.TabIndex = 5; // // lblTask // this.lblTask.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblTask.Location = new System.Drawing.Point(2, 153); this.lblTask.Name = "lblTask"; this.lblTask.Size = new System.Drawing.Size(481, 23); this.lblTask.TabIndex = 6; // // btnFileReversali // this.btnFileReversali.Location = new System.Drawing.Point(6, 19); this.btnFileReversali.Name = "btnFileReversali"; this.btnFileReversali.Size = new System.Drawing.Size(121, 23); this.btnFileReversali.TabIndex = 7; this.btnFileReversali.Text = "Reversali"; this.btnFileReversali.UseVisualStyleBackColor = true; this.btnFileReversali.Click += new System.EventHandler(this.btnFileReversali_Click); // // btnFileContr // this.btnFileContr.Location = new System.Drawing.Point(362, 19); this.btnFileContr.Name = "btnFileContr"; this.btnFileContr.Size = new System.Drawing.Size(113, 23); this.btnFileContr.TabIndex = 8; this.btnFileContr.Text = "Versamenti"; this.btnFileContr.UseVisualStyleBackColor = true; this.btnFileContr.Click += new System.EventHandler(this.btnFileContr_Click); // // groupBox1 // this.groupBox1.Controls.Add(this.btnFileReversali); this.groupBox1.Controls.Add(this.btnFileContr); this.groupBox1.Controls.Add(this.btnFileLordi); this.groupBox1.Location = new System.Drawing.Point(8, 81); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(481, 54); this.groupBox1.TabIndex = 9; this.groupBox1.TabStop = false; this.groupBox1.Text = "Formattazione dei file per"; // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(12, 34); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(477, 44); this.label1.TabIndex = 10; this.label1.Text = "ATTENZIONE: Per generare Reversali e Lordi viene adoperato il file dei Riepiloghi" + ", per i versamenti il file dei Versamenti"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // FrmAdmPay_SplitColumn // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(497, 220); this.Controls.Add(this.label1); this.Controls.Add(this.groupBox1); this.Controls.Add(this.lblTask); this.Controls.Add(this.progressBar1); this.Controls.Add(this.txtInputFile); this.Controls.Add(this.btnInputFile); this.Name = "FrmAdmPay_SplitColumn"; this.Text = "FrmAdmPay_SplitColumn"; ((System.ComponentModel.ISupportInitialize)(this.DS)).EndInit(); this.groupBox1.ResumeLayout(false); 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() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ScribbleForm)); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.fileMenuItem = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.fileCloseMenuItem = new System.Windows.Forms.MenuItem(); this.fileSendMenuItem = new System.Windows.Forms.MenuItem(); this.fileReceiveMenuItem = new System.Windows.Forms.MenuItem(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.colorDialog1 = new System.Windows.Forms.ColorDialog(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.printDocument1 = new System.Drawing.Printing.PrintDocument(); this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.fileMenuItem, this.menuItem5 }); // // fileMenuItem // this.fileMenuItem.Index = 0; this.fileMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem2, this.menuItem1, this.fileCloseMenuItem, this.fileSendMenuItem, this.fileReceiveMenuItem, this.menuItem3, this.menuItem4 }); this.fileMenuItem.MergeType = System.Windows.Forms.MenuMerge.MergeItems; this.fileMenuItem.Text = "File"; // // menuItem2 // this.menuItem2.Index = 0; this.menuItem2.Text = "Open..."; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // menuItem1 // this.menuItem1.Index = 1; this.menuItem1.Text = "Save As..."; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // fileCloseMenuItem // this.fileCloseMenuItem.Index = 2; this.fileCloseMenuItem.MergeOrder = 30; this.fileCloseMenuItem.Text = "Close"; this.fileCloseMenuItem.Click += new System.EventHandler(this.fileCloseMenuItem_Click); // // fileSendMenuItem // this.fileSendMenuItem.Index = 3; this.fileSendMenuItem.Text = "Send..."; this.fileSendMenuItem.Click += new System.EventHandler(this.fileSendMenuItem_Click); // // fileReceiveMenuItem // this.fileReceiveMenuItem.Index = 4; this.fileReceiveMenuItem.Text = "Receive"; this.fileReceiveMenuItem.Click += new System.EventHandler(this.fileReceiveMenuItem_Click); // // menuItem3 // this.menuItem3.Index = 5; this.menuItem3.Text = "Print Preview..."; this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); // // menuItem4 // this.menuItem4.Index = 6; this.menuItem4.Text = "Print..."; this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click); // // printDocument1 // this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage); // // printPreviewDialog1 // this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0); this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300); this.printPreviewDialog1.Enabled = true; this.printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon"))); this.printPreviewDialog1.Location = new System.Drawing.Point(68, 88); this.printPreviewDialog1.MinimumSize = new System.Drawing.Size(375, 250); this.printPreviewDialog1.Name = "printPreviewDialog1"; this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty; this.printPreviewDialog1.Visible = false; // // menuItem5 // this.menuItem5.Index = 1; this.menuItem5.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem6, this.menuItem7 }); this.menuItem5.Text = "Edit"; // // menuItem6 // this.menuItem6.Index = 0; this.menuItem6.Text = "Color..."; this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click); // // menuItem7 // this.menuItem7.Index = 1; this.menuItem7.Text = "Width..."; this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click); // // ScribbleForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(720, 446); this.Menu = this.mainMenu1; this.Name = "ScribbleForm"; this.Text = "Scribble"; this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ScribbleForm_MouseDown); this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ScribbleForm_MouseUp); this.Paint += new System.Windows.Forms.PaintEventHandler(this.ScribbleForm_Paint); this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.ScribbleForm_MouseMove); }
/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SystemEditor)); this.statusBar = new System.Windows.Forms.StatusBar(); this.statusBarPanel = new System.Windows.Forms.StatusBarPanel(); this.mainMenu = new System.Windows.Forms.MainMenu(this.components); this.menuItemClose = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItemName = new System.Windows.Forms.MenuItem(); this.menuItemReport = new System.Windows.Forms.MenuItem(); this.menuItemPageSetup = new System.Windows.Forms.MenuItem(); this.menuItemPrintPreview = new System.Windows.Forms.MenuItem(); this.menuItemPrint = new System.Windows.Forms.MenuItem(); this.menuItemSave = new System.Windows.Forms.MenuItem(); this.menuItemCustomize = new System.Windows.Forms.MenuItem(); this.panelUnitOps = new System.Windows.Forms.Panel(); this.splitterStreams_UnitOps = new System.Windows.Forms.Splitter(); this.panelStreams = new System.Windows.Forms.Panel(); this.printDocument = new System.Drawing.Printing.PrintDocument(); this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).BeginInit(); this.SuspendLayout(); // // statusBar // this.statusBar.Location = new System.Drawing.Point(0, 563); this.statusBar.Name = "statusBar"; this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.statusBarPanel }); this.statusBar.ShowPanels = true; this.statusBar.Size = new System.Drawing.Size(660, 22); this.statusBar.TabIndex = 3; // // statusBarPanel // this.statusBarPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.statusBarPanel.BorderStyle = System.Windows.Forms.StatusBarPanelBorderStyle.Raised; this.statusBarPanel.Name = "statusBarPanel"; this.statusBarPanel.Width = 643; // // mainMenu // this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemClose, this.menuItem1, this.menuItemReport, this.menuItemCustomize }); // // menuItemClose // this.menuItemClose.Index = 0; this.menuItemClose.Text = "Close"; this.menuItemClose.Click += new System.EventHandler(this.menuItemClose_Click); // // menuItem1 // this.menuItem1.Enabled = false; this.menuItem1.Index = 1; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemName }); this.menuItem1.Text = "Edit"; this.menuItem1.Visible = false; // // menuItemName // this.menuItemName.Enabled = false; this.menuItemName.Index = 0; this.menuItemName.Text = "Name..."; this.menuItemName.Click += new System.EventHandler(this.menuItemName_Click); // // menuItemReport // this.menuItemReport.Index = 2; this.menuItemReport.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemPageSetup, this.menuItemPrintPreview, this.menuItemPrint, this.menuItemSave }); this.menuItemReport.Text = "Report"; // // menuItemPageSetup // this.menuItemPageSetup.Index = 0; this.menuItemPageSetup.Text = "Page Setup..."; this.menuItemPageSetup.Click += new System.EventHandler(this.menuItemPageSetup_Click); // // menuItemPrintPreview // this.menuItemPrintPreview.Index = 1; this.menuItemPrintPreview.Text = "Print Preview..."; this.menuItemPrintPreview.Click += new System.EventHandler(this.menuItemPrintPreview_Click); // // menuItemPrint // this.menuItemPrint.Index = 2; this.menuItemPrint.Text = "Print..."; this.menuItemPrint.Click += new System.EventHandler(this.menuItemPrint_Click); // // menuItemSave // this.menuItemSave.Index = 3; this.menuItemSave.Text = "Save..."; this.menuItemSave.Click += new System.EventHandler(this.menuItemSave_Click); // // menuItemCustomize // this.menuItemCustomize.Index = 3; this.menuItemCustomize.Text = "Customize..."; this.menuItemCustomize.Click += new System.EventHandler(this.menuItemCustomize_Click); // // panelUnitOps // this.panelUnitOps.AutoScroll = true; this.panelUnitOps.BackColor = System.Drawing.SystemColors.Control; this.panelUnitOps.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panelUnitOps.Dock = System.Windows.Forms.DockStyle.Right; this.panelUnitOps.Location = new System.Drawing.Point(364, 0); this.panelUnitOps.Name = "panelUnitOps"; this.panelUnitOps.Size = new System.Drawing.Size(296, 563); this.panelUnitOps.TabIndex = 4; // // splitterStreams_UnitOps // this.splitterStreams_UnitOps.BackColor = System.Drawing.SystemColors.Control; this.splitterStreams_UnitOps.Dock = System.Windows.Forms.DockStyle.Right; this.splitterStreams_UnitOps.Location = new System.Drawing.Point(362, 0); this.splitterStreams_UnitOps.MinExtra = 0; this.splitterStreams_UnitOps.MinSize = 0; this.splitterStreams_UnitOps.Name = "splitterStreams_UnitOps"; this.splitterStreams_UnitOps.Size = new System.Drawing.Size(2, 563); this.splitterStreams_UnitOps.TabIndex = 5; this.splitterStreams_UnitOps.TabStop = false; // // panelStreams // this.panelStreams.AutoScroll = true; this.panelStreams.BackColor = System.Drawing.SystemColors.Control; this.panelStreams.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panelStreams.Dock = System.Windows.Forms.DockStyle.Fill; this.panelStreams.Location = new System.Drawing.Point(0, 0); this.panelStreams.Name = "panelStreams"; this.panelStreams.Size = new System.Drawing.Size(362, 563); this.panelStreams.TabIndex = 6; // // printDocument // this.printDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument_PrintPage); // // SystemEditor // this.ClientSize = new System.Drawing.Size(660, 585); this.Controls.Add(this.panelStreams); this.Controls.Add(this.splitterStreams_UnitOps); this.Controls.Add(this.panelUnitOps); this.Controls.Add(this.statusBar); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mainMenu; this.MinimizeBox = false; this.Name = "SystemEditor"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// 디자이너 지원에 필요한 메서드입니다. /// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오. /// </summary> private void InitializeComponent() { this.btnRigidBacking = new System.Windows.Forms.Button(); this.btnAnechoicTermination = new System.Windows.Forms.Button(); this.btnTransmissionLoss = new System.Windows.Forms.Button(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox3 = new System.Windows.Forms.PictureBox(); this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.panel1 = new System.Windows.Forms.Panel(); this.pictureBox6 = new System.Windows.Forms.PictureBox(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); this.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); this.plotter1 = new DataPlotter.Plotter(); this.btnGraphSave = new System.Windows.Forms.Button(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.panel2 = new System.Windows.Forms.Panel(); this.btnGraphEdit = new System.Windows.Forms.Button(); this.pictureBox8 = new System.Windows.Forms.PictureBox(); this.btnGraphHide = new System.Windows.Forms.Button(); this.pictureBox7 = new System.Windows.Forms.PictureBox(); this.pictureBox9 = new System.Windows.Forms.PictureBox(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // btnRigidBacking // this.btnRigidBacking.BackColor = System.Drawing.SystemColors.Control; this.btnRigidBacking.Dock = System.Windows.Forms.DockStyle.Bottom; this.btnRigidBacking.Location = new System.Drawing.Point(0, 16); this.btnRigidBacking.Name = "btnRigidBacking"; this.btnRigidBacking.Size = new System.Drawing.Size(690, 24); this.btnRigidBacking.TabIndex = 0; this.btnRigidBacking.Text = "Absorption Coefficient for rigid backing"; this.btnRigidBacking.Click += new System.EventHandler(this.btnRigidBacking_Click); // // btnAnechoicTermination // this.btnAnechoicTermination.BackColor = System.Drawing.SystemColors.Control; this.btnAnechoicTermination.Dock = System.Windows.Forms.DockStyle.Bottom; this.btnAnechoicTermination.Location = new System.Drawing.Point(0, 52); this.btnAnechoicTermination.Name = "btnAnechoicTermination"; this.btnAnechoicTermination.Size = new System.Drawing.Size(690, 24); this.btnAnechoicTermination.TabIndex = 1; this.btnAnechoicTermination.Text = "Absorption Coefficient for anechoic termination"; this.btnAnechoicTermination.Click += new System.EventHandler(this.btnAnechoicTermination_Click); // // btnTransmissionLoss // this.btnTransmissionLoss.BackColor = System.Drawing.SystemColors.Control; this.btnTransmissionLoss.Dock = System.Windows.Forms.DockStyle.Bottom; this.btnTransmissionLoss.Location = new System.Drawing.Point(0, 88); this.btnTransmissionLoss.Name = "btnTransmissionLoss"; this.btnTransmissionLoss.Size = new System.Drawing.Size(690, 24); this.btnTransmissionLoss.TabIndex = 2; this.btnTransmissionLoss.Text = "Transmission Loss"; this.btnTransmissionLoss.Click += new System.EventHandler(this.btnTransmissionLoss_Click); // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.Color.White; this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left; this.pictureBox1.Location = new System.Drawing.Point(0, 0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(10, 572); this.pictureBox1.TabIndex = 5; this.pictureBox1.TabStop = false; // // pictureBox2 // this.pictureBox2.BackColor = System.Drawing.Color.White; this.pictureBox2.Dock = System.Windows.Forms.DockStyle.Top; this.pictureBox2.Location = new System.Drawing.Point(10, 0); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(700, 10); this.pictureBox2.TabIndex = 6; this.pictureBox2.TabStop = false; // // pictureBox3 // this.pictureBox3.BackColor = System.Drawing.Color.White; this.pictureBox3.Dock = System.Windows.Forms.DockStyle.Bottom; this.pictureBox3.Location = new System.Drawing.Point(10, 562); this.pictureBox3.Name = "pictureBox3"; this.pictureBox3.Size = new System.Drawing.Size(700, 10); this.pictureBox3.TabIndex = 7; this.pictureBox3.TabStop = false; // // pictureBox4 // this.pictureBox4.BackColor = System.Drawing.Color.White; this.pictureBox4.Dock = System.Windows.Forms.DockStyle.Right; this.pictureBox4.Location = new System.Drawing.Point(700, 10); this.pictureBox4.Name = "pictureBox4"; this.pictureBox4.Size = new System.Drawing.Size(10, 552); this.pictureBox4.TabIndex = 8; this.pictureBox4.TabStop = false; // // panel1 // this.panel1.Controls.Add(this.pictureBox9); this.panel1.Controls.Add(this.btnRigidBacking); this.panel1.Controls.Add(this.pictureBox6); this.panel1.Controls.Add(this.btnAnechoicTermination); this.panel1.Controls.Add(this.pictureBox5); this.panel1.Controls.Add(this.btnTransmissionLoss); this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel1.Location = new System.Drawing.Point(10, 450); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(690, 112); this.panel1.TabIndex = 9; // // pictureBox6 // this.pictureBox6.Dock = System.Windows.Forms.DockStyle.Bottom; this.pictureBox6.Location = new System.Drawing.Point(0, 40); this.pictureBox6.Name = "pictureBox6"; this.pictureBox6.Size = new System.Drawing.Size(690, 12); this.pictureBox6.TabIndex = 5; this.pictureBox6.TabStop = false; // // pictureBox5 // this.pictureBox5.Dock = System.Windows.Forms.DockStyle.Bottom; this.pictureBox5.Location = new System.Drawing.Point(0, 76); this.pictureBox5.Name = "pictureBox5"; this.pictureBox5.Size = new System.Drawing.Size(690, 12); this.pictureBox5.TabIndex = 4; this.pictureBox5.TabStop = false; // // propertyGrid1 // this.propertyGrid1.CommandsBackColor = System.Drawing.Color.White; this.propertyGrid1.CommandsVisibleIfAvailable = true; this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Right; this.propertyGrid1.LargeButtons = false; this.propertyGrid1.LineColor = System.Drawing.SystemColors.ScrollBar; this.propertyGrid1.Location = new System.Drawing.Point(500, 10); this.propertyGrid1.Name = "propertyGrid1"; this.propertyGrid1.SelectedObject = this.plotter1; this.propertyGrid1.Size = new System.Drawing.Size(200, 440); this.propertyGrid1.TabIndex = 11; this.propertyGrid1.Text = "propertyGrid1"; this.propertyGrid1.ViewBackColor = System.Drawing.SystemColors.Window; this.propertyGrid1.ViewForeColor = System.Drawing.SystemColors.WindowText; this.propertyGrid1.Visible = false; this.propertyGrid1.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid1_PropertyValueChanged); // // plotter1 // this.plotter1.BorderBottom = 50; this.plotter1.BorderLeft = 50; this.plotter1.BorderRight = 30; this.plotter1.BorderTop = 30; this.plotter1.ColorAxis = System.Drawing.Color.Black; this.plotter1.ColorBg = System.Drawing.Color.White; this.plotter1.ColorDraw = System.Drawing.Color.DarkBlue; this.plotter1.ColorGrid = System.Drawing.Color.LightGray; this.plotter1.Dock = System.Windows.Forms.DockStyle.Fill; this.plotter1.DrawMode = DataPlotter.Plotter.DrawModeType.Line; this.plotter1.FontAxis = new System.Drawing.Font("Arial", 8F); this.plotter1.FontLabel = new System.Drawing.Font("굴림", 9F); this.plotter1.FontTitle = new System.Drawing.Font("굴림", 9F); this.plotter1.Interval = 0; this.plotter1.IsOctave = false; this.plotter1.Location = new System.Drawing.Point(10, 10); this.plotter1.MarkerSize = 4; this.plotter1.MarkerType = DataPlotter.Plotter.MarkerModeType.None; this.plotter1.Name = "plotter1"; this.plotter1.PenWidth = 1; this.plotter1.ShowGrid = true; this.plotter1.ShowLegend = false; this.plotter1.Size = new System.Drawing.Size(490, 417); this.plotter1.TabIndex = 14; this.plotter1.Title = "Plotter Example"; this.plotter1.TitleColor = System.Drawing.Color.Black; this.plotter1.XAxisMode = DataPlotter.Plotter.XAxisModeType.Linear; this.plotter1.XGrid = 10; this.plotter1.XLabel = "X Axis"; this.plotter1.XLabelColor = System.Drawing.Color.DarkBlue; this.plotter1.XRangeEnd = 100; this.plotter1.XRangeStart = 0; this.plotter1.YAxisMode = DataPlotter.Plotter.YAxisModeType.Linear; this.plotter1.YGrid = 10; this.plotter1.YLabel = "Y Axis"; this.plotter1.YLabelColor = System.Drawing.Color.DarkBlue; this.plotter1.YRangeEnd = 100; this.plotter1.YRangeStart = 0; this.plotter1.ZAxisMode = DataPlotter.Plotter.ZAxisModeType.Linear; this.plotter1.ZLabel = "Z Axis"; this.plotter1.ZLabelColor = System.Drawing.Color.DarkBlue; this.plotter1.ZRangeEnd = 100; this.plotter1.ZRangeStart = 0; // // btnGraphSave // this.btnGraphSave.BackColor = System.Drawing.SystemColors.Control; this.btnGraphSave.Dock = System.Windows.Forms.DockStyle.Left; this.btnGraphSave.Location = new System.Drawing.Point(0, 0); this.btnGraphSave.Name = "btnGraphSave"; this.btnGraphSave.Size = new System.Drawing.Size(160, 23); this.btnGraphSave.TabIndex = 12; this.btnGraphSave.Text = "Graph Save"; this.btnGraphSave.Click += new System.EventHandler(this.btnGraphSave_Click); // // panel2 // this.panel2.Controls.Add(this.btnGraphEdit); this.panel2.Controls.Add(this.pictureBox8); this.panel2.Controls.Add(this.btnGraphHide); this.panel2.Controls.Add(this.pictureBox7); this.panel2.Controls.Add(this.btnGraphSave); this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel2.Location = new System.Drawing.Point(10, 427); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(490, 23); this.panel2.TabIndex = 13; // // btnGraphEdit // this.btnGraphEdit.BackColor = System.Drawing.SystemColors.Control; this.btnGraphEdit.Dock = System.Windows.Forms.DockStyle.Fill; this.btnGraphEdit.Location = new System.Drawing.Point(170, 0); this.btnGraphEdit.Name = "btnGraphEdit"; this.btnGraphEdit.Size = new System.Drawing.Size(174, 23); this.btnGraphEdit.TabIndex = 14; this.btnGraphEdit.Text = "Graph Edit"; this.btnGraphEdit.Click += new System.EventHandler(this.btnGraphEdit_Click); // // pictureBox8 // this.pictureBox8.Dock = System.Windows.Forms.DockStyle.Right; this.pictureBox8.Location = new System.Drawing.Point(344, 0); this.pictureBox8.Name = "pictureBox8"; this.pictureBox8.Size = new System.Drawing.Size(10, 23); this.pictureBox8.TabIndex = 16; this.pictureBox8.TabStop = false; // // btnGraphHide // this.btnGraphHide.BackColor = System.Drawing.SystemColors.Control; this.btnGraphHide.Dock = System.Windows.Forms.DockStyle.Right; this.btnGraphHide.Enabled = false; this.btnGraphHide.Location = new System.Drawing.Point(354, 0); this.btnGraphHide.Name = "btnGraphHide"; this.btnGraphHide.Size = new System.Drawing.Size(136, 23); this.btnGraphHide.TabIndex = 15; this.btnGraphHide.Text = "Edit Cancel"; this.btnGraphHide.Click += new System.EventHandler(this.btnGraphHide_Click); // // pictureBox7 // this.pictureBox7.Dock = System.Windows.Forms.DockStyle.Left; this.pictureBox7.Location = new System.Drawing.Point(160, 0); this.pictureBox7.Name = "pictureBox7"; this.pictureBox7.Size = new System.Drawing.Size(10, 23); this.pictureBox7.TabIndex = 13; this.pictureBox7.TabStop = false; // // pictureBox9 // this.pictureBox9.Dock = System.Windows.Forms.DockStyle.Bottom; this.pictureBox9.Location = new System.Drawing.Point(0, 4); this.pictureBox9.Name = "pictureBox9"; this.pictureBox9.Size = new System.Drawing.Size(690, 12); this.pictureBox9.TabIndex = 6; this.pictureBox9.TabStop = false; // // ucMaterialPerformanceAnalysis // this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.plotter1); this.Controls.Add(this.panel2); this.Controls.Add(this.propertyGrid1); this.Controls.Add(this.panel1); this.Controls.Add(this.pictureBox4); this.Controls.Add(this.pictureBox3); this.Controls.Add(this.pictureBox2); this.Controls.Add(this.pictureBox1); this.Name = "ucMaterialPerformanceAnalysis"; this.Size = new System.Drawing.Size(710, 572); this.Load += new System.EventHandler(this.ucMaterialPerformanceAnalysis_Load); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmDensity)); this.label1 = new System.Windows.Forms.Label(); this.comboBoxInData = new System.Windows.Forms.ComboBox(); this.btnOpenSourceData = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxField = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.rdoKernel = new System.Windows.Forms.RadioButton(); this.rdoSimple = new System.Windows.Forms.RadioButton(); this.label4 = new System.Windows.Forms.Label(); this.txtSearchRadius = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.comboBoxAreaUnit = new System.Windows.Forms.ComboBox(); this.label6 = new System.Windows.Forms.Label(); this.txtCellSize = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.txtRasterPath = new System.Windows.Forms.TextBox(); this.btnSaveRaster = new System.Windows.Forms.Button(); this.btnGO = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(8, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(96, 16); this.label1.TabIndex = 0; this.label1.Text = "输入数据:"; // // comboBoxInData // this.comboBoxInData.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxInData.Location = new System.Drawing.Point(112, 6); this.comboBoxInData.Name = "comboBoxInData"; this.comboBoxInData.Size = new System.Drawing.Size(144, 20); this.comboBoxInData.TabIndex = 1; this.comboBoxInData.SelectedIndexChanged += new System.EventHandler(this.comboBoxInData_SelectedIndexChanged); // // btnOpenSourceData // this.btnOpenSourceData.Image = ((System.Drawing.Image)(resources.GetObject("btnOpenSourceData.Image"))); this.btnOpenSourceData.Location = new System.Drawing.Point(272, 4); this.btnOpenSourceData.Name = "btnOpenSourceData"; this.btnOpenSourceData.Size = new System.Drawing.Size(24, 24); this.btnOpenSourceData.TabIndex = 2; this.btnOpenSourceData.Click += new System.EventHandler(this.btnOpenSourceData_Click); // // label2 // this.label2.Location = new System.Drawing.Point(8, 40); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(96, 16); this.label2.TabIndex = 3; this.label2.Text = "人口字段:"; // // comboBoxField // this.comboBoxField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxField.Location = new System.Drawing.Point(112, 38); this.comboBoxField.Name = "comboBoxField"; this.comboBoxField.Size = new System.Drawing.Size(144, 20); this.comboBoxField.TabIndex = 4; // // label3 // this.label3.Location = new System.Drawing.Point(8, 72); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(96, 16); this.label3.TabIndex = 5; this.label3.Text = "密度计算类型:"; // // rdoKernel // this.rdoKernel.Checked = true; this.rdoKernel.Location = new System.Drawing.Point(112, 72); this.rdoKernel.Name = "rdoKernel"; this.rdoKernel.Size = new System.Drawing.Size(72, 16); this.rdoKernel.TabIndex = 6; this.rdoKernel.TabStop = true; this.rdoKernel.Text = "Kernel"; // // rdoSimple // this.rdoSimple.Location = new System.Drawing.Point(192, 72); this.rdoSimple.Name = "rdoSimple"; this.rdoSimple.Size = new System.Drawing.Size(88, 16); this.rdoSimple.TabIndex = 7; this.rdoSimple.Text = "Simple"; // // label4 // this.label4.Location = new System.Drawing.Point(8, 104); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(96, 16); this.label4.TabIndex = 8; this.label4.Text = "搜索半径"; // // txtSearchRadius // this.txtSearchRadius.Location = new System.Drawing.Point(112, 102); this.txtSearchRadius.Name = "txtSearchRadius"; this.txtSearchRadius.Size = new System.Drawing.Size(144, 21); this.txtSearchRadius.TabIndex = 9; this.txtSearchRadius.Text = ""; // // label5 // this.label5.Location = new System.Drawing.Point(8, 136); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(96, 16); this.label5.TabIndex = 10; this.label5.Text = "面积单位:"; // // comboBoxAreaUnit // this.comboBoxAreaUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxAreaUnit.Location = new System.Drawing.Point(112, 134); this.comboBoxAreaUnit.Name = "comboBoxAreaUnit"; this.comboBoxAreaUnit.Size = new System.Drawing.Size(144, 20); this.comboBoxAreaUnit.TabIndex = 11; // // label6 // this.label6.Location = new System.Drawing.Point(8, 168); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(96, 16); this.label6.TabIndex = 12; this.label6.Text = "输出象素大小:"; // // txtCellSize // this.txtCellSize.Location = new System.Drawing.Point(112, 166); this.txtCellSize.Name = "txtCellSize"; this.txtCellSize.Size = new System.Drawing.Size(144, 21); this.txtCellSize.TabIndex = 13; this.txtCellSize.Text = ""; // // label7 // this.label7.Location = new System.Drawing.Point(8, 200); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(96, 16); this.label7.TabIndex = 14; this.label7.Text = "输出栅格位置:"; // // txtRasterPath // this.txtRasterPath.Location = new System.Drawing.Point(112, 198); this.txtRasterPath.Name = "txtRasterPath"; this.txtRasterPath.Size = new System.Drawing.Size(144, 21); this.txtRasterPath.TabIndex = 15; this.txtRasterPath.Text = ""; // // btnSaveRaster // this.btnSaveRaster.Image = ((System.Drawing.Image)(resources.GetObject("btnSaveRaster.Image"))); this.btnSaveRaster.Location = new System.Drawing.Point(272, 196); this.btnSaveRaster.Name = "btnSaveRaster"; this.btnSaveRaster.Size = new System.Drawing.Size(24, 24); this.btnSaveRaster.TabIndex = 16; this.btnSaveRaster.Click += new System.EventHandler(this.btnSaveRaster_Click); // // btnGO // this.btnGO.Location = new System.Drawing.Point(88, 240); this.btnGO.Name = "btnGO"; this.btnGO.Size = new System.Drawing.Size(88, 24); this.btnGO.TabIndex = 17; this.btnGO.Text = "GO!"; this.btnGO.Click += new System.EventHandler(this.btnGO_Click); // // btnCancel // this.btnCancel.Location = new System.Drawing.Point(200, 240); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(88, 24); this.btnCancel.TabIndex = 18; this.btnCancel.Text = "Destroy"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // frmDensity // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(312, 278); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnGO); this.Controls.Add(this.btnSaveRaster); this.Controls.Add(this.txtRasterPath); this.Controls.Add(this.label7); this.Controls.Add(this.txtCellSize); this.Controls.Add(this.label6); this.Controls.Add(this.comboBoxAreaUnit); this.Controls.Add(this.label5); this.Controls.Add(this.txtSearchRadius); this.Controls.Add(this.label4); this.Controls.Add(this.rdoSimple); this.Controls.Add(this.rdoKernel); this.Controls.Add(this.label3); this.Controls.Add(this.comboBoxField); this.Controls.Add(this.label2); this.Controls.Add(this.btnOpenSourceData); this.Controls.Add(this.comboBoxInData); this.Controls.Add(this.label1); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "frmDensity"; this.Text = "栅格密度计算"; this.Load += new System.EventHandler(this.frmDensity_Load); this.ResumeLayout(false); }
private void saveButton_Click(object sender, EventArgs e) { Canguro.Model.UnitSystem.UnitSystemsManager.Instance.Enabled = false; string path = ""; string currentPath = model.CurrentPath; System.Windows.Forms.SaveFileDialog dlg = new System.Windows.Forms.SaveFileDialog(); dlg.Filter = "Treu Structure Sections (*.xsec)|*.xsec"; dlg.DefaultExt = "xsec"; dlg.AddExtension = true; dlg.FileName = currentPath; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { path = dlg.FileName; } try { if (path.Length > 0) { System.Xml.XmlTextWriter xml = new System.Xml.XmlTextWriter(path, System.Text.ASCIIEncoding.ASCII); xml.WriteStartDocument(); xml.WriteStartElement("Sections"); xml.WriteStartElement("Frame_Section_Properties_01_-_General"); foreach (Section sec in model.Sections) { if (sec is FrameSection) { Canguro.Model.Serializer.Serializer.writeFrameSection(xml, (FrameSection)sec); } } xml.WriteEndElement(); xml.WriteStartElement("Frame_Section_Properties_03_-_Concrete_Beam"); foreach (Section sec in model.Sections) { if (sec is FrameSection && ((FrameSection)sec).ConcreteProperties is ConcreteBeamSectionProps) { Canguro.Model.Serializer.Serializer.writeConcreteBeamAssigments(xml, (FrameSection)sec); } } xml.WriteEndElement(); xml.WriteStartElement("Frame_Section_Properties_02_-_Concrete_Column"); foreach (Section sec in model.Sections) { if (sec is FrameSection && ((FrameSection)sec).ConcreteProperties is ConcreteColumnSectionProps) { Canguro.Model.Serializer.Serializer.writeConcreteColumnSectionProps(xml, (FrameSection)sec); } } xml.WriteEndElement(); xml.WriteEndElement(); xml.Close(); } } finally { Canguro.Model.UnitSystem.UnitSystemsManager.Instance.Enabled = true; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.popUpMenu = new System.Windows.Forms.ContextMenu(); this.printMenuItem = new System.Windows.Forms.MenuItem(); this.searchMenuItem = new System.Windows.Forms.MenuItem(); this.deleteMenuItem = new System.Windows.Forms.MenuItem(); this.saveMenuItem = new System.Windows.Forms.MenuItem(); this.pasteMenuItem = new System.Windows.Forms.MenuItem(); this.copyMenuItem = new System.Windows.Forms.MenuItem(); this.editMenuItem = new System.Windows.Forms.MenuItem(); this.printDialog1 = new System.Windows.Forms.PrintDialog(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.SuspendLayout(); // // popUpMenu // this.popUpMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.printMenuItem, this.searchMenuItem, this.deleteMenuItem, this.saveMenuItem, this.pasteMenuItem, this.copyMenuItem, this.editMenuItem }); // // printMenuItem // this.printMenuItem.Index = 0; this.printMenuItem.Text = "&Print"; // // searchMenuItem // this.searchMenuItem.Index = 1; this.searchMenuItem.Text = "&Search"; // // deleteMenuItem // this.deleteMenuItem.Index = 2; this.deleteMenuItem.Text = "&Delete"; // // saveMenuItem // this.saveMenuItem.Index = 3; this.saveMenuItem.Text = "S&ave As..."; // // pasteMenuItem // this.pasteMenuItem.Index = 4; this.pasteMenuItem.Text = "Past&e"; // // copyMenuItem // this.copyMenuItem.Index = 5; this.copyMenuItem.Text = "&Copy"; // // editMenuItem // this.editMenuItem.Index = 6; this.editMenuItem.Text = "Ed&it"; // // saveFileDialog1 // this.saveFileDialog1.Filter = "XML-Files|*.xml"; // // XmlTreeView // this.BackColor = System.Drawing.Color.White; this.Name = "XmlTreeView"; this.Size = new System.Drawing.Size(232, 321); this.ResumeLayout(false); }
private void OnSaveBtnClicked() { lockHUD = true; string __savePath = ""; Action __saveAction = () => { //SAVE STREAM try { using (Stream __stream = File.Create(__savePath)) { Map.SaveDummy __dummy = new Map.SaveDummy(); __dummy.loadedTiles = new List <Tile>(); __dummy.tileGroups = _groups; _loadedTiles.ForEach(x => __dummy.loadedTiles.Add(x.GetTileForSerialization())); __dummy.map = new Dictionary <Map.SaveDummy.DummyVector, int>(); _tilesOnScene.ForEach(x => __dummy.map.Add(new Map.SaveDummy.DummyVector(x.transform.position), x.tile.id)); new BinaryFormatter().Serialize(__stream, __dummy); } lockHUD = false; onHUDLocked = null; ShowMessage("Saved."); } catch (Exception e) { lockHUD = false; onHUDLocked = null; ShowMessage("Failed.\n" + e.Message); } }; if (_useDialog) { System.Windows.Forms.SaveFileDialog __saveDialog = new System.Windows.Forms.SaveFileDialog(); __saveDialog.Title = "Select where to save the map"; __saveDialog.Filter = "bytes|*.bytes"; if (__saveDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { __savePath = __saveDialog.FileName; __saveAction(); } } else { onHUDLocked = null; onHUDLocked += () => { //DRAW WINDOW Rect __saveWindowRect = new Rect((Screen.width * 0.5f) - 200, (Screen.height * 0.5f) - 50, 400, 115); GUI.BeginGroup(__saveWindowRect); { GUI.Box(new Rect(0, 0, __saveWindowRect.width, __saveWindowRect.height), ""); //SELECT PATH Rect __selectSavePathRect = new Rect(15, 10, 750, 60); GUI.BeginGroup(__selectSavePathRect); { GUI.Label(new Rect(0, 0, 400, 30), "Enter save file name: "); __savePath = GUI.TextField(new Rect(0, 30, 310, 25), __savePath); //SELECT BTN if (GUI.Button(new Rect(315, 30, 50, 25), "Select")) { if (__savePath.ToLower().EndsWith(".bytes") == false) { __savePath = __savePath + ".bytes"; } __saveAction(); onHUDLocked = null; lockHUD = false; } } GUI.EndGroup(); //CANCEL BTN if (GUI.Button(new Rect((__saveWindowRect.width * 0.5f) - 40, (__saveWindowRect.height) - 35, 80, 25), "Cancel")) { onHUDLocked = null; lockHUD = false; } } GUI.EndGroup(); }; } }
/// <summary> /// 檢視套印樣板 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lnkViewTemplate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { // 當沒有設定檔 if (_Configure == null) { return; } lnkViewTemplate.Enabled = false; #region 儲存檔案 string reportName = "學生第6學期修課紀錄樣板"; string path = Path.Combine(System.Windows.Forms.Application.StartupPath, "Reports"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } path = Path.Combine(path, reportName + ".docx"); if (File.Exists(path)) { int i = 1; while (true) { string newPath = Path.GetDirectoryName(path) + "\\" + Path.GetFileNameWithoutExtension(path) + (i++) + Path.GetExtension(path); if (!File.Exists(newPath)) { path = newPath; break; } } } try { if (_Configure.Template == null) { _Configure.Template = new Document(new MemoryStream(Properties.Resources.DefaultTemplate)); } _Configure.Template.Save(path, Aspose.Words.SaveFormat.Docx); System.Diagnostics.Process.Start(path); } catch { System.Windows.Forms.SaveFileDialog sd = new System.Windows.Forms.SaveFileDialog(); sd.Title = "另存新檔"; sd.FileName = reportName + ".docx"; sd.Filter = "Word檔案 (*.docx)|*.docx|所有檔案 (*.*)|*.*"; if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { _Configure.Template.Save(path, Aspose.Words.SaveFormat.Docx); } catch { FISCA.Presentation.Controls.MsgBox.Show("指定路徑無法存取。", "建立檔案失敗", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); return; } } } lnkViewTemplate.Enabled = true; #endregion }
/// /// Use the following static methods to create instances of SaveFileDialog. /// By default, JFileChooser is converted as an OpenFileDialog, the following methods /// are provided to create file dialogs to save files. /// /// <summary> /// Creates a SaveFileDialog. /// </summary> /// <returns>A new instance of SaveFileDialog.</returns> public static System.Windows.Forms.SaveFileDialog CreateSaveFileDialog() { System.Windows.Forms.SaveFileDialog temp_fileDialog = new System.Windows.Forms.SaveFileDialog(); temp_fileDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); return(temp_fileDialog); }
/// <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(); this.summaryLabel = new System.Windows.Forms.Label(); this.versionTextBox = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.manufacturerTextBox = new System.Windows.Forms.TextBox(); this.iconButton = new System.Windows.Forms.Button(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.descriptionTextBox = new System.Windows.Forms.TextBox(); this.applicationNameTextBox = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.pickIconDialog1 = new Microsoft.Tools.WindowsInstallerXml.ClickThrough.PickIconDialog(); this.header1 = new Microsoft.Tools.WindowsInstallerXml.ClickThrough.Header(); this.updateFeedTextBox = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.applicationNameErrorProvider = new System.Windows.Forms.ErrorProvider(this.components); this.manufacturerErrorProvider = new System.Windows.Forms.ErrorProvider(this.components); this.versionErrorProvider = new System.Windows.Forms.ErrorProvider(this.components); this.updateFeedErrorProvider = new System.Windows.Forms.ErrorProvider(this.components); this.buildButton = new System.Windows.Forms.Button(); this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.downloadButton = new System.Windows.Forms.Button(); this.previousPackageTextBox = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.browseButton = new System.Windows.Forms.Button(); this.previousPackageErrorProvider = new System.Windows.Forms.ErrorProvider(this.components); this.previousPackageFileDialog = new System.Windows.Forms.OpenFileDialog(); ((System.ComponentModel.ISupportInitialize)(this.applicationNameErrorProvider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.manufacturerErrorProvider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.versionErrorProvider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.updateFeedErrorProvider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.previousPackageErrorProvider)).BeginInit(); this.SuspendLayout(); // // summaryLabel // this.summaryLabel.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.summaryLabel.Location = new System.Drawing.Point(16, 24); this.summaryLabel.Name = "summaryLabel"; this.summaryLabel.Size = new System.Drawing.Size(224, 296); this.summaryLabel.TabIndex = 0; // // versionTextBox // this.versionTextBox.Location = new System.Drawing.Point(104, 121); this.versionTextBox.Name = "versionTextBox"; this.versionTextBox.Size = new System.Drawing.Size(115, 20); this.versionTextBox.TabIndex = 7; this.versionTextBox.Text = "1.0.0.0"; this.versionTextBox.TextChanged += new System.EventHandler(this.VersionTextBoxTextChanged); // // label7 // this.label7.Location = new System.Drawing.Point(52, 121); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(48, 23); this.label7.TabIndex = 4; this.label7.Text = "&Version:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label6 // this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label6.Location = new System.Drawing.Point(337, 89); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(80, 23); this.label6.TabIndex = 2; this.label6.Text = "&Manufacturer:"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // manufacturerTextBox // this.manufacturerTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.manufacturerTextBox.Location = new System.Drawing.Point(421, 89); this.manufacturerTextBox.Name = "manufacturerTextBox"; this.manufacturerTextBox.Size = new System.Drawing.Size(104, 20); this.manufacturerTextBox.TabIndex = 3; this.manufacturerTextBox.TextChanged += new System.EventHandler(this.CompanyNameTextBoxTextChanged); // // iconButton // this.iconButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this.iconButton.Location = new System.Drawing.Point(400, 121); this.iconButton.Name = "iconButton"; this.iconButton.Size = new System.Drawing.Size(77, 27); this.iconButton.TabIndex = 9; this.iconButton.Text = "&Change..."; this.iconButton.Click += new System.EventHandler(this.IconButton_Click); // // label5 // this.label5.Location = new System.Drawing.Point(240, 121); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(97, 23); this.label5.TabIndex = 8; this.label5.Text = "Add/Remove &Icon:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label4 // this.label4.Location = new System.Drawing.Point(36, 153); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(64, 23); this.label4.TabIndex = 10; this.label4.Text = "&Description:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // descriptionTextBox // this.descriptionTextBox.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.descriptionTextBox.Location = new System.Drawing.Point(104, 161); this.descriptionTextBox.Multiline = true; this.descriptionTextBox.Name = "descriptionTextBox"; this.descriptionTextBox.Size = new System.Drawing.Size(421, 87); this.descriptionTextBox.TabIndex = 11; this.descriptionTextBox.TextChanged += new System.EventHandler(this.DescriptionTextBoxTextChanged); // // applicationNameTextBox // this.applicationNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.applicationNameTextBox.Location = new System.Drawing.Point(104, 89); this.applicationNameTextBox.Name = "applicationNameTextBox"; this.applicationNameTextBox.Size = new System.Drawing.Size(223, 20); this.applicationNameTextBox.TabIndex = 1; this.applicationNameTextBox.TextChanged += new System.EventHandler(this.ProductNameTextBoxTextChanged); // // label1 // this.label1.Location = new System.Drawing.Point(4, 89); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(96, 23); this.label1.TabIndex = 0; this.label1.Text = "Application &Name:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // pickIconDialog1 // this.pickIconDialog1.IconFile = null; this.pickIconDialog1.IconIndex = -1; // // header1 // this.header1.Dock = System.Windows.Forms.DockStyle.Top; this.header1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.header1.Index = 0; this.header1.Location = new System.Drawing.Point(0, 0); this.header1.Name = "header1"; this.header1.Size = new System.Drawing.Size(540, 88); this.header1.TabIndex = 17; // // updateFeedTextBox // this.updateFeedTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.updateFeedTextBox.Location = new System.Drawing.Point(104, 264); this.updateFeedTextBox.Name = "updateFeedTextBox"; this.updateFeedTextBox.Size = new System.Drawing.Size(421, 20); this.updateFeedTextBox.TabIndex = 13; // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label2.Location = new System.Drawing.Point(27, 264); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(73, 18); this.label2.TabIndex = 12; this.label2.Text = "&Update Feed:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // applicationNameErrorProvider // this.applicationNameErrorProvider.ContainerControl = this; // // manufacturerErrorProvider // this.manufacturerErrorProvider.ContainerControl = this; // // versionErrorProvider // this.versionErrorProvider.ContainerControl = this; // // updateFeedErrorProvider // this.updateFeedErrorProvider.ContainerControl = this; // // buildButton // this.buildButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buildButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buildButton.Location = new System.Drawing.Point(437, 292); this.buildButton.Name = "buildButton"; this.buildButton.Size = new System.Drawing.Size(88, 54); this.buildButton.TabIndex = 0; this.buildButton.Text = "&Build..."; this.buildButton.Click += new System.EventHandler(this.buildButton_Click); // // saveFileDialog // this.saveFileDialog.DefaultExt = "exe"; this.saveFileDialog.FileName = "setup.exe"; this.saveFileDialog.Filter = "Setup Bootstrap Executable (*.exe)|*.exe"; // // downloadButton // this.downloadButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.downloadButton.Enabled = false; this.downloadButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this.downloadButton.Location = new System.Drawing.Point(212, 323); this.downloadButton.Name = "downloadButton"; this.downloadButton.Size = new System.Drawing.Size(136, 24); this.downloadButton.TabIndex = 16; this.downloadButton.Text = "D&ownload from Feed..."; // // previousPackageTextBox // this.previousPackageTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.previousPackageTextBox.Location = new System.Drawing.Point(104, 296); this.previousPackageTextBox.Name = "previousPackageTextBox"; this.previousPackageTextBox.ReadOnly = true; this.previousPackageTextBox.Size = new System.Drawing.Size(325, 20); this.previousPackageTextBox.TabIndex = 15; // // label3 // this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label3.Enabled = false; this.label3.Location = new System.Drawing.Point(1, 298); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(99, 19); this.label3.TabIndex = 14; this.label3.Text = "Previous Package:"; // // browseButton // this.browseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.browseButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this.browseButton.Location = new System.Drawing.Point(356, 323); this.browseButton.Name = "browseButton"; this.browseButton.Size = new System.Drawing.Size(73, 23); this.browseButton.TabIndex = 17; this.browseButton.Text = "B&rowse..."; this.browseButton.Click += new System.EventHandler(this.browseButton_Click); // // previousPackageErrorProvider // this.previousPackageErrorProvider.ContainerControl = this; // // SummaryControl // this.Controls.Add(this.browseButton); this.Controls.Add(this.previousPackageTextBox); this.Controls.Add(this.downloadButton); this.Controls.Add(this.buildButton); this.Controls.Add(this.updateFeedTextBox); this.Controls.Add(this.label2); this.Controls.Add(this.header1); this.Controls.Add(this.versionTextBox); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.manufacturerTextBox); this.Controls.Add(this.iconButton); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.descriptionTextBox); this.Controls.Add(this.applicationNameTextBox); this.Controls.Add(this.label1); this.Controls.Add(this.label3); this.Name = "SummaryControl"; this.Size = new System.Drawing.Size(540, 360); this.Validated += new System.EventHandler(this.SummaryControl_Validated); this.Validating += new System.ComponentModel.CancelEventHandler(this.SummaryControl_Validating); ((System.ComponentModel.ISupportInitialize)(this.applicationNameErrorProvider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.manufacturerErrorProvider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.versionErrorProvider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.updateFeedErrorProvider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.previousPackageErrorProvider)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Creates an SaveFileDialog open in a given path. /// </summary> /// <param name="path">Path to be opened by the SaveFileDialog.</param> /// <param name="directory">Directory to get the path from.</param> /// <returns>A new instance of SaveFileDialog.</returns> public static System.Windows.Forms.SaveFileDialog CreateSaveFileDialog(System.String path, System.IO.DirectoryInfo directory) { System.Windows.Forms.SaveFileDialog temp_fileDialog = new System.Windows.Forms.SaveFileDialog(); temp_fileDialog.InitialDirectory = path; return(temp_fileDialog); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.BtnSave = new System.Windows.Forms.Button(); this.BtnClear = new System.Windows.Forms.Button(); this.SaveFileDlg = new System.Windows.Forms.SaveFileDialog(); this.CheckScroll = new System.Windows.Forms.CheckBox(); this.OutputView = new System.Windows.Forms.ListView(); this.Col1 = new System.Windows.Forms.ColumnHeader(); this.Col2 = new System.Windows.Forms.ColumnHeader(); this.Col3 = new System.Windows.Forms.ColumnHeader(); this.CheckTop = new System.Windows.Forms.CheckBox(); this.panel2 = new System.Windows.Forms.Panel(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // BtnSave // this.BtnSave.Location = new System.Drawing.Point(8, 16); this.BtnSave.Name = "BtnSave"; this.BtnSave.Size = new System.Drawing.Size(64, 24); this.BtnSave.TabIndex = 8; this.BtnSave.Text = "Save"; this.BtnSave.Click += new System.EventHandler(this.BtnSave_Click); // // BtnClear // this.BtnClear.Location = new System.Drawing.Point(80, 16); this.BtnClear.Name = "BtnClear"; this.BtnClear.Size = new System.Drawing.Size(64, 24); this.BtnClear.TabIndex = 8; this.BtnClear.Text = "Clear"; this.BtnClear.Click += new System.EventHandler(this.BtnClear_Click); // // CheckScroll // this.CheckScroll.Checked = true; this.CheckScroll.CheckState = System.Windows.Forms.CheckState.Checked; this.CheckScroll.Location = new System.Drawing.Point(152, 16); this.CheckScroll.Name = "CheckScroll"; this.CheckScroll.Size = new System.Drawing.Size(80, 16); this.CheckScroll.TabIndex = 8; this.CheckScroll.Text = "autoscroll"; this.CheckScroll.CheckedChanged += new System.EventHandler(this.CheckScroll_CheckedChanged); // // OutputView // this.OutputView.AutoArrange = false; this.OutputView.BackColor = System.Drawing.Color.MediumAquamarine; this.OutputView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.Col1, this.Col2, this.Col3 }); this.OutputView.Dock = System.Windows.Forms.DockStyle.Fill; this.OutputView.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.OutputView.ForeColor = System.Drawing.Color.Black; this.OutputView.Name = "OutputView"; this.OutputView.Size = new System.Drawing.Size(400, 200); this.OutputView.TabIndex = 7; this.OutputView.View = System.Windows.Forms.View.Details; // // Col1 // this.Col1.Text = "#"; this.Col1.Width = 30; // // Col2 // this.Col2.Text = "Time"; this.Col2.Width = 70; // // Col3 // this.Col3.Text = "Message"; this.Col3.Width = 1000; // // CheckTop // this.CheckTop.Location = new System.Drawing.Point(240, 16); this.CheckTop.Name = "CheckTop"; this.CheckTop.Size = new System.Drawing.Size(96, 16); this.CheckTop.TabIndex = 8; this.CheckTop.Text = "always on top"; this.CheckTop.CheckedChanged += new System.EventHandler(this.CheckTop_CheckedChanged); // // panel2 // this.panel2.Controls.AddRange(new System.Windows.Forms.Control[] { this.BtnSave, this.BtnClear, this.CheckScroll, this.CheckTop }); this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel2.Location = new System.Drawing.Point(0, 200); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(400, 48); this.panel2.TabIndex = 8; // // DebugConsoleWrapper // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(400, 248); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.OutputView, this.panel2 }); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.MinimumSize = new System.Drawing.Size(390, 160); this.Name = "DebugConsoleWrapper"; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.Text = "Debug Console"; this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormConvertData)); this.richTextBox = new System.Windows.Forms.RichTextBox(); this.buttonToBase64 = new System.Windows.Forms.Button(); this.buttonToHex = new System.Windows.Forms.Button(); this.buttonToPem = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.comboBoxFormat = new System.Windows.Forms.ComboBox(); this.imageListToolBar = new System.Windows.Forms.ImageList(this.components); this.mainMenu = new System.Windows.Forms.MainMenu(this.components); this.menuItemFile = new System.Windows.Forms.MenuItem(); this.menuItemOpen = new System.Windows.Forms.MenuItem(); this.menuItemSaveAs = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItemExit = new System.Windows.Forms.MenuItem(); this.menuItemEdit = new System.Windows.Forms.MenuItem(); this.menuItemCopy = new System.Windows.Forms.MenuItem(); this.menuItemPaste = new System.Windows.Forms.MenuItem(); this.menuItemCut = new System.Windows.Forms.MenuItem(); this.menuItemUndo = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItemCopyTextToClipboard = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItemClear = new System.Windows.Forms.MenuItem(); this.menuItemHelp = new System.Windows.Forms.MenuItem(); this.menuItemAbout = new System.Windows.Forms.MenuItem(); this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); this.toolBar = new System.Windows.Forms.ToolBar(); this.toolBarButtonOpen = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonSaveAs = new System.Windows.Forms.ToolBarButton(); this.toolBarButton4 = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonCopyText = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonPaste = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonCut = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonUndo = new System.Windows.Forms.ToolBarButton(); this.statusBar = new System.Windows.Forms.StatusBar(); this.statusBarPanelFileName = new System.Windows.Forms.StatusBarPanel(); this.statusBarPanelFileSize = new System.Windows.Forms.StatusBarPanel(); this.statusBarPanelLines = new System.Windows.Forms.StatusBarPanel(); this.statusBarPanelCurrentLine = new System.Windows.Forms.StatusBarPanel(); this.statusBarPanelCurrentColumn = new System.Windows.Forms.StatusBarPanel(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelFileName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelFileSize)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelLines)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelCurrentLine)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelCurrentColumn)).BeginInit(); this.SuspendLayout(); // // richTextBox // this.richTextBox.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.richTextBox.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.richTextBox.Location = new System.Drawing.Point(4, 74); this.richTextBox.Name = "richTextBox"; this.richTextBox.Size = new System.Drawing.Size(512, 332); this.richTextBox.TabIndex = 1; this.richTextBox.Text = "richTextBox"; this.richTextBox.WordWrap = false; this.richTextBox.SelectionChanged += new System.EventHandler(this.richTextBox_SelectionChanged); // // buttonToBase64 // this.buttonToBase64.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonToBase64.Location = new System.Drawing.Point(526, 123); this.buttonToBase64.Name = "buttonToBase64"; this.buttonToBase64.Size = new System.Drawing.Size(100, 29); this.buttonToBase64.TabIndex = 3; this.buttonToBase64.Text = "To &BASE64"; this.buttonToBase64.Click += new System.EventHandler(this.buttonToBase64_Click); // // buttonToHex // this.buttonToHex.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonToHex.Location = new System.Drawing.Point(526, 81); this.buttonToHex.Name = "buttonToHex"; this.buttonToHex.Size = new System.Drawing.Size(100, 29); this.buttonToHex.TabIndex = 4; this.buttonToHex.Text = "To &HEX"; this.buttonToHex.Click += new System.EventHandler(this.buttonToHex_Click); // // buttonToPem // this.buttonToPem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonToPem.Location = new System.Drawing.Point(526, 39); this.buttonToPem.Name = "buttonToPem"; this.buttonToPem.Size = new System.Drawing.Size(100, 29); this.buttonToPem.TabIndex = 5; this.buttonToPem.Text = "To &PEM"; this.buttonToPem.Click += new System.EventHandler(this.buttonToPem_Click); // // label1 // this.label1.Location = new System.Drawing.Point(7, 42); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(141, 19); this.label1.TabIndex = 7; this.label1.Text = "Current Data Format:"; // // saveFileDialog // this.saveFileDialog.Filter = "Text File (*.PEM; *.txt)|*.PEM;*.txt|Binary File (*.der;*.cer;*.bin;*.pfx)|*.der;" + "*.cer;*.bin;*.pfx|All (*.*)|*.*"; // // comboBoxFormat // this.comboBoxFormat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.comboBoxFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxFormat.Items.AddRange(new object[] { "PEM", "HEX", "BASE64" }); this.comboBoxFormat.Location = new System.Drawing.Point(155, 39); this.comboBoxFormat.Name = "comboBoxFormat"; this.comboBoxFormat.Size = new System.Drawing.Size(360, 20); this.comboBoxFormat.TabIndex = 10; this.comboBoxFormat.SelectedIndexChanged += new System.EventHandler(this.comboBoxFormat_SelectedIndexChanged); // // imageListToolBar // this.imageListToolBar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListToolBar.ImageStream"))); this.imageListToolBar.TransparentColor = System.Drawing.Color.Transparent; this.imageListToolBar.Images.SetKeyName(0, ""); this.imageListToolBar.Images.SetKeyName(1, ""); this.imageListToolBar.Images.SetKeyName(2, ""); this.imageListToolBar.Images.SetKeyName(3, ""); this.imageListToolBar.Images.SetKeyName(4, ""); this.imageListToolBar.Images.SetKeyName(5, ""); this.imageListToolBar.Images.SetKeyName(6, ""); this.imageListToolBar.Images.SetKeyName(7, ""); this.imageListToolBar.Images.SetKeyName(8, ""); this.imageListToolBar.Images.SetKeyName(9, ""); this.imageListToolBar.Images.SetKeyName(10, ""); this.imageListToolBar.Images.SetKeyName(11, ""); this.imageListToolBar.Images.SetKeyName(12, ""); this.imageListToolBar.Images.SetKeyName(13, ""); this.imageListToolBar.Images.SetKeyName(14, ""); this.imageListToolBar.Images.SetKeyName(15, ""); this.imageListToolBar.Images.SetKeyName(16, ""); this.imageListToolBar.Images.SetKeyName(17, ""); this.imageListToolBar.Images.SetKeyName(18, ""); this.imageListToolBar.Images.SetKeyName(19, ""); this.imageListToolBar.Images.SetKeyName(20, ""); this.imageListToolBar.Images.SetKeyName(21, ""); this.imageListToolBar.Images.SetKeyName(22, ""); this.imageListToolBar.Images.SetKeyName(23, ""); this.imageListToolBar.Images.SetKeyName(24, ""); this.imageListToolBar.Images.SetKeyName(25, ""); this.imageListToolBar.Images.SetKeyName(26, ""); this.imageListToolBar.Images.SetKeyName(27, ""); this.imageListToolBar.Images.SetKeyName(28, ""); this.imageListToolBar.Images.SetKeyName(29, ""); this.imageListToolBar.Images.SetKeyName(30, ""); this.imageListToolBar.Images.SetKeyName(31, ""); this.imageListToolBar.Images.SetKeyName(32, ""); this.imageListToolBar.Images.SetKeyName(33, ""); // // mainMenu // this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemFile, this.menuItemEdit, this.menuItemHelp }); // // menuItemFile // this.menuItemFile.Index = 0; this.menuItemFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemOpen, this.menuItemSaveAs, this.menuItem4, this.menuItemExit }); this.menuItemFile.Text = "&File"; // // menuItemOpen // this.menuItemOpen.Index = 0; this.menuItemOpen.Text = "&Open"; this.menuItemOpen.Click += new System.EventHandler(this.menuItemOpen_Click); // // menuItemSaveAs // this.menuItemSaveAs.Index = 1; this.menuItemSaveAs.Text = "Save &as ..."; this.menuItemSaveAs.Click += new System.EventHandler(this.buttonSave_Click); // // menuItem4 // this.menuItem4.Index = 2; this.menuItem4.Text = "-"; // // menuItemExit // this.menuItemExit.Index = 3; this.menuItemExit.Text = "E&xit"; this.menuItemExit.Click += new System.EventHandler(this.buttonClose_Click); // // menuItemEdit // this.menuItemEdit.Index = 1; this.menuItemEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemCopy, this.menuItemPaste, this.menuItemCut, this.menuItemUndo, this.menuItem3, this.menuItemCopyTextToClipboard, this.menuItem2, this.menuItemClear }); this.menuItemEdit.Text = "&Edit"; // // menuItemCopy // this.menuItemCopy.Index = 0; this.menuItemCopy.Text = "&Copy"; this.menuItemCopy.Click += new System.EventHandler(this.menuItemCopy_Click); // // menuItemPaste // this.menuItemPaste.Index = 1; this.menuItemPaste.Text = "Paste"; this.menuItemPaste.Click += new System.EventHandler(this.menuItemPaste_Click); // // menuItemCut // this.menuItemCut.Index = 2; this.menuItemCut.Text = "C&ut"; this.menuItemCut.Click += new System.EventHandler(this.menuItemCut_Click); // // menuItemUndo // this.menuItemUndo.Index = 3; this.menuItemUndo.Text = "&Undo"; this.menuItemUndo.Visible = false; this.menuItemUndo.Click += new System.EventHandler(this.menuItemUndo_Click); // // menuItem3 // this.menuItem3.Index = 4; this.menuItem3.Text = "-"; // // menuItemCopyTextToClipboard // this.menuItemCopyTextToClipboard.Index = 5; this.menuItemCopyTextToClipboard.Text = "Copy &all text"; this.menuItemCopyTextToClipboard.Click += new System.EventHandler(this.buttonCopy_Click); // // menuItem2 // this.menuItem2.Index = 6; this.menuItem2.Text = "-"; // // menuItemClear // this.menuItemClear.Index = 7; this.menuItemClear.Text = "Clea&r"; this.menuItemClear.Click += new System.EventHandler(this.menuItemClear_Click); // // menuItemHelp // this.menuItemHelp.Index = 2; this.menuItemHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemAbout }); this.menuItemHelp.Text = "&Help"; // // menuItemAbout // this.menuItemAbout.Index = 0; this.menuItemAbout.Text = "&About"; this.menuItemAbout.Click += new System.EventHandler(this.menuItemAbout_Click); // // openFileDialog // this.openFileDialog.Filter = "Text File (*.PEM; *.txt)|*.PEM;*.txt|Binary File (*.der;*.cer;*.bin;*.pfx)|*.der;" + "*.cer;*.bin;*.pfx|All (*.*)|*.*"; // // toolBar // this.toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarButtonOpen, this.toolBarButtonSaveAs, this.toolBarButton4, this.toolBarButtonCopyText, this.toolBarButtonPaste, this.toolBarButtonCut, this.toolBarButtonUndo }); this.toolBar.DropDownArrows = true; this.toolBar.ImageList = this.imageListToolBar; this.toolBar.Location = new System.Drawing.Point(0, 0); this.toolBar.Name = "toolBar"; this.toolBar.ShowToolTips = true; this.toolBar.Size = new System.Drawing.Size(632, 28); this.toolBar.TabIndex = 11; this.toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick); // // toolBarButtonOpen // this.toolBarButtonOpen.ImageIndex = 21; this.toolBarButtonOpen.Name = "toolBarButtonOpen"; this.toolBarButtonOpen.ToolTipText = "Open"; // // toolBarButtonSaveAs // this.toolBarButtonSaveAs.ImageIndex = 33; this.toolBarButtonSaveAs.Name = "toolBarButtonSaveAs"; this.toolBarButtonSaveAs.ToolTipText = "Save as"; // // toolBarButton4 // this.toolBarButton4.Name = "toolBarButton4"; this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButtonCopyText // this.toolBarButtonCopyText.ImageIndex = 20; this.toolBarButtonCopyText.Name = "toolBarButtonCopyText"; this.toolBarButtonCopyText.ToolTipText = "Copy"; // // toolBarButtonPaste // this.toolBarButtonPaste.ImageIndex = 31; this.toolBarButtonPaste.Name = "toolBarButtonPaste"; this.toolBarButtonPaste.ToolTipText = "Paste"; // // toolBarButtonCut // this.toolBarButtonCut.ImageIndex = 18; this.toolBarButtonCut.Name = "toolBarButtonCut"; this.toolBarButtonCut.ToolTipText = "Cut"; // // toolBarButtonUndo // this.toolBarButtonUndo.ImageIndex = 32; this.toolBarButtonUndo.Name = "toolBarButtonUndo"; this.toolBarButtonUndo.ToolTipText = "Undo"; this.toolBarButtonUndo.Visible = false; // // statusBar // this.statusBar.Location = new System.Drawing.Point(0, 410); this.statusBar.Name = "statusBar"; this.statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.statusBarPanelFileName, this.statusBarPanelFileSize, this.statusBarPanelLines, this.statusBarPanelCurrentLine, this.statusBarPanelCurrentColumn }); this.statusBar.ShowPanels = true; this.statusBar.Size = new System.Drawing.Size(632, 23); this.statusBar.TabIndex = 12; this.statusBar.Text = "statusBar"; // // statusBarPanelFileName // this.statusBarPanelFileName.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring; this.statusBarPanelFileName.Name = "statusBarPanelFileName"; this.statusBarPanelFileName.Text = "File Name:"; this.statusBarPanelFileName.Width = 415; // // statusBarPanelFileSize // this.statusBarPanelFileSize.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.statusBarPanelFileSize.Name = "statusBarPanelFileSize"; this.statusBarPanelFileSize.Text = "File Size:"; this.statusBarPanelFileSize.Width = 76; // // statusBarPanelLines // this.statusBarPanelLines.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.statusBarPanelLines.Name = "statusBarPanelLines"; this.statusBarPanelLines.Text = "Lines:"; this.statusBarPanelLines.Width = 52; // // statusBarPanelCurrentLine // this.statusBarPanelCurrentLine.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.statusBarPanelCurrentLine.Name = "statusBarPanelCurrentLine"; this.statusBarPanelCurrentLine.Text = "Ln:"; this.statusBarPanelCurrentLine.Width = 33; // // statusBarPanelCurrentColumn // this.statusBarPanelCurrentColumn.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents; this.statusBarPanelCurrentColumn.Name = "statusBarPanelCurrentColumn"; this.statusBarPanelCurrentColumn.Text = "Col:"; this.statusBarPanelCurrentColumn.Width = 39; // // FormConvertData // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(632, 433); this.Controls.Add(this.statusBar); this.Controls.Add(this.toolBar); this.Controls.Add(this.comboBoxFormat); this.Controls.Add(this.label1); this.Controls.Add(this.buttonToPem); this.Controls.Add(this.buttonToHex); this.Controls.Add(this.buttonToBase64); this.Controls.Add(this.richTextBox); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mainMenu; this.Name = "FormConvertData"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Data Converter"; this.Load += new System.EventHandler(this.FormConvertData_Load); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelFileName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelFileSize)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelLines)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelCurrentLine)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelCurrentColumn)).EndInit(); 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() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(GeneratorForm)); this.btnNewObject = new System.Windows.Forms.Button(); this.btnLoadObject = new System.Windows.Forms.Button(); this.btnConnect = new System.Windows.Forms.Button(); this.btnAddProperties = new System.Windows.Forms.Button(); this.pnlSchemaContainer = new System.Windows.Forms.Panel(); this.pnlSchema = new System.Windows.Forms.Panel(); this.tvwSchema = new System.Windows.Forms.TreeView(); this.lstColumns = new System.Windows.Forms.ListBox(); this.lblColumns = new System.Windows.Forms.Label(); this.lblSchemaObjects = new System.Windows.Forms.Label(); this.btnSaveObject = new System.Windows.Forms.Button(); this.mnuMain = new System.Windows.Forms.MainMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.mnuConnect = new System.Windows.Forms.MenuItem(); this.sfdSave = new System.Windows.Forms.SaveFileDialog(); this.ofdLoad = new System.Windows.Forms.OpenFileDialog(); this.sfdGenerate = new System.Windows.Forms.SaveFileDialog(); this.lstObjects = new System.Windows.Forms.ListBox(); this.lblObjectHeader = new System.Windows.Forms.Label(); this.txtProjectName = new System.Windows.Forms.TextBox(); this.lblProject = new System.Windows.Forms.Label(); this.btnAddObject = new System.Windows.Forms.Button(); this.btnDeleteObject = new System.Windows.Forms.Button(); this.fbGenerate = new CslaGenerator.Util.FolderBrowser(); this.btnDuplicate = new System.Windows.Forms.Button(); this.lblTargetDirectory = new System.Windows.Forms.Label(); this.txtTargetDirectory = new System.Windows.Forms.TextBox(); this.btnSelectDirectory = new System.Windows.Forms.Button(); this.pnlObjects = new System.Windows.Forms.Panel(); this.pnlMain = new System.Windows.Forms.Panel(); this.pnlProjectButtons = new System.Windows.Forms.Panel(); this.pnlObjectButtons = new System.Windows.Forms.Panel(); this.pgGrid = new System.Windows.Forms.PropertyGrid(); this.lblCurrentObject = new System.Windows.Forms.Label(); this.pnlGrid = new System.Windows.Forms.Panel(); this.lblDbSchema = new System.Windows.Forms.Label(); this.pnlSchemaContainer.SuspendLayout(); this.pnlSchema.SuspendLayout(); this.pnlObjects.SuspendLayout(); this.pnlMain.SuspendLayout(); this.pnlProjectButtons.SuspendLayout(); this.pnlObjectButtons.SuspendLayout(); this.pnlGrid.SuspendLayout(); this.SuspendLayout(); // // btnNewObject // this.btnNewObject.Anchor = System.Windows.Forms.AnchorStyles.Top; this.btnNewObject.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(64)), ((System.Byte)(192))); this.btnNewObject.ForeColor = System.Drawing.SystemColors.Window; this.btnNewObject.Location = new System.Drawing.Point(16, 0); this.btnNewObject.Name = "btnNewObject"; this.btnNewObject.Size = new System.Drawing.Size(128, 40); this.btnNewObject.TabIndex = 1; this.btnNewObject.Text = "New CSLA Project"; this.btnNewObject.Click += new System.EventHandler(this.btnNewObject_Click); // // btnLoadObject // this.btnLoadObject.Anchor = System.Windows.Forms.AnchorStyles.Top; this.btnLoadObject.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(64)), ((System.Byte)(192))); this.btnLoadObject.ForeColor = System.Drawing.SystemColors.Window; this.btnLoadObject.Location = new System.Drawing.Point(160, 0); this.btnLoadObject.Name = "btnLoadObject"; this.btnLoadObject.Size = new System.Drawing.Size(128, 40); this.btnLoadObject.TabIndex = 2; this.btnLoadObject.Text = "Load CSLA Project"; this.btnLoadObject.Click += new System.EventHandler(this.btnLoadObject_Click); // // btnConnect // this.btnConnect.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.btnConnect.BackColor = System.Drawing.Color.Orange; this.btnConnect.Enabled = false; this.btnConnect.Location = new System.Drawing.Point(16, 504); this.btnConnect.Name = "btnConnect"; this.btnConnect.Size = new System.Drawing.Size(144, 40); this.btnConnect.TabIndex = 5; this.btnConnect.Text = "Connect to DB"; this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click); // // btnAddProperties // this.btnAddProperties.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.btnAddProperties.BackColor = System.Drawing.Color.Orange; this.btnAddProperties.Enabled = false; this.btnAddProperties.Location = new System.Drawing.Point(296, 504); this.btnAddProperties.Name = "btnAddProperties"; this.btnAddProperties.Size = new System.Drawing.Size(144, 40); this.btnAddProperties.TabIndex = 4; this.btnAddProperties.Text = "Add Properties for Selected Columns"; this.btnAddProperties.Click += new System.EventHandler(this.btnAddProperties_Click); // // pnlSchemaContainer // this.pnlSchemaContainer.BackColor = System.Drawing.SystemColors.Control; this.pnlSchemaContainer.Controls.Add(this.pnlSchema); this.pnlSchemaContainer.Controls.Add(this.lstColumns); this.pnlSchemaContainer.Controls.Add(this.lblColumns); this.pnlSchemaContainer.Controls.Add(this.lblSchemaObjects); this.pnlSchemaContainer.Location = new System.Drawing.Point(0, 32); this.pnlSchemaContainer.Name = "pnlSchemaContainer"; this.pnlSchemaContainer.Size = new System.Drawing.Size(488, 464); this.pnlSchemaContainer.TabIndex = 3; // // pnlSchema // this.pnlSchema.Controls.Add(this.tvwSchema); this.pnlSchema.Location = new System.Drawing.Point(8, 24); this.pnlSchema.Name = "pnlSchema"; this.pnlSchema.Size = new System.Drawing.Size(216, 432); this.pnlSchema.TabIndex = 2; // // tvwSchema // this.tvwSchema.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tvwSchema.Dock = System.Windows.Forms.DockStyle.Fill; this.tvwSchema.ImageIndex = -1; this.tvwSchema.Location = new System.Drawing.Point(0, 0); this.tvwSchema.Name = "tvwSchema"; this.tvwSchema.SelectedImageIndex = -1; this.tvwSchema.Size = new System.Drawing.Size(216, 432); this.tvwSchema.TabIndex = 1; // // lstColumns // this.lstColumns.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lstColumns.DisplayMember = "value"; this.lstColumns.IntegralHeight = false; this.lstColumns.ItemHeight = 18; this.lstColumns.Location = new System.Drawing.Point(232, 24); this.lstColumns.Name = "lstColumns"; this.lstColumns.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; this.lstColumns.Size = new System.Drawing.Size(216, 434); this.lstColumns.TabIndex = 3; this.lstColumns.ValueMember = "key"; // // lblColumns // this.lblColumns.ForeColor = System.Drawing.SystemColors.ControlText; this.lblColumns.Location = new System.Drawing.Point(232, 8); this.lblColumns.Name = "lblColumns"; this.lblColumns.Size = new System.Drawing.Size(120, 16); this.lblColumns.TabIndex = 4; this.lblColumns.Text = "Columns"; // // lblSchemaObjects // this.lblSchemaObjects.ForeColor = System.Drawing.SystemColors.ControlText; this.lblSchemaObjects.Location = new System.Drawing.Point(8, 8); this.lblSchemaObjects.Name = "lblSchemaObjects"; this.lblSchemaObjects.Size = new System.Drawing.Size(120, 16); this.lblSchemaObjects.TabIndex = 5; this.lblSchemaObjects.Text = "Schema Objects"; // // btnSaveObject // this.btnSaveObject.Anchor = System.Windows.Forms.AnchorStyles.Top; this.btnSaveObject.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(64)), ((System.Byte)(192))); this.btnSaveObject.Enabled = false; this.btnSaveObject.ForeColor = System.Drawing.SystemColors.Window; this.btnSaveObject.Location = new System.Drawing.Point(304, 0); this.btnSaveObject.Name = "btnSaveObject"; this.btnSaveObject.Size = new System.Drawing.Size(128, 40); this.btnSaveObject.TabIndex = 4; this.btnSaveObject.Text = "Save CSLA Project"; this.btnSaveObject.Click += new System.EventHandler(this.btnSaveObject_Click); // // mnuMain // this.mnuMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuConnect }); this.menuItem1.Text = "File"; // // mnuConnect // this.mnuConnect.Index = 0; this.mnuConnect.Text = "Connect..."; this.mnuConnect.Click += new System.EventHandler(this.mnuConnect_Click); // // sfdSave // this.sfdSave.FileName = "doc1"; // // lstObjects // this.lstObjects.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.lstObjects.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lstObjects.DisplayMember = "value"; this.lstObjects.IntegralHeight = false; this.lstObjects.ItemHeight = 18; this.lstObjects.Location = new System.Drawing.Point(0, 127); this.lstObjects.Name = "lstObjects"; this.lstObjects.Size = new System.Drawing.Size(240, 430); this.lstObjects.TabIndex = 7; this.lstObjects.ValueMember = "key"; // // lblObjectHeader // this.lblObjectHeader.BackColor = System.Drawing.Color.Orange; this.lblObjectHeader.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblObjectHeader.ForeColor = System.Drawing.Color.Blue; this.lblObjectHeader.Location = new System.Drawing.Point(0, 104); this.lblObjectHeader.Name = "lblObjectHeader"; this.lblObjectHeader.Size = new System.Drawing.Size(240, 24); this.lblObjectHeader.TabIndex = 8; this.lblObjectHeader.Text = "CSLA Objects"; // // txtProjectName // this.txtProjectName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtProjectName.Location = new System.Drawing.Point(0, 30); this.txtProjectName.Name = "txtProjectName"; this.txtProjectName.Size = new System.Drawing.Size(240, 23); this.txtProjectName.TabIndex = 10; this.txtProjectName.Text = ""; // // lblProject // this.lblProject.BackColor = System.Drawing.Color.Orange; this.lblProject.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblProject.ForeColor = System.Drawing.Color.Blue; this.lblProject.Location = new System.Drawing.Point(0, 8); this.lblProject.Name = "lblProject"; this.lblProject.Size = new System.Drawing.Size(240, 23); this.lblProject.TabIndex = 11; this.lblProject.Text = "Project Name"; // // btnAddObject // this.btnAddObject.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(64)), ((System.Byte)(192))); this.btnAddObject.Enabled = false; this.btnAddObject.ForeColor = System.Drawing.SystemColors.Window; this.btnAddObject.Location = new System.Drawing.Point(8, 0); this.btnAddObject.Name = "btnAddObject"; this.btnAddObject.Size = new System.Drawing.Size(104, 40); this.btnAddObject.TabIndex = 12; this.btnAddObject.Text = "Add Object"; this.btnAddObject.Click += new System.EventHandler(this.btnAddObject_Click); // // btnDeleteObject // this.btnDeleteObject.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(64)), ((System.Byte)(192))); this.btnDeleteObject.Enabled = false; this.btnDeleteObject.ForeColor = System.Drawing.SystemColors.Window; this.btnDeleteObject.Location = new System.Drawing.Point(128, 0); this.btnDeleteObject.Name = "btnDeleteObject"; this.btnDeleteObject.Size = new System.Drawing.Size(104, 40); this.btnDeleteObject.TabIndex = 13; this.btnDeleteObject.Text = "Delete Object"; this.btnDeleteObject.Click += new System.EventHandler(this.btnDeleteObject_Click); // // btnDuplicate // this.btnDuplicate.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(64)), ((System.Byte)(192))); this.btnDuplicate.Enabled = false; this.btnDuplicate.ForeColor = System.Drawing.SystemColors.Window; this.btnDuplicate.Location = new System.Drawing.Point(8, 48); this.btnDuplicate.Name = "btnDuplicate"; this.btnDuplicate.Size = new System.Drawing.Size(104, 40); this.btnDuplicate.TabIndex = 15; this.btnDuplicate.Text = "Duplicate Object"; this.btnDuplicate.Click += new System.EventHandler(this.btnDuplicate_Click); // // lblTargetDirectory // this.lblTargetDirectory.BackColor = System.Drawing.Color.Orange; this.lblTargetDirectory.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblTargetDirectory.ForeColor = System.Drawing.Color.Blue; this.lblTargetDirectory.Location = new System.Drawing.Point(0, 56); this.lblTargetDirectory.Name = "lblTargetDirectory"; this.lblTargetDirectory.Size = new System.Drawing.Size(240, 23); this.lblTargetDirectory.TabIndex = 17; this.lblTargetDirectory.Text = "Output Directory"; // // txtTargetDirectory // this.txtTargetDirectory.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.txtTargetDirectory.Location = new System.Drawing.Point(0, 78); this.txtTargetDirectory.Name = "txtTargetDirectory"; this.txtTargetDirectory.Size = new System.Drawing.Size(240, 23); this.txtTargetDirectory.TabIndex = 16; this.txtTargetDirectory.Text = ""; // // btnSelectDirectory // this.btnSelectDirectory.Enabled = false; this.btnSelectDirectory.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSelectDirectory.Font = new System.Drawing.Font("Niagara Solid", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.btnSelectDirectory.Location = new System.Drawing.Point(216, 78); this.btnSelectDirectory.Name = "btnSelectDirectory"; this.btnSelectDirectory.Size = new System.Drawing.Size(24, 23); this.btnSelectDirectory.TabIndex = 20; this.btnSelectDirectory.Text = "..."; this.btnSelectDirectory.Click += new System.EventHandler(this.btnSelectDirectory_Click); // // pnlObjects // this.pnlObjects.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.pnlObjects.Controls.Add(this.btnSelectDirectory); this.pnlObjects.Controls.Add(this.lstObjects); this.pnlObjects.Controls.Add(this.lblObjectHeader); this.pnlObjects.Controls.Add(this.lblProject); this.pnlObjects.Controls.Add(this.txtProjectName); this.pnlObjects.Controls.Add(this.lblTargetDirectory); this.pnlObjects.Controls.Add(this.txtTargetDirectory); this.pnlObjects.Location = new System.Drawing.Point(8, 0); this.pnlObjects.Name = "pnlObjects"; this.pnlObjects.Size = new System.Drawing.Size(240, 560); this.pnlObjects.TabIndex = 21; // // pnlMain // this.pnlMain.Controls.Add(this.pnlSchemaContainer); this.pnlMain.Controls.Add(this.btnConnect); this.pnlMain.Controls.Add(this.btnAddProperties); this.pnlMain.Controls.Add(this.lblDbSchema); this.pnlMain.Location = new System.Drawing.Point(256, 0); this.pnlMain.Name = "pnlMain"; this.pnlMain.Size = new System.Drawing.Size(456, 560); this.pnlMain.TabIndex = 22; // // pnlProjectButtons // this.pnlProjectButtons.Controls.Add(this.btnNewObject); this.pnlProjectButtons.Controls.Add(this.btnLoadObject); this.pnlProjectButtons.Controls.Add(this.btnSaveObject); this.pnlProjectButtons.Location = new System.Drawing.Point(256, 568); this.pnlProjectButtons.Name = "pnlProjectButtons"; this.pnlProjectButtons.Size = new System.Drawing.Size(456, 40); this.pnlProjectButtons.TabIndex = 24; // // pnlObjectButtons // this.pnlObjectButtons.Controls.Add(this.btnDeleteObject); this.pnlObjectButtons.Controls.Add(this.btnAddObject); this.pnlObjectButtons.Controls.Add(this.btnDuplicate); this.pnlObjectButtons.Location = new System.Drawing.Point(8, 568); this.pnlObjectButtons.Name = "pnlObjectButtons"; this.pnlObjectButtons.Size = new System.Drawing.Size(240, 88); this.pnlObjectButtons.TabIndex = 25; // // pgGrid // this.pgGrid.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.pgGrid.BackColor = System.Drawing.Color.Gainsboro; this.pgGrid.CommandsBackColor = System.Drawing.Color.Gainsboro; this.pgGrid.CommandsForeColor = System.Drawing.Color.Blue; this.pgGrid.CommandsVisibleIfAvailable = true; this.pgGrid.Font = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.pgGrid.LargeButtons = false; this.pgGrid.LineColor = System.Drawing.SystemColors.ScrollBar; this.pgGrid.Location = new System.Drawing.Point(0, 32); this.pgGrid.Name = "pgGrid"; this.pgGrid.Size = new System.Drawing.Size(288, 528); this.pgGrid.TabIndex = 0; this.pgGrid.Text = "PropertyGrid"; this.pgGrid.ViewBackColor = System.Drawing.SystemColors.Window; this.pgGrid.ViewForeColor = System.Drawing.SystemColors.WindowText; // // lblCurrentObject // this.lblCurrentObject.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblCurrentObject.BackColor = System.Drawing.Color.Orange; this.lblCurrentObject.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblCurrentObject.Font = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.lblCurrentObject.ForeColor = System.Drawing.Color.Blue; this.lblCurrentObject.Location = new System.Drawing.Point(0, 8); this.lblCurrentObject.Name = "lblCurrentObject"; this.lblCurrentObject.Size = new System.Drawing.Size(288, 23); this.lblCurrentObject.TabIndex = 14; this.lblCurrentObject.Text = "Current CSLA Object Properties"; // // pnlGrid // this.pnlGrid.Controls.Add(this.pgGrid); this.pnlGrid.Controls.Add(this.lblCurrentObject); this.pnlGrid.Font = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.pnlGrid.Location = new System.Drawing.Point(720, 0); this.pnlGrid.Name = "pnlGrid"; this.pnlGrid.Size = new System.Drawing.Size(288, 560); this.pnlGrid.TabIndex = 23; // // lblDbSchema // this.lblDbSchema.BackColor = System.Drawing.Color.Orange; this.lblDbSchema.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.lblDbSchema.ForeColor = System.Drawing.Color.Blue; this.lblDbSchema.Location = new System.Drawing.Point(0, 8); this.lblDbSchema.Name = "lblDbSchema"; this.lblDbSchema.Size = new System.Drawing.Size(456, 23); this.lblDbSchema.TabIndex = 11; this.lblDbSchema.Text = "DbSchema"; // // GeneratorForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 16); this.ClientSize = new System.Drawing.Size(1016, 694); this.Controls.Add(this.pnlObjectButtons); this.Controls.Add(this.pnlProjectButtons); this.Controls.Add(this.pnlGrid); this.Controls.Add(this.pnlMain); this.Controls.Add(this.pnlObjects); this.Font = new System.Drawing.Font("Trebuchet MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mnuMain; this.Name = "GeneratorForm"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.Text = "CSLA Object Generator v1.0"; this.pnlSchemaContainer.ResumeLayout(false); this.pnlSchema.ResumeLayout(false); this.pnlObjects.ResumeLayout(false); this.pnlMain.ResumeLayout(false); this.pnlProjectButtons.ResumeLayout(false); this.pnlObjectButtons.ResumeLayout(false); this.pnlGrid.ResumeLayout(false); this.ResumeLayout(false); }
/// <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(Export_JPEG)); this.arrowSeries1 = new Steema.TeeChart.Styles.Arrow(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.gridBand1 = new Steema.TeeChart.Tools.GridBand(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.panel1.SuspendLayout(); this.chartContainer.SuspendLayout(); this.SuspendLayout(); // // textBox1 // this.textBox1.Size = new System.Drawing.Size(466, 32); this.textBox1.Text = "Exporting to JPEG graphic format is available using the Export Dialog or by code " + "at run-time."; // // panel1 // this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); this.panel1.Location = new System.Drawing.Point(0, 32); this.panel1.Size = new System.Drawing.Size(466, 41); // // tChart1 // // // // this.tChart1.Aspect.ZOffset = 0; // // // // // // // // // this.tChart1.Axes.Bottom.Grid.Visible = false; // // // // // // this.tChart1.Axes.Left.Grid.Visible = false; // // // this.tChart1.Axes.Right.Visible = false; this.tChart1.Cursor = System.Windows.Forms.Cursors.Default; // // // this.tChart1.Header.Lines = new string[] { "tChart1" }; this.tChart1.Header.Visible = false; // // // // // // this.tChart1.Legend.Bevel.ColorOne = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // // this.tChart1.Legend.Brush.Visible = false; // // // this.tChart1.Legend.Pen.Transparency = 1; this.tChart1.Legend.Pen.Visible = false; // // // this.tChart1.Legend.Shadow.Height = 1; this.tChart1.Legend.Shadow.Visible = false; this.tChart1.Legend.Shadow.Width = 1; // // // // // // #if VS2005 this.tChart1.Legend.Symbol.Shadow.Smooth = true; #endif this.tChart1.Legend.Symbol.Squared = true; this.tChart1.Legend.TextSymbolGap = 4; // // // // // // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.tChart1.Series.Add(this.arrowSeries1); this.tChart1.Size = new System.Drawing.Size(466, 213); this.tChart1.Tools.Add(this.gridBand1); // // // // // // // // // this.tChart1.Walls.Back.Pen.Visible = false; this.tChart1.Walls.Back.Visible = false; // // // // // // this.tChart1.Walls.Bottom.Pen.Visible = false; this.tChart1.Walls.Bottom.Size = 5; // // // // // // this.tChart1.Walls.Left.Pen.Visible = false; this.tChart1.Walls.Left.Size = 5; // // chartContainer // this.chartContainer.Location = new System.Drawing.Point(0, 73); this.chartContainer.Size = new System.Drawing.Size(466, 213); // // arrowSeries1 // this.arrowSeries1.Color = System.Drawing.Color.Red; this.arrowSeries1.ColorEach = true; this.arrowSeries1.LabelMember = "Labels"; // // // // // // this.arrowSeries1.Marks.Callout.ArrowHead = Steema.TeeChart.Styles.ArrowHeadStyles.None; this.arrowSeries1.Marks.Callout.ArrowHeadSize = 8; // // // this.arrowSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black; this.arrowSeries1.Marks.Callout.Distance = 0; this.arrowSeries1.Marks.Callout.Draw3D = false; this.arrowSeries1.Marks.Callout.Length = 0; this.arrowSeries1.Marks.Callout.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.arrowSeries1.Marks.Callout.Visible = false; // // // this.arrowSeries1.Marks.Pen.Visible = false; this.arrowSeries1.Marks.Transparent = true; // // // // // // this.arrowSeries1.Pointer.Brush.Color = System.Drawing.Color.Red; this.arrowSeries1.Pointer.Brush.ForegroundColor = System.Drawing.Color.Empty; this.arrowSeries1.Pointer.InflateMargins = false; // // // this.arrowSeries1.Pointer.Pen.Transparency = 1; this.arrowSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle; this.arrowSeries1.StartXValues = this.arrowSeries1.XValues; this.arrowSeries1.StartYValues = this.arrowSeries1.YValues; this.arrowSeries1.Title = "arrowSeries1"; // // // this.arrowSeries1.XValues.DataMember = "X"; this.arrowSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // // this.arrowSeries1.YValues.DataMember = "Y"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(8, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(107, 23); this.button1.TabIndex = 0; this.button1.Text = "Save to &JPEG..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(127, 8); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(137, 23); this.button2.TabIndex = 1; this.button2.Text = "Show &export dialog..."; this.button2.Click += new System.EventHandler(this.button2_Click); // // saveFileDialog1 // this.saveFileDialog1.FileName = "doc1"; this.saveFileDialog1.Title = "Save Image (JPEG)"; // // gridBand1 // this.gridBand1.Axis = this.tChart1.Axes.Left; // // // this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); // // // this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); // // checkBox1 // #if VS2005 this.checkBox1.AutoSize = true; this.checkBox1.UseVisualStyleBackColor = true; #endif this.checkBox1.Location = new System.Drawing.Point(304, 14); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(106, 17); this.checkBox1.TabIndex = 2; this.checkBox1.Text = "Save Grey Scale"; // // Export_JPEG // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(466, 286); this.Name = "Export_JPEG"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.chartContainer.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Creates a SaveFileDialog open in a given path. /// </summary> /// <param name="directory">Directory to get the path from.</param> /// <returns>A new instance of SaveFileDialog.</returns> public static System.Windows.Forms.SaveFileDialog CreateSaveFileDialog(System.IO.DirectoryInfo directory) { System.Windows.Forms.SaveFileDialog temp_fileDialog = new System.Windows.Forms.SaveFileDialog(); temp_fileDialog.InitialDirectory = directory.FullName; return(temp_fileDialog); }