void SoldClick() { Window_ChoseElementWindow wd = new Window_ChoseElementWindow(typeof(Seance), DataBaseWorker.Instance, true); Seance dialogRes = wd.ShowDialogWithResult(-1) as Seance; if (dialogRes == null) { return; } Window_CinemaRoomViewer crv = new Window_CinemaRoomViewer(DataBaseWorker.Instance, dialogRes); crv.ShowDialog_Redactor(); }
private void labelEditCinemaRoom_MouseDown(object sender, MouseButtonEventArgs e) { Window_ChoseElementWindow wd = new Window_ChoseElementWindow(typeof(CinemaRoom), DataBaseWorker.Instance); objectToWork.Room = wd.ShowDialogWithResult(objectToWork.Room) as CinemaRoom; }
void SeancesClick() { Window_ChoseElementWindow wd = new Window_ChoseElementWindow(typeof(Seance), DataBaseWorker.Instance); wd.ShowDialogWithResult(-1); }