예제 #1
0
        private void gvProgramList_DoubleClick(object sender, EventArgs e)
        {
            string id = gvProgramList.GetRowCellValue(index, this.ID).ToString();

            if (id != null)
            {
                GUI.GUI_Program_CreateProgram editform = new GUI_Program_CreateProgram();
                editform.idprogram = id;
                editform.idacc     = pr.LoadProgram(id).Single().idAccount;
                editform.ShowDialog();
            }
            loadData();
        }
예제 #2
0
 private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     GUI.GUI_Program_CreateProgram crp = new GUI_Program_CreateProgram();
     crp.ShowDialog();
     loadData();
 }