public QSections(DCAnalytics.ObjectType objectType, Questionaire _questionaire, QuestionairePageState questionairePageState = null, Certification _certification = null, FieldInspection _fieldInspection = null) { InitializeComponent(); controls = new UIControls(this); ObjectType = objectType; selectPageState = this; promptPageState = this; picturePageState = this; locationPageState = this; questionaire = null; questionaire = _questionaire; FieldInspection = _fieldInspection; certification = _certification; Title = questionaire.Name; this.questionairePageState = questionairePageState; sectionViews = new List <SectionView>(); _questionaireStatus = string.IsNullOrEmpty(questionaire.Key) ? QuestionaireStatus.Create : QuestionaireStatus.Modify; _dbManager = new DatabaseManager(); user = AiDataStore.GetUser(); configuration = AiDataStore.GetConfiguration(); isValid = true; Sections.Clear(); Sections = (FieldInspection != null) ? FieldInspection.Sections: (certification != null) ? certification.Sections: questionaire.Sections; dependencies.Clear(); navigatedTargetSections.Clear(); controls.targets.Clear(); Init(); }
public SelectCategory(Questionaire Questionaire, QuestionairePageState questionairePageState) { InitializeComponent(); this.questionairePageState = questionairePageState; this.Questionaire = Questionaire; Init(); }
public Questionaires(DCAnalytics.ObjectType objectType, QuestionairePageState questionairePageState = null, string Title = null) { InitializeComponent(); ObjectType = objectType; if (!string.IsNullOrEmpty(Title)) { this.Title = Title; } }
public SelectQuestionaire(Configuration configuration, QuestionairePageState questionairePageState) { InitializeComponent(); this.questionairePageState = questionairePageState; this.configuration = configuration; if (configuration != null) { Init(); } }
public Trainees(Configuration configuration, Models.Training training, QuestionairePageState questionairePageState) { InitializeComponent(); this.questionairePageState = questionairePageState; this.configuration = configuration; this.training = training; if (configuration != null) { Init(); } }
public Starter(Questionaire Questionaire, SelectPageState selectPageState = null, QuestionairePageState questionairePageState = null) { InitializeComponent(); this.Questionaire = Questionaire; this.questionairePageState = questionairePageState; }