Beispiel #1
0
        private string filename;                    // original filename


        public ImportAudio(View.ProjectView view, urakawa.core.TreeNode node, string filename) : base(view)
        {
            this.trackNode      = node;
            this.filename       = filename;
            this.audioNode      = view.Project.CreateAudioNode(filename);
            this.selectionAfter = new NodeSelection(view, this.audioNode);
        }
        public int tryLogin(string userName, string pwd, string userType)
        {
            int valid = 0;

            Console.WriteLine(pwd);

            int validated = validateUser(userName, pwd);

            if (validated == 1)
            {
                cu.SetUserId(userName);

                Console.WriteLine(cu.getUserId());

                Console.WriteLine("you have successfully logged in");

                var result = db.getCurrentUser(userName);

                Console.WriteLine(result);


                if (userType.Equals("standard"))
                {
                    pv = new ProjectView();

                    pv.SetUserId(userName);

                    pv.Show();
                }

                else if (userType.Equals("manager"))
                {
                    mv = new ManagerView();

                    mv.setUserName(userName);

                    mv.Show();
                }
                valid = 1;
            }
            else if (validated == 0)
            {
                Console.WriteLine("The username/password combination does not match! Please try again, Make sure caps lock is not pressed");
                valid = 0;
            }
            return(valid);
        }
Beispiel #3
0
 public Command(View.ProjectView view)
 {
     this.view            = view;
     this.selectionBefore = view.Selection;
     this.updateSelection = true;
 }
Beispiel #4
0
        private urakawa.core.TreeNode node;         // node for the new track

        public NewTrack(View.ProjectView view) : base(view)
        {
            this.node           = getPresentation().getTreeNodeFactory().createNode(typeof(TrackNode).Name, DataModelFactory.NS);
            this.selectionAfter = new NodeSelection(view, this.node);
        }