public AllLogsEditRowView(Employee selectedRow, AllLogsView windowBack, UserInterface inter) { try { if (selectedRow == null) { throw new NullReferenceException("לא נבחרה שורה."); } this.windowBack = windowBack; InitializeComponent(); VM = new AllLogsEditRowVM(selectedRow, inter); this.DataContext = VM; RowView.ItemsSource = VM.SelectedRow; } catch (Exception ex) { if (ex is NullReferenceException) { MessageBox.Show(ex.Message); } else { MessageBox.Show("תקלה. אנא נסה שנית או צור קשר"); } } }
public AreYouSureMonth(Window apply) { InitializeComponent(); if (apply is LogsForEmpView) { first = (LogsForEmpView)apply; } else { second = (AllLogsView)apply; } }