public ConversationsChannel_ViewModel(UserControl_Conversations_Channel convChannelVM) { this.convChannelVM = convChannelVM; Serch = new GeneralCommands <object>(SerchChannel, CanSerch); Create = new GeneralCommands <object>(CreateChannel, canCreate); Init(); }
public SerchChannel_ViewModel(SerchChanel_Window serchWind) { this.SerchWind = serchWind; conversationView = this.SerchWind.conversationViewModel.convChannelVM; this.errorText = ""; SerchChannel = new GeneralCommands <object>(serchChannel, CanSerch); SelectChannel = new GeneralCommands <object>(selectChannel, canSelect); Close = new GeneralCommands <object>(CloseDialog, CanClose); }