Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        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;
        }