public MainWindowViewModel() { Model = new ClientModel(); MainPanelMenu.Add(new QueueViewModel() { Name = "キュー", Model = Model }); MainPanelMenu.Add(new LogViewModel() { Name = "ログ", Model = Model }); MainPanelMenu.Add(new SettingViewModel() { Name = "設定", Model = Model }); ConsolePanelMenu.Add(new LogFileViewModel() { Name = "ログファイル", Model = Model }); InfoPanelMenu.Add(new DiskFreeSpaceViewModel() { Name = "ディスク空き", Model = Model }); InfoPanelMenu.Add(new SummaryViewModel() { Name = "サマリー", Model = Model }); InfoPanelMenu.Add(new ClientLogViewModel() { Name = "クライアントログ", Model = Model }); }
public MainWindowViewModel() { Model = new ClientModel(); ConsoleList = new ObservableViewModelCollection <ConsoleViewModel, DisplayConsole>( Model.ConsoleList, console => new ConsoleViewModel() { Name = "コンソール" + (console.Id), ShortName = (console.Id).ToString(), Model = console }); QueueVM = new QueueViewModel() { Name = "キュー", Model = Model, MainPanel = this }; MainPanelMenu.Add(QueueVM); MainPanelMenu.Add(new LogViewModel() { Name = "ログ", Model = Model }); MainPanelMenu.Add(new ProfileSettingViewModel() { Name = "プロファイル", Model = Model }); MainPanelMenu.Add(new AutoSelectSettingViewModel() { Name = "自動選択", Model = Model }); MainPanelMenu.Add(new ServiceSettingViewModel() { Name = "チャンネル設定", Model = Model }); MainPanelMenu.Add(new SettingViewModel() { Name = "基本設定", Model = Model }); ConsolePanelMenu.Add(new LogFileViewModel() { Name = "ログファイル", Model = Model }); InfoPanelMenu.Add(new SummaryViewModel() { Name = "サマリー", Model = Model, MainPanel = this }); InfoPanelMenu.Add(new DrcsImageListViewModel() { Name = "DRCS外字", Model = Model }); InfoPanelMenu.Add(new AddQueueConsoleViewModel() { Name = "追加コンソール", Model = Model }); InfoPanelMenu.Add(new DiskFreeSpaceViewModel() { Name = "ディスク空き", Model = Model }); InfoPanelMenu.Add(new MakeScriptViewModel() { Name = "その他", Model = Model }); InfoPanelMenu.Add(new ClientLogViewModel() { Name = "クライアントログ", Model = Model }); SleepCancelVM = new SleepCancelViewModel() { Model = Model }; }