예제 #1
0
파일: TopBarControl.cs 프로젝트: ltj/rentit
 private void YourMediaButtonClick(object sender, EventArgs e)
 {
     // go to active rentals list if user
     // go to published media list if publisher
     Cursor.Current = Cursors.WaitCursor;
     if (isPublisher)
     { //if publisher
         var pubMan = new PublisherAccountManagement { RentItProxy = RentItProxy, Credentials = Credentials };
         pubMan.SelectTab(1);
         FireContentChangeEvent(pubMan, MainForm.Titles.PublisherAccountManagement);
     }
     else
     {
         var userMan = new UserAccountManagement { RentItProxy = RentItProxy, Credentials = Credentials };
         userMan.SelectTab(1);
         FireContentChangeEvent(userMan, MainForm.Titles.UserAccountManagement);
     }
     Cursor.Current = Cursors.Default;
 }
예제 #2
0
파일: TopBarControl.cs 프로젝트: ltj/rentit
        private void UserNameLabelLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (!LoggedIn)
            {
                RentItMessageBox.NotLoggedIn();
                return;
            }

            // go to account screen (check whether publisher or user)
            Cursor.Current = Cursors.WaitCursor;
            if (isPublisher)
            { //if publisher
                var pubMan = new PublisherAccountManagement { RentItProxy = RentItProxy, Credentials = Credentials };
                FireContentChangeEvent(pubMan, MainForm.Titles.PublisherAccountManagement);
            }
            else
            {
                var userMan = new UserAccountManagement { RentItProxy = RentItProxy, Credentials = Credentials };
                FireContentChangeEvent(userMan, MainForm.Titles.UserAccountManagement);
            }
            Cursor.Current = Cursors.Default;
        }