Example #1
0
        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();
        }
Example #2
0
 public MessageBox(string message, MessageType type, PromptPageState promptPageState, LocationPageState locationPageState = null)
 {
     InitializeComponent();
     this.promptPageState   = promptPageState;
     this.locationPageState = locationPageState;
     this.type = type;
     msg.Text  = message;
 }
 public LocationDialog(LocationPageState locationPageState, LocationType locationType = LocationType.LastKnown)
 {
     InitializeComponent();
     this.locationPageState = locationPageState;
     this.locationType      = locationType;
 }
Example #4
0
 public GeolocationManager(LocationPageState lps = null, PromptPageState promptPageState = null)
 {
     this.lps             = lps;
     this.promptPageState = promptPageState;
 }