Click here to Skip to main content
12,450,905 members (49,670 online)
   

Java

 
QuestionJava code Convert to C# Pin
LAPEC13-Nov-12 12:03
memberLAPEC13-Nov-12 12:03 
Hello Everyone

I'm trying to convert this java code to C#, could someone please help me on this because I am very new into programming.
Here is the Java code...
import java.awt.Component;
 
import javax.swing.JOptionPane;
 
public class ConfirmDeleteDialog {
	public static final int YES = JOptionPane.YES_OPTION;
	public static final int NO = JOptionPane.NO_OPTION;
	public static final int CANCEL = JOptionPane.CANCEL_OPTION;
	static final int OK = JOptionPane.OK_OPTION;
	static final int CLOSED = JOptionPane.CLOSED_OPTION;
 
	public static int showMessage(Component parent, String message, String title) {
		return JOptionPane.showConfirmDialog(parent, message, title, JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
	}
 
}

thanks in advance

lapeci
AnswerRe: Java code Convert to C# Pin
Bernhard Hiller13-Nov-12 21:14
memberBernhard Hiller13-Nov-12 21:14 
GeneralRe: Java code Convert to C# Pin
LAPEC14-Nov-12 0:19
memberLAPEC14-Nov-12 0:19 
QuestionRe: Java code Convert to C# Pin
Blikkies14-Nov-12 1:06
memberBlikkies14-Nov-12 1:06 
GeneralRe: Java code Convert to C# Pin
Richard MacCutchan14-Nov-12 1:34
mvpRichard MacCutchan14-Nov-12 1:34 
AnswerRe: Java code Convert to C# Pin
Richard MacCutchan13-Nov-12 21:16
mvpRichard MacCutchan13-Nov-12 21:16 
AnswerRe: Java code Convert to C# Pin
Dave Doknjas17-Nov-12 3:17
memberDave Doknjas17-Nov-12 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 26 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid