コード例 #1
0
ファイル: EditProject.cs プロジェクト: lewis810/HueApp
        //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));
        }
コード例 #2
0
ファイル: Edit_Image.cs プロジェクト: lewis810/HueApp
 public Edit_Image(string _mPath, string _filePath, LinkData _Data, ScenarioData _sData, string _user_id, List<EditProject.TotalData> _pTotal_data)
 {
     InitializeComponent();
     pfc.AddFontFile(Path.Combine(Application.StartupPath, "KOPUBDOTUM_PRO_LIGHT.OTF"));
     this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
     this.UpdateStyles();
     pictureBox_main.Parent = panel_for_pic;
     mPath = _mPath;
     mfilePath = _filePath;
     pData = _Data;
     sData = _sData;
     user_id = _user_id;
     pTotal_data = _pTotal_data;
 }