public MainWindowViewModel() { CurrentProject = new Project("ÇAPRAZ NEYLİ HİKAYE"); mainTextAreaVm = new MainTextAreaViewModel(CurrentProject); this.NewProjectCommand = new NewProjectCommand(this); this.OpenProjectCommand = new OpenProjectCommand(this); this.SaveProjectCommand = new SaveProjectCommand(mainTextAreaVm); this.SaveProjectAsCommand = new SaveProjectAsCommand(this); this.ExitCommand = new ExitCommand(this); this.UndoCommand = new UndoCommand(this); this.RedoCommand = new RedoCommand(this); this.CutCommand = new CutCommand(this); this.CopyCommand = new CopyCommand(this); this.PasteCommand = new PasteCommand(this); this.SelectAllCommand = new SelectAllCommand(this); this.FindCommand = new FindCommand(this); this.ReplaceCommand = new ReplaceCommand(this); this.ImportScriptCommand = new ImportScriptCommand(this); this.ExportScriptCommand = new ExportScriptCommand(this); this.OpenAboutPageCommand = new OpenAboutPageCommand(this); }
/// <summary> /// Default constructor. /// </summary> public LoadDocumentCommand(MainTextAreaViewModel viewModel) { m_ViewModel = viewModel; }
/// <summary> /// Default constructor. /// </summary> public SaveProjectCommand(MainTextAreaViewModel viewModel) { m_ViewModel = viewModel; }