private void InternalKeyBindExecute(object sender, KeyBindInternalEventArgs e) { switch (e.Kbn) { case EKeyBindInternalKbn.ReDisp: TabItemUI ti = this.tabControl.SelectedItem as TabItemUI; if (ti != null) { ti.ReDisp(); } break; } }
protected virtual void FileMove(string[] files) { SHFILEOPSTRUCT info = new SHFILEOPSTRUCT(); info.hwnd = this.ParentHandle; info.wFunc = FOFunc.FO_MOVE; //ファイル名の区切りは'\0'で最後にはもう一つ'\0'が必要 foreach (string f in files) { info.pFrom = f + '\0'; } info.pFrom = info.pFrom + '\0'; info.pTo = this.pathUI.Path; Shell32Wrapper.SHFileOperation(ref info); TabItemUI ti = this.tabControl.SelectedItem as TabItemUI; if (ti != null) { ti.ReDisp(); } }