Inheritance: ViewModelBase, IDisposable
Ejemplo n.º 1
0
 public JointSearchCommand(JointSearchViewModel vm, IJointRepository repo,
     IUserNotify notify)
 {
     viewModel = vm;
     this.repo = repo;
     this.notify = notify;
 }
Ejemplo n.º 2
0
 public JointSearchCommand(JointSearchViewModel vm, IJointRepository repo,
                           IUserNotify notify)
 {
     viewModel   = vm;
     this.repo   = repo;
     this.notify = notify;
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
        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;
            }
        }
Ejemplo n.º 5
0
        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;
            }
        }
Ejemplo n.º 6
0
 private void JointSearchXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     commandManager.Dispose();
     viewModel.Dispose();
     viewModel = null;
 }
Ejemplo n.º 7
0
 private void JointSearchXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     commandManager.Dispose();
     viewModel.Dispose();
     viewModel = null;
 }
Ejemplo n.º 8
0
 public JointSearchCommand(JointSearchViewModel vm, IJointRepository repo)
 {
     viewModel = vm;
     this.repo = repo;
 }