예제 #1
0
 protected void GetSecomdaryMapManually()
 {
     using (dlgCreateMapManually dlg = new dlgCreateMapManually())
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             MCityDataHelper chelp = new MCityDataHelper(dlg.PLaceId);
             DynamInfo = new MDynamicMapUpdateInfo()
             {
                 AdditionalHour = 0,
                 DynamicDate    = new DateTime(dlg.Year, dlg.Month, dlg.Day, dlg.Hour, dlg.Min, 0),
                 EventPlace     = chelp.Data,
                 MapType        = NostraPlanetarium.NPTypes.tAstroMapType.SYNASTRY
             };
             dlg.Close();
         }
     }
 }
예제 #2
0
 protected void UpdateDynamoInfo()
 {
     if (_person != null)
     {
         int h = 0;
         int m = 0;
         int s = 0;
         Utilities.GetMidleValue(_person, out h, out m, out s);
         lblSelected.Text = $"{_person.SecondName} {_person.FirstName.Substring(0, 1)}. ({_person.BirthDay}/{_person.BirthMonth}/{_person.BirthYear})";
         MCityDataHelper mcd = new MCityDataHelper(_person.Place);
         DynamInfo = new MDynamicMapUpdateInfo()
         {
             AdditionalHour = _person.AdditionalHours,
             DynamicDate    = new DateTime(_person.BirthYear, _person.BirthMonth, _person.BirthDay, h, m, s),
             EventPlace     = mcd.Data,
             MapType        = NostraPlanetarium.NPTypes.tAstroMapType.SYNASTRY
         };
     }
 }
        protected void CalculateEventPlace(int Id)
        {
            MCityDataHelper mhelper = new MCityDataHelper(Id);

            EventPlace = mhelper.Data;
        }