コード例 #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            RSARFileNode file = lstFiles.SelectedItem as RSARFileNode;

            if (file is RSARExtFileNode)
            {
                RSARExtFileNode m = file as RSARExtFileNode;
                if (File.Exists(m.FullExtPath))
                {
                    Process.Start(m.FullExtPath);
                }
                else
                {
                    using (SoundPathChanger dlg = new SoundPathChanger())
                    {
                        RSARNode rsar = m.RSARNode;
                        dlg.FilePath             = m.FullExtPath;
                        dlg.dlg.InitialDirectory = rsar._origPath.Substring(0, rsar._origPath.LastIndexOf('\\'));
                        if (dlg.ShowDialog() == DialogResult.OK)
                        {
                            m.FullExtPath = dlg.FilePath;
                        }
                    }
                }
            }
            else
            {
                new EditRSARFileDialog().ShowDialog(this, file);
            }
        }
コード例 #2
0
 private void mnuPath_Click(object sender, EventArgs e)
 {
     using (SoundPathChanger dlg = new SoundPathChanger())
     {
         dlg.FilePath = _selectedItem._node._extPath;
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             _selectedItem._node.ExtPath    = dlg.FilePath;
             _selectedItem.SubItems[2].Text = dlg.FilePath;
         }
     }
 }
コード例 #3
0
 private void mnuPath_Click(object sender, EventArgs e)
 {
     using (SoundPathChanger dlg = new SoundPathChanger())
     {
         dlg.FilePath             = _selectedItem._node.FullExtPath;
         dlg.dlg.InitialDirectory = TargetNode._origPath.Substring(0, TargetNode._origPath.LastIndexOf('\\'));
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             _selectedItem._node.FullExtPath = dlg.FilePath;
             _selectedItem.SubItems[2].Text  = _selectedItem._node._extPath;
         }
     }
 }
コード例 #4
0
 private void mnuPath_Click(object sender, EventArgs e)
 {
     using (SoundPathChanger dlg = new SoundPathChanger())
     {
         dlg.FilePath = _selectedItem._node.FullExtPath;
         dlg.dlg.InitialDirectory = TargetNode._origPath.Substring(0, TargetNode._origPath.LastIndexOf('\\'));
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             _selectedItem._node.FullExtPath = dlg.FilePath;
             _selectedItem.SubItems[2].Text = _selectedItem._node._extPath;
         }
     }
 }