Ejemplo n.º 1
0
 /// <summary>
 /// Add onPreviewMouseDown listener.
 /// </summary>
 /// <param name="_controller"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyTextBlock</returns>
 public IMyTextBlock addOnPreviewMouseDown(IMyView _view, string _methodName)
 {
     myTextBlock_tb.PreviewMouseDown += delegate(object sender, MouseButtonEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Add onValueChanged listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyProgressBar</returns>
 public IMyProgressBar addOnValueChanged(IMyView _view, string _methodName)
 {
     myProgressBar_pb.ValueChanged += delegate(object sender, RoutedPropertyChangedEventArgs <double> e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Add onDropDownClosed listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyComboBox</returns>
 public IMyComboBox addOnDropDownClosed(IMyView _view, string _methodName)
 {
     myComboBox_cbo.DropDownClosed += delegate(object sender, EventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Add onSelectionChanged listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyComboBox</returns>
 public IMyComboBox addOnSelectionChanged(IMyView _view, string _methodName)
 {
     myComboBox_cbo.SelectionChanged += delegate(object sender, SelectionChangedEventArgs e) {
         _view.callMethod(_methodName, ((sender as System.Windows.Controls.ComboBox).SelectedItem as ComboBoxItem));
     };
     return(this);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Add onGotFocus listener.
 /// </summary>
 /// <param name="_controller"></param>
 /// <param name="_methodName"></param>
 /// <returns></returns>
 public IMyPasswordBox addOnGotFocus(IMyView _view, string _methodName)
 {
     myPasswordBox_pwd.GotFocus += delegate(object sender, RoutedEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Add onPreviewMouseDown listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns></returns>
 public IMyPasswordBox addOnPreviewMouseDown(IMyView _view, string _methodName)
 {
     myPasswordBox_pwd.PreviewMouseDown += delegate(object sender, MouseButtonEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Add onTextChanged listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyPasswordBox</returns>
 public IMyPasswordBox addOnTextChanged(IMyView _view, string _methodName)
 {
     myPasswordBox_pwd.PasswordChanged += delegate(object sender, RoutedEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// OVERLOAD Add onUnchecked listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyCheckBox</returns>
 public IMyCheckBox addOnUnchecked(IMyView _view, string _methodName)
 {
     myCheckBox_chk.Unchecked += delegate(object sender, System.Windows.RoutedEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Add onChecked listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyRadioButton</returns>
 public IMyRadioButton addOnChecked(IMyView _view, string _methodName)
 {
     myRadioButton_rdo.Checked += delegate(object sender, System.Windows.RoutedEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Add onGotFocus listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns></returns>
 public IMyProgressBar addOnGotFocus(IMyView _view, string _methodName)
 {
     myProgressBar_pb.GotFocus += delegate(object sender, RoutedEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// OVERLOAD Add onClick listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyButton</returns>
 public IMyButton addOnClick(IMyView _view, string _methodName)
 {
     myButton_btn.Click += delegate(object sender, RoutedEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Add onTextChanged listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyTextBox</returns>
 public IMyTextBox addOnTextChanged(IMyView _view, string _methodName)
 {
     myTextBox_txt.TextChanged += delegate(object sender, TextChangedEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Add onSelectionChanged listener.
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyListView</returns>
 public IMyListView addOnSelectionChanged(IMyView _view, string _methodName)
 {
     myListView_lv.SelectionChanged += delegate(object sender, SelectionChangedEventArgs e) {
         _view.callMethod(_methodName, myListView_lv.SelectedItem);
     };
     return(this);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// OVERLOAD Add onMouseHover listener.
 /// </summary>
 /// <param name=""></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyButton</returns>
 public IMyButton addOnMouseHover(IMyView _view, string _methodName)
 {
     myButton_btn.MouseEnter += delegate(object sender, MouseEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Add onGotFocus listener
 /// </summary>
 /// <param name="_view"></param>
 /// <param name="_methodName"></param>
 /// <returns>IMyTextBox</returns>
 public IMyTextBox addOnGotFocus(IMyView _view, string _methodName)
 {
     myTextBox_txt.GotFocus += delegate(object sender, System.Windows.RoutedEventArgs e) {
         _view.callMethod(_methodName);
     };
     return(this);
 }
        public void Run(IWorkspace tabWorkspace)
        {
            IMyView     view      = this.Items.AddNew <MyView>();
            MyPresenter presenter = new MyPresenter(view);

            this.Items.Add(presenter);
            tabWorkspace.Show(view);
        }
 public ListSubjectofDepartmentController(IMyView _myView) : base(_myView)
 {
 }
Ejemplo n.º 18
0
 public PickupController(IMyView _myView) : base(_myView)
 {
 }
Ejemplo n.º 19
0
 public LoginController(IMyView _myView) : base(_myView)
 {
 }
 public static CreatePolyMasterController CreateInstance(IMyView _myView)
 {
     return(new CreatePolyMasterController(_myView));
 }
 public CreatePolyMasterController(IMyView _myView) : base(_myView)
 {
 }
 public RegisterController(IMyView _myView) : base(_myView)
 {
 }
Ejemplo n.º 23
0
 public DashboardController(IMyView _myView) : base(_myView)
 {
 }
Ejemplo n.º 24
0
 public StaffController(IMyView _myView) : base(_myView)
 {
 }
Ejemplo n.º 25
0
 public MyPresenter(IMyView view)
 {
     View          = view;
     View.SomeData = "test string";
 }
Ejemplo n.º 26
0
 public MyModelController(IMyView view, MyModel mm)
 {
     _myView  = view;
     _MyModel = mm;
     view.SetController(this);
 }
Ejemplo n.º 27
0
 public HistoryDetailController(IMyView _myView) : base(_myView)
 {
 }
Ejemplo n.º 28
0
 public EditAbsensiController(IMyView _myView) : base(_myView)
 {
 }
Ejemplo n.º 29
0
 public BookingController(IMyView _myView) : base(_myView)
 {
 }
 public CreateController(IMyView _myView) : base(_myView)
 {
 }