예제 #1
0
 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);
 }
예제 #2
0
 private void Model_OnGetRequestToCreateConference(object sender, EntryConferenceEventArgs e) => CurrentContentVM.Value = new ConferenceVM(new ConferenceModel(e.Id, e.Creator, e.Users));
예제 #3
0
 private void Model_OnGetRequestToEntryConference(object sender, EntryConferenceEventArgs e) => RequestVM.Invoke(e);
예제 #4
0
 static public void Invoke(EntryConferenceEventArgs param) => new Request(param).ShowDialog();
예제 #5
0
 public Request(EntryConferenceEventArgs param)
 {
     InitializeComponent();
     _close     += Request__close;
     DataContext = new RequestVM(param, _close);
 }
예제 #6
0
 static private void _client_GetRequestToCreateConference(object sender, EntryConferenceEventArgs e) => GetRequestToCreateConference?.Invoke(sender, e);