Inheritance: ViewModelBase, IDisposable
コード例 #1
0
 public JointSearchCommand(JointSearchViewModel vm, IJointRepository repo,
     IUserNotify notify)
 {
     viewModel = vm;
     this.repo = repo;
     this.notify = notify;
 }
コード例 #2
0
 public JointSearchCommand(JointSearchViewModel vm, IJointRepository repo,
                           IUserNotify notify)
 {
     viewModel   = vm;
     this.repo   = repo;
     this.notify = notify;
 }
コード例 #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();
 }
コード例 #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;
            }
        }
コード例 #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;
            }
        }
コード例 #6
0
 private void JointSearchXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     commandManager.Dispose();
     viewModel.Dispose();
     viewModel = null;
 }
コード例 #7
0
 private void JointSearchXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     commandManager.Dispose();
     viewModel.Dispose();
     viewModel = null;
 }
コード例 #8
0
ファイル: JointSearchCommand.cs プロジェクト: horba/prizm
 public JointSearchCommand(JointSearchViewModel vm, IJointRepository repo)
 {
     viewModel = vm;
     this.repo = repo;
 }