Ejemplo n.º 1
0
        // imagelistView_main double click 시에 반응
        private void imageListView1_itemDoubleClick(object sender, ItemClickEventArgs e)
        {
            ImageListViewItem item = imageListView_Main.SelectedItems[0];

            string mPath = @"C:\Users\" + Environment.UserName + "\\Dropbox\\IMAGE\\" + item.FolderName + "\\";

            //MessageBox.Show(mPath);

            EditProject editProject = new EditProject(mPath, id, item.FolderName);
            editProject.Show();
        }
Ejemplo n.º 2
0
        //새로 만든 프로젝트를 눌렀을 때
        private void eachButton_Click(object sender, MouseEventArgs e)
        {
            //MouseEventArgs me = (MouseEventArgs)e;
            

            switch (e.Button)
            {
                case MouseButtons.Left:

                    // 여기에 정의
                    // 이 주소를 통하여서 안에 있는 그림 파일 혹은 기타 파일 가져 오기
                    Button temp_btn_left = sender as Button;

                    string mPath = @"C:\Users\" + Environment.UserName + "\\Dropbox\\IMAGE\\" + temp_btn_left.Name + "\\";
                    //string mPath = @"C:\Prototype\\project\\" + temp_btn.Name + "\\";

                    //MessageBox.Show(temp, "Warning",
                    //        MessageBoxButtons.OK, MessageBoxIcon.Information);

                    EditProject editProject = new EditProject(mPath, user_id, temp_btn_left.Name);
                    editProject.Show();
                    //MessageBox.Show("Left click", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    break;
                case MouseButtons.Right:

                    //MessageBox.Show("Right click", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Information);

                    Button temp_btn_right = sender as Button;
                    ContextMenu cm = new ContextMenu();
                    cm.MenuItems.Add("Delete", new System.EventHandler(this.menuItem_delete_click));
                    cm.MenuItems.Add("Item 2");
                    temp_btn_right.ContextMenu = cm;
                    main.TempDeleteButton = temp_btn_right;

                    break;
            }

        }
Ejemplo n.º 3
0
 private void Edit_Image_FormClosed(object sender, FormClosedEventArgs e)
 {
     EditProject editProject = new EditProject(mPath, pData, sData, user_id, pTotal_data);
     editProject.Show();
 }