Beispiel #1
0
        ///<summary>
        /// Display properties dialog
        ///</summary>
        ///<param name="args">String array of arguments needed</param>
        ///<returns>Status of stop simias else -1</returns>
        private static int showPropertiesDialog(string[] args)
        {
            if (args.Length < 2)
            {
                Console.Write("ERROR: iFolder ID not specified\n");
                return(-1);
            }

            StartSimias(args);

            iFolderPropertiesDialog propsDialog;

            propsDialog             = new iFolderPropertiesDialog(args [1], simiasManager);
            propsDialog.CurrentPage = 0;
            propsDialog.Run();
            propsDialog.Hide();
            propsDialog.Destroy();

            return(StopSimias());
        }
Beispiel #2
0
        private static int showPropertiesDialog(string[] args)
        {
            if (args.Length < 2)
            {
                System.Console.Write("ERROR: iFolder ID not specified\n");
                return(-1);
            }

            Manager manager = new Manager();

            manager.Start();

            iFolderPropertiesDialog propsDialog;

            propsDialog             = new iFolderPropertiesDialog(args [1], manager);
            propsDialog.CurrentPage = 0;
            propsDialog.Run();
            propsDialog.Hide();
            propsDialog.Destroy();

            manager.Stop();

            return(0);
        }