public CreateNewProject(main temp, string _id) { InitializeComponent(); textBoxProjectName_SetText(); form1 = temp; user_id = _id; pfc.AddFontFile(Path.Combine(Application.StartupPath, "KOPUBDOTUM_PRO_LIGHT.OTF")); label_projectname.Font = new Font(pfc.Families[0], 18, FontStyle.Regular); label_size.Font = new Font(pfc.Families[0], 18, FontStyle.Regular); label_newProject_title.Font = new Font(pfc.Families[0], 18, FontStyle.Bold); label_newProject_title.Location = new Point((int)(this.Width / 2) - (int)(label_newProject_title.Width / 2), label_newProject_title.Location.Y); comboBox_size.Font = new Font(pfc.Families[0], 14, FontStyle.Regular); textBox_projectname.Font = new Font(pfc.Families[0], 14, FontStyle.Regular); }
//from edit_image public EditProject(string _myPath, LinkData _pData, ScenarioData _sData, string _user_id, List<TotalData> _total_data) { InitializeComponent(); _main = new main(); myPath = _myPath; pData = _pData; sData = _sData; user_id = _user_id; pData.SetDownload(false); //edit image에서 edit project로 넘어오면 download를 다시 하지 않게 함 total_data = _total_data; SetupButton(); for(int i = 0; i < sData.getSData().Count; i++) { listBox_scenario.Items.Add(sData.getSData()[i].title); } Assembly assembly = Assembly.GetAssembly(typeof(ImageListView)); imageListView_EditProject.SetRenderer(new ImageListViewRenderers.DefaultRenderer()); imageListView_EditProject.SortColumn = 0; imageListView_EditProject.SortOrder = Manina.Windows.Forms.SortOrder.AscendingNatural; string cacheDir = Path.Combine( Path.GetDirectoryName(new Uri(assembly.GetName().CodeBase).LocalPath), "Cache" ); if (!Directory.Exists(cacheDir)) Directory.CreateDirectory(cacheDir); imageListView_EditProject.PersistentCacheDirectory = cacheDir; imageListView_EditProject.Columns.Add(ColumnType.Name); imageListView_EditProject.Columns.Add(ColumnType.Dimensions); imageListView_EditProject.Columns.Add(ColumnType.FileSize); imageListView_EditProject.Columns.Add(ColumnType.FolderName); cm = new ContextMenu(); cm.MenuItems.Add("Delete", new System.EventHandler(this.imageListView_menuItem_delete_click)); }
//from main public EditProject(string _myPath, string _id, string _project_name) { InitializeComponent(); _main = new main(); myPath = _myPath; user_id = _id; pData.SetProjectName(_project_name); pData.SetUserId(_id); pData.SetDownload(true); //main에서부터 올 경우 다운로드 하도록 함 SetupButton(); ReadLink(); ReadScenario(); Analysis_Setup(); for(int i = 0; i < sData.getSData().Count; i++) { Console.WriteLine("받아온거 : " + sData.getSData()[i].title); for (int j = 0; j < sData.getSData()[i].paths.Count; j++) { Console.WriteLine("받아온거 : " + sData.getSData()[i].paths[j].path); } } Assembly assembly = Assembly.GetAssembly(typeof(ImageListView)); //imageListView_EditProject.Width = this.Width; imageListView_EditProject.SetRenderer(new ImageListViewRenderers.DefaultRenderer()); imageListView_EditProject.SortColumn = 0; imageListView_EditProject.SortOrder = Manina.Windows.Forms.SortOrder.AscendingNatural; string cacheDir = Path.Combine( Path.GetDirectoryName(new Uri(assembly.GetName().CodeBase).LocalPath), "Cache" ); if (!Directory.Exists(cacheDir)) Directory.CreateDirectory(cacheDir); imageListView_EditProject.PersistentCacheDirectory = cacheDir; imageListView_EditProject.Columns.Add(ColumnType.Name); imageListView_EditProject.Columns.Add(ColumnType.Dimensions); imageListView_EditProject.Columns.Add(ColumnType.FileSize); imageListView_EditProject.Columns.Add(ColumnType.FolderName); imageListView_EditProject.Font = new Font(pfc.Families[0], 10, FontStyle.Regular); cm = new ContextMenu(); cm.MenuItems.Add("Delete", new System.EventHandler(this.imageListView_menuItem_delete_click)); }
public CreateNewProject(main temp) { InitializeComponent(); textBoxProjectName_SetText(); form1 = temp; }