/// <summary> /// /// </summary> /// <param name="data"></param> public static void Edit(ListOfFiles data) { ListOfType listType = ListOfType.GetInstance(); foreach (IOView item in data.files) { if (listType.TypeText().Contains(item.Type)) { string namefile = data.OldPath + item.Name + "." + item.Type; notepad np = new notepad(namefile); np.Show(); } } }
private void MenuItem_Click_1(object sender, RoutedEventArgs e) { notepad np = new notepad(); np.Show(); }