Exemple #1
0
 public reg(ForumConnection ForumConnectionImp, CurrentForumState State, string forum_name)
 {
     CurrentState = State;
     myConnection = ForumConnectionImp;
     InitializeComponent();
     this.forum.Text = forum_name;
 }
Exemple #2
0
        public Form1(ForumConnection myConnectionP, CurrentForumState State)
        {
            myConnection = myConnectionP;
            CurrentState = State;
            InitializeComponent();
            try
            {
                myConnection.connect();
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }

            //testing

            /**
             * myConnection.SPlogin("amir", "1234");
             * myConnection.BuildForum("united");
             * myConnection.Registration("united", "shim", "shim", "*****@*****.**", "shim");
             * //     myConnection.EmailConfirm(433, "shim");
             * myConnection.entry("united");
             * myConnection.login("amir", "1234");
             * myConnection.AddNewSubForum("Giggs!!", new MemberInfo { id = Int2Guid(-1) });
             * myConnection.loggout();
             **/
        }
Exemple #3
0
        public loginWindow(ForumConnection myConnectionP, CurrentForumState State)
        {
            this.myConnection = myConnectionP;
            CurrentState      = State;

            InitializeComponent();
        }
Exemple #4
0
 public static void setup(TestContext ss)
 {
     _server = new TpcServer(12343, new ForumSystemTest());
     _server.start();
     Thread.Sleep(1000);
     forum = new ForumConnectionImpl(TpcServer.LocalIPAddress().ToString(), 12343);
     forum.connect();
 }
Exemple #5
0
 public TheNewCommetWindow(ForumConnection myConnectionP, CurrentForumState State, PostInfo relevatPost)
 {
     InitializeComponent();
     SubjectPost       = relevatPost;
     this.myConnection = myConnectionP;
     CurrentState      = State;
     textBox1.Text     = SubjectPost.msg;
     refreshAllPost();
 }
Exemple #6
0
 public Form1(ForumConnection myConnectionP, CurrentForumState State)
 {
     myConnection = myConnectionP;
     CurrentState = State;
     InitializeComponent();
     try{
         myConnection.connect();
     }
     catch (Exception e) {
         MessageBox.Show(e.Message);
     }
 }
Exemple #7
0
 public ManagerPresentation(ForumConnection myConnectionP, CurrentForumState State)
 {
     CurrentState      = State;
     this.myConnection = myConnectionP;
     InitializeComponent();
     listBox1.Items.Clear();
     this.CurrentState.allForum = myConnection.WatchAllForums();
     for (int i = 0; i < this.CurrentState.allForum.Count; i++)
     {
         listBox1.Items.Add(this.CurrentState.allForum.ElementAt(i).name);
     }
 }
Exemple #8
0
        public userPreNew(ForumConnection myConnectionP, CurrentForumState State)
        {
            CurrentState = State;
            int currentTread;

            InitializeComponent();
            this.myConnection = myConnectionP;
            this.allThreads   = this.myConnection.WatchAllThreads(CurrentState.currentSubForumInfo);
            for (int i = 0; i < allThreads.Count; i++)
            {
                listBox2.Items.Add(allThreads.ElementAt(i).msg);
            }
        }
Exemple #9
0
        public PolicyPanel(ForumConnection myConnectionP, CurrentForumState State)
        {
            CurrentState      = State;
            this.myConnection = myConnectionP;
            InitializeComponent();
            CurrentState.currentPolicyInfo = myConnection.GetPolicyParam(CurrentState.myForum);

            for (int i = 0; i < CurrentState.currentPolicyInfo.ileg.Count; i++)
            {
                listBox2.Items.Add(this.CurrentState.currentPolicyInfo.ileg.ElementAt(i));
            }
            this.textBox3.Text = Convert.ToString(this.CurrentState.currentPolicyInfo.maxmoth);
            this.textBox2.Text = Convert.ToString(this.CurrentState.currentPolicyInfo.minword);
        }
Exemple #10
0
 public ManagerLogin(ForumConnection myConnectionP, CurrentForumState State)
 {
     CurrentState      = State;
     this.myConnection = myConnectionP;
     InitializeComponent();
 }
Exemple #11
0
 public reg(ForumConnection ForumConnectionImp, CurrentForumState State)
 {
     CurrentState = State;
     myConnection = ForumConnectionImp;
     InitializeComponent();
 }