public RequestVM(EntryConferenceEventArgs param, EventHandler closeWindow) { Id = param.Id; Creator = param.Creator; Users = param.Users.ToList(); _closeWindow = closeWindow; Agreement = new Command(OnAgreement); Disagreement = new Command(OnDisagreement); }
private void Model_OnGetRequestToCreateConference(object sender, EntryConferenceEventArgs e) => CurrentContentVM.Value = new ConferenceVM(new ConferenceModel(e.Id, e.Creator, e.Users));
private void Model_OnGetRequestToEntryConference(object sender, EntryConferenceEventArgs e) => RequestVM.Invoke(e);
static public void Invoke(EntryConferenceEventArgs param) => new Request(param).ShowDialog();
public Request(EntryConferenceEventArgs param) { InitializeComponent(); _close += Request__close; DataContext = new RequestVM(param, _close); }
static private void _client_GetRequestToCreateConference(object sender, EntryConferenceEventArgs e) => GetRequestToCreateConference?.Invoke(sender, e);