Пример #1
0
 public QuitCommand(BaseApplication app,
     String name, CommandScope scope, bool active,
     String dialogTitle, String dialogQuestion)
     : base(name, scope, active, dialogTitle, dialogQuestion)
 {
     application = app;
 }
Пример #2
0
        static void Main()
        {
            Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();

            //String test = "{ 1 3, 4.5 \"fjd\", 7}";
            //List<String> resulting = Utils.StringTokenizer(test, " \t,{}", null);

            globalApp = new DXApplication("dx");
            String[] args = Environment.GetCommandLineArgs();
            globalApp.initialize(ref args);

            //InfoDialog wd = new InfoDialog();
            //wd.modalPost(theApplication.getAboutAppString());

            //MessageBox.Show(resulting);
            //MessageBox.Show("see what happens");
            //Application.Run(new Form1());

            //DXAnchorWindow daw = new DXAnchorWindow("test", true, true);
            System.Diagnostics.Debug.Assert(globalApp.getAnchorForm() != null);
            Application.Run(globalApp.getAnchorForm());
            //InfoDialog id = new InfoDialog();
            //id.modalPost(theApplication.getAboutAppString());
        }