Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ConnectionWin con = new ConnectionWin();

            Application.Run(con);

            con.Dispose();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a FileOverview window. Depending on the selection of the ConnectionWin, its either a Client or a Server.
        /// The according function is triggered
        /// </summary>
        /// <param name="server">The servername. "localhost" if it is a server</param>
        /// <param name="login">A possible loginname - not used right now</param>
        /// <param name="passwd">A possible passwor - not used right now</param>
        /// <param name="c">The connectionWin - needed to destroy it. No idea why it didn't destroy itself...</param>
        public FileOverview(Client cli, string s, ConnectionWin c)
        {
            con = c;
            InitializeWindow();

            //isLocal = false;
            this.serverString = s;

            //client = new Client(this, serverString, login, passwd);
            client = cli;
            this.Text = "Access Tracker: " + serverString;
        }
Exemplo n.º 3
0
        public FileOverview(ConnectionWin c, string dbPath)
        {
            con = c;

            isLocalConn = true;
            InitializeWindow();

                this.dbProgressBar.Visible = false;
                this.progressbarAfterLabel.Visible = false;
                this.progressbarBeforeLabel.Visible = false;
                this.toolStripStatusLabel2.Visible = false;
                this.availablediskSpaceLabel.Visible = false;

            statusStrip1.Update();
            dbConnString = @"Data Source=" + dbPath;
            this.Text = "Access Tracker: " + dbPath;
        }
Exemplo n.º 4
0
        /// <summary>
        /// Creates a FileOverview window without connecting to a server - just locally
        /// </summary>
        /// <param name="c"></param>
        public FileOverview(ConnectionWin c)
        {
            con = c;
            InitializeWindow();
            // isLocal = true;
            this.Visible = true;

            // Hook up the Elapsed event for the timer.
            //            updateTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            //            updateTimer.Enabled = true;
        }