public ChangePassword(PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; configuration = AiDataStore.GetConfiguration(); user = AiDataStore.GetUser(); }
public FingerPrintScanner(PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; Init(); }
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 AddTrainingLocation(Models.Training training, PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; this.training = training; Init(); }
public AddTrainer(Models.Training training, PromptPageState promptPageState, Configuration configuration) { InitializeComponent(); this.promptPageState = promptPageState; this.training = training; this.configuration = configuration; Init(); }
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 ChangeUsername(PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; this.configuration = AiDataStore.GetConfiguration(); this.user = AiDataStore.GetUser(); Username.Text = user.UserName; }
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))); } }
public SelectConfiguration(PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; }
public HelpCenter(PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; }
public Configurations(User user, PromptPageState promptPageState) { InitializeComponent(); this.PromptPageState = promptPageState; this.user = user; }
public ConfigurationUrl(PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; }
public GeolocationManager(LocationPageState lps = null, PromptPageState promptPageState = null) { this.lps = lps; this.promptPageState = promptPageState; }
public ProgressDialog(PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; }
public Synchronize(PromptPageState promptPageState) { InitializeComponent(); this.promptPageState = promptPageState; }