Exemplo n.º 1
0
        public Main_control(string[] details, LoginForm loginform)
        {
            InitializeComponent();
            //Getting the details...

            this.details   = details;
            this.loginform = loginform;

            //Creating the file for the user...

            string directory = @"C:\PersonalData\" + details[0] + ".txt";

            if (!File.Exists(directory))
            {
                File.Create(directory);
            }
            //Setting up the Main UI...
            home     = new PostLogin.Home(this, write);
            search   = new PostLogin.Search(this, details);
            settings = new PostLogin.Settings(this, details);
            write    = new PostLogin.Write(this, details);
            MainPanel.Controls.Add(home);
            MainPanel.Controls.Add(search);
            MainPanel.Controls.Add(settings);
            MainPanel.Controls.Add(write);
            home.Show();
            search.Show();
            settings.Show();
            write.Show();
            home.BringToFront();
        }
Exemplo n.º 2
0
 public Home(Main_control main_control, Write write)
 {
     InitializeComponent();
     this.TopLevel     = false;
     this.main_control = main_control;
 }