Beispiel #1
0
        private void addButton_Click(object sender, EventArgs e)
        {
            if (nameInput.Text == "")
            {
                MessageBox.Show("登録名を入力してください。");

                return;
            }

            this.Result = BookmarkFormResult.ADD;
            this.City   = new BookmarkedCity.City(nameInput.Text, CityLocation.Lat, CityLocation.Lng);

            this.Close();
        }
Beispiel #2
0
        private void deleteButton_Click(object sender, EventArgs e)
        {
            if (nameInput.Text == "")
            {
                MessageBox.Show("登録名を入力してください。");

                return;
            }

            this.Result   = BookmarkFormResult.DELETE;
            this.CityName = nameInput.Text;

            this.Close();
        }
Beispiel #3
0
        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.Result = BookmarkFormResult.CANCEL;

            this.Close();
        }
Beispiel #4
0
        public BookmarkForm()
        {
            InitializeComponent();

            Result = BookmarkFormResult.CANCEL;
        }