// 表示文字設定
 public void UserEditSet(DbItem item)
 {
     if (item.userName.IndexOf("- ") == 0)
     {
         eventName.Text = item.userName.Substring(2);
     }
     else
     {
         eventName.Text = item.userName;
     }
     eventBirth.SelectedDate     = item.userBirth;
     eventHour.Text              = item.userHour;
     eventMinute.Text            = item.userMinute;
     eventSecond.Text            = item.userSecond;
     eventPlace.Text             = item.userPlace;
     eventLat.Text               = item.userLat;
     eventLng.Text               = item.userLng;
     eventTimezone.SelectedIndex = CommonData.getTimezoneIndex(item.userTimezone);
     eventMemo.Text              = item.memo;
 }
Ejemplo n.º 2
0
 // 表示文字設定
 public void UserEditSet(DbItem item)
 {
     fileName.Text = item.fileNameNoExt;
     if (userName.Text.IndexOf("- ") == 0)
     {
         userName.Text = item.userName.Substring(2);
     }
     else
     {
         userName.Text = item.userName;
     }
     userFurigana.Text          = item.userFurigana;
     userBirth.SelectedDate     = item.userBirth;
     userHour.Text              = item.userHour;
     userMinute.Text            = item.userMinute;
     userSecond.Text            = item.userSecond;
     userPlace.Text             = item.userPlace;
     userLat.Text               = item.userLat;
     userLng.Text               = item.userLng;
     userTimezone.SelectedIndex = CommonData.getTimezoneIndex(item.userTimezone);
     userMemo.Text              = item.memo;
 }
 // 表示文字リフレッシュ
 public void UserEditRefresh(DbItem item)
 {
     UserEditClear();
     UserEditSet(item);
 }
 public UserEventEditWindow(DatabaseWindow dbwindow, DbItem item)
 {
     this.dbwindow = dbwindow;
     InitializeComponent();
     UserEditSet(item);
 }