Esempio n. 1
0
        public Form_Rename(Form_Main _form)//Form_Main 접근 허용
        {
            InitializeComponent();
            Fm = _form;

            bool b;

            if (Fm.listView1.SelectedItems.Count == 1)
            {
                ListView.SelectedListViewItemCollection items = Fm.listView1.SelectedItems;
                ListViewItem lvi = items[0];
                string       name = lvi.SubItems[1].Text;
                string       name_change, extension;
                if (Fm.FileExistsCheck(lvi.SubItems[2].Text) == true) //파일 체크
                {
                    b = name.Contains(".");                           //확장자 체크
                    if (b == true)
                    {
                        name_change = (name.Substring(0, name.LastIndexOf("."))); //파일이름
                        extension   = (name.Substring(name.LastIndexOf(".")));    //확장자
                    }
                    else
                    {
                        name_change = name;
                        extension   = "";
                    }
                }
                else if (Fm.FolderExistsCheck(lvi.SubItems[2].Text) == true)//폴더 체크
                {
                    b           = false;
                    name_change = name;
                    extension   = "";
                }
                else
                {
                    b           = false;
                    name_change = name;
                    extension   = "";
                }

                label_Name.Text      = name + "→"; //원래 이름 표시
                label_extension.Text = extension;  //확장자 표시

                textBox1.Text = name_change;
            }
        }
Esempio n. 2
0
 public Form_Extension(Form_Main _form)//Form_Main 접근 허용
 {
     InitializeComponent();
     Fm = _form;
 }
Esempio n. 3
0
 public Form_AddString(Form_Main _form)//Form_Main 접근 허용
 {
     InitializeComponent();
     Fm = _form;
 }
Esempio n. 4
0
 public Form_Number(Form_Main _form)//Form_Main 접근 허용
 {
     InitializeComponent();
     Fm = _form;
 }
Esempio n. 5
0
 public Form_Replace(Form_Main _form)//Form_Main 접근 허용
 {
     InitializeComponent();
     Fm = _form;
 }