예제 #1
0
        private Telerik.Windows.Controls.RadWindow CreateWindow(DialogMessage dialogMessage)
        {
            Telerik.Windows.Controls.RadWindow win = null;
            switch (dialogMessage.Content)
            {
            //Training
            case ViewTypes.EditChooseClassView:
                win = new EditChooseClassView(dialogMessage);
                break;

            case ViewTypes.EditChooseDepartmentView:
                win = new EditChooseDepartmentView(dialogMessage);
                break;

            case ViewTypes.EditChooseSubjectView:
                win = new EditChooseSubjectView(dialogMessage);
                break;

            case ViewTypes.EditClassView:
                win = new EditClassView(dialogMessage);
                break;

            case ViewTypes.EditDepartmentView:
                win = new EditDepartmentView(dialogMessage);
                break;

            case ViewTypes.EditRoomView:
                win = new EditRoomView(dialogMessage);
                break;

            case ViewTypes.EditSubjectView:
                win = new EditSubjectView(dialogMessage);
                break;

            case ViewTypes.EditTrainingView:
                win = new EditTrainingView(dialogMessage);
                break;



            case ViewTypes.LoginView:
                win = new LoginView(dialogMessage);
                break;

            case ViewTypes.ChangePasswordView:
                win = new ChangePasswordView(dialogMessage);
                break;
            }
            return(win);
        }
예제 #2
0
        //Load when call show dialog window
        private Telerik.Windows.Controls.RadWindow CreateWindow(DialogMessage dialogMessage)
        {
            Telerik.Windows.Controls.RadWindow win = null;
            switch (dialogMessage.Content)
            {
                //Training
                case ViewTypes.EditChooseClassView:
                    win = new EditChooseClassView(dialogMessage);
                    break;
                case ViewTypes.EditChooseDepartmentView:
                    win = new EditChooseDepartmentView(dialogMessage);
                    break;
                case ViewTypes.EditChooseSubjectView:
                    win = new EditChooseSubjectView(dialogMessage);
                    break;
                case ViewTypes.EditClassView:
                    win = new EditClassView(dialogMessage);
                    break;
                case ViewTypes.EditDepartmentView:
                    win = new EditDepartmentView(dialogMessage);
                    break;
                case ViewTypes.EditRoomView:
                    win = new EditRoomView(dialogMessage);
                    break;
                case ViewTypes.EditSubjectView:
                    win = new EditSubjectView(dialogMessage);
                    break;
                case ViewTypes.EditTrainingView:
                    win = new EditTrainingView(dialogMessage);
                    break;
                case ViewTypes.UploadSubjectView:
                    win = new UploadSubjectView(dialogMessage);
                    break;
                case ViewTypes.UploadClassView:
                    win = new UploadClassView(dialogMessage);
                    break;
                case ViewTypes.UploadTrainingView:
                    win = new UploadTrainingView(dialogMessage);
                    break;


                case ViewTypes.LoginView:
                    win = new LoginView(dialogMessage);
                    break;
                case ViewTypes.ChangePasswordView:
                    win = new ChangePasswordView(dialogMessage);
                    break;
                case ViewTypes.UserSettingView:
                    win = new UserSettingView(dialogMessage);
                    break;
            }
            return win;
        }