示例#1
0
        private void cmdSurveyDate_Click(object sender, EventArgs e)
        {
            frmSurveyDateTime frm = new frmSurveyDateTime(SurveyDate);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                SurveyDate         = frm.SurveyDateTime;
                txtSurveyDate.Text = SurveyDate is SurveyDateTime?SurveyDate.ToString() : SurveyDateTime.NotSetString;
            }
        }
示例#2
0
        public Dictionary <string, string> AsDictionary()
        {
            var dict = new Dictionary <string, string> {
                { "study", "uqmndv1" },
                { "name", ParticipantName },
                { "user_id", ParticipantID },
                { "submission_date", SurveyDate.ToString() },
                { "submission", SurveyYYYYMMDD }
            };

            foreach (var s in _sections)
            {
                dict.Add(s.SectionVariable, s.CompletionText);
            }
            dict.Add("D21", Weight.ToString());
            foreach (var q in _questions)
            {
                dict.Add(q.QuestionVariable, Math.Round(q.AnswerValue, 1).ToString());
            }

            return(dict);
        }
示例#3
0
        private void frmDEMProperties_Load(object sender, EventArgs e)
        {
            Cursor = Cursors.WaitCursor;

            Text       = string.Format("{0} Properties", Raster.Noun);
            cmdOK.Text = Properties.Resources.UpdateButtonText;

            txtName.Text = Raster.Name;
            txtPath.Text = ProjectManager.Project.GetRelativePath(Raster.Raster.GISFileInfo);

            ucRasterProperties1.Initialize(Raster.Noun, Raster.Raster);

            if (Raster is DEMSurvey)
            {
                txtSurveyDate.Text = SurveyDate is SurveyDateTime?SurveyDate.ToString() : SurveyDateTime.NotSetString;
            }
            else
            {
                lblSurveyDate.Visible       = false;
                txtSurveyDate.Visible       = false;
                cmdSurveyDate.Visible       = false;
                ucRasterProperties1.Height += ucRasterProperties1.Top - txtSurveyDate.Top;
                ucRasterProperties1.Top     = txtSurveyDate.Top;
            }

            if (!ProjectManager.IsArcMap)
            {
                cmdAddTopMap.Visible = false;
                txtPath.Width        = cmdAddTopMap.Right - txtPath.Left;
            }

            tTip.SetToolTip(txtName, "The name used to refer to this item within the GCD project. It cannot be empty and it must be unique among all other items of this type.");
            tTip.SetToolTip(txtPath, "The relative file path of this raster within the GCD project.");
            tTip.SetToolTip(cmdAddTopMap, "Add the raster to the current map document.");
            tTip.SetToolTip(txtSurveyDate, "The date on which the DEM survey was collected.");
            tTip.SetToolTip(cmdSurveyDate, "Configure the date on which the DEM survey was collected.");

            Cursor = Cursors.Default;
        }
示例#4
0
 public override int GetHashCode()
 {
     return($"{MapImageName}:{CityVillageTownship}:{State}:{County}:{DefunctTownship}:{LotNumbers}:{Section}:{Tract}:{Range}:{SurveyDate.ToString()}:{SurveyorName}:{Address}:{CrossStreet}:{ParcelNumbers}:{AutomatedFileNumber}:{Subdivision}:{Sublot}:{SurveyName}:{ClientName}:{Notes}".GetHashCode());
 }