示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            EventDataService eventDataService = new EventDataService();
            Event            events           = eventDataService.GetTheEvent(Convert.ToInt32(Upd_EventID.Text), usingUserId);

            if (events != null)
            {
                Upd_EventName.Text  = events.EventName;
                Upd_Importance.Text = events.Importance;
            }
            else
            {
                MessageBox.Show("Invalid Event Id");
            }
        }
示例#2
0
        private void button3_Click(object sender, EventArgs e)
        {
            EventDataService eventDataService = new EventDataService();
            Event            events           = eventDataService.GetTheEvent(Convert.ToInt32(GoEventID.Text), usingUserId);

            if (events != null)
            {
                this.Hide();
                ImageActions imageActions = new ImageActions(Convert.ToInt32(GoEventID.Text), usingUserId);
                imageActions.Show();
            }
            else
            {
                MessageBox.Show("Invalid Event Id");
                GoEventID.Text = null;
            }
        }