Ejemplo n.º 1
0
 public ChangePassword(PromptPageState promptPageState)
 {
     InitializeComponent();
     this.promptPageState = promptPageState;
     configuration        = AiDataStore.GetConfiguration();
     user = AiDataStore.GetUser();
 }
Ejemplo n.º 2
0
        public FingerPrintScanner(PromptPageState promptPageState)
        {
            InitializeComponent();
            this.promptPageState = promptPageState;

            Init();
        }
Ejemplo n.º 3
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();
        }
Ejemplo n.º 4
0
 public AddTrainingLocation(Models.Training training, PromptPageState promptPageState)
 {
     InitializeComponent();
     this.promptPageState = promptPageState;
     this.training        = training;
     Init();
 }
Ejemplo n.º 5
0
 public AddTrainer(Models.Training training, PromptPageState promptPageState, Configuration configuration)
 {
     InitializeComponent();
     this.promptPageState = promptPageState;
     this.training        = training;
     this.configuration   = configuration;
     Init();
 }
Ejemplo n.º 6
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;
 }
Ejemplo n.º 7
0
        public ChangeUsername(PromptPageState promptPageState)
        {
            InitializeComponent();
            this.promptPageState = promptPageState;
            this.configuration   = AiDataStore.GetConfiguration();
            this.user            = AiDataStore.GetUser();

            Username.Text = user.UserName;
        }
Ejemplo n.º 8
0
 public static void DeserializeConfiguration(FileData fileData, PromptPageState promptPageState)
 {
     try
     {
         string json = System.IO.File.ReadAllText(fileData.FilePath).Replace("\r\n", string.Empty).Replace("\t", string.Empty).Replace("  ", String.Empty);;
         json = Regex.Unescape(json).Replace(@"\s+", "");
         var configuration = JsonConvert.DeserializeObject <Configuration>(json);
         if (configuration != null)
         {
             AiDataStore.SaveConfiguration(configuration);
             App.Current.MainPage = new SignIn();
         }
     }
     catch (Exception ex)
     {
         Log.Warning("Configuration Deserialization Exception", ex.StackTrace);
         Task.Run(async() => await PopupNavigation.Instance.PushAsync(new MessageBox("Your configuration has an issue, please load another one to proceed", MessageType.Configuration, promptPageState)));
     }
 }
Ejemplo n.º 9
0
 public SelectConfiguration(PromptPageState promptPageState)
 {
     InitializeComponent();
     this.promptPageState = promptPageState;
 }
Ejemplo n.º 10
0
 public HelpCenter(PromptPageState promptPageState)
 {
     InitializeComponent();
     this.promptPageState = promptPageState;
 }
Ejemplo n.º 11
0
 public Configurations(User user, PromptPageState promptPageState)
 {
     InitializeComponent();
     this.PromptPageState = promptPageState;
     this.user            = user;
 }
Ejemplo n.º 12
0
 public ConfigurationUrl(PromptPageState promptPageState)
 {
     InitializeComponent();
     this.promptPageState = promptPageState;
 }
Ejemplo n.º 13
0
 public GeolocationManager(LocationPageState lps = null, PromptPageState promptPageState = null)
 {
     this.lps             = lps;
     this.promptPageState = promptPageState;
 }
Ejemplo n.º 14
0
 public ProgressDialog(PromptPageState promptPageState)
 {
     InitializeComponent();
     this.promptPageState = promptPageState;
 }
Ejemplo n.º 15
0
 public Synchronize(PromptPageState promptPageState)
 {
     InitializeComponent();
     this.promptPageState = promptPageState;
 }