public JointSearchCommand(JointSearchViewModel vm, IJointRepository repo, IUserNotify notify) { viewModel = vm; this.repo = repo; this.notify = notify; }
public JointSearchXtraForm(JointSearchViewModel vm) { viewModel = vm; InitializeComponent(); weldingDateFrom.Properties.NullDate = DateTime.MinValue; weldingDateFrom.Properties.NullText = string.Empty; weldingDateTo.Properties.NullDate = DateTime.MinValue; weldingDateTo.Properties.NullText = string.Empty; jointNumber.SetAsIdentifier(); }
public JointSearchXtraForm(JointSearchViewModel vm) { viewModel = vm; InitializeComponent(); weldingDateFrom.Properties.NullDate = DateTime.MinValue; weldingDateFrom.Properties.NullText = string.Empty; weldingDateTo.Properties.NullDate = DateTime.MinValue; weldingDateTo.Properties.NullText = string.Empty; jointNumber.SetAsIdentifier(); if(Program.ThisWorkstationType == Domain.Entity.Setup.WorkstationType.Master) { eldingDateLabelLayout.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; weldingDateFromLayout.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; weldingDateToLayout.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } }
public JointSearchXtraForm(JointSearchViewModel vm) { viewModel = vm; InitializeComponent(); weldingDateFrom.Properties.NullDate = DateTime.MinValue; weldingDateFrom.Properties.NullText = string.Empty; weldingDateTo.Properties.NullDate = DateTime.MinValue; weldingDateTo.Properties.NullText = string.Empty; jointNumber.SetAsIdentifier(); if (Program.ThisWorkstationType == Domain.Entity.Setup.WorkstationType.Master) { eldingDateLabelLayout.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; weldingDateFromLayout.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; weldingDateToLayout.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } }
private void JointSearchXtraForm_FormClosed(object sender, FormClosedEventArgs e) { commandManager.Dispose(); viewModel.Dispose(); viewModel = null; }
public JointSearchCommand(JointSearchViewModel vm, IJointRepository repo) { viewModel = vm; this.repo = repo; }