public void NotedSystem(string name, string note, bool target) { this.Text = "System Information"; buttonCancel.Hide(); buttonDelete.Hide(); textBoxNotes.Hide(); textBoxTime.Hide(); labelTimeMade.Hide(); labelBookmarkNotes.Hide(); textBoxName.Text = name; textBoxTravelNote.Text = (note != null) ? note : ""; int delta = textBoxTravelNote.Location.Y - checkBoxTarget.Location.Y; // before we move it checkBoxTarget.Location = new Point(checkBoxTarget.Location.X, labelTimeMade.Location.Y); buttonEDSM.Location = new Point(buttonEDSM.Location.X, labelTimeMade.Location.Y); ShiftLocationY(buttonOK, delta); ShiftLocationY(labelTravelNote, delta); ShiftLocationY(labelTravelNoteEdit, delta); ShiftLocationY(textBoxTravelNote, delta); this.Height -= delta; checkBoxTarget.Checked = target; var edsm = new EDSM.EDSMClass(); edsmurl = edsm.GetUrlToEDSMSystem(name); }
public void Update(string name, string note, string bookmarknote, string tme, bool regionmark, bool istarget) { this.Text = "Update Bookmark"; buttonOK.Text = "Update"; textBoxName.Text = name; textBoxName.ReadOnly = !regionmark; textBoxNotes.Text = bookmarknote; textBoxTravelNote.Text = note; textBoxTime.Text = tme; checkBoxTarget.Checked = istarget; if (regionmark) { buttonEDSM.Hide(); labelTravelNote.Hide(); labelTravelNoteEdit.Hide(); textBoxTravelNote.Hide(); int delta = buttonOK.Location.Y - labelTravelNote.Location.Y; ShiftLocationY(buttonOK, delta); ShiftLocationY(buttonCancel, delta); ShiftLocationY(buttonDelete, delta); this.Height -= delta; } else { var edsm = new EDSM.EDSMClass(); edsmurl = edsm.GetUrlToEDSMSystem(name); } }
public void NewSystemBookmark(string name, string note, string tme) { this.Text = "New System Bookmark"; textBoxName.Text = name; textBoxTravelNote.Text = note; textBoxTime.Text = tme; buttonDelete.Hide(); var edsm = new EDSM.EDSMClass(); edsmurl = edsm.GetUrlToEDSMSystem(name); }