Пример #1
0
        public static SetAssignmentDialog Create(ProjectNameRequestEventArgs e)
        {
            var d = new SetAssignmentDialog();

            d.ProjectNames = e.ProjectNames;
            return(d);
        }
Пример #2
0
        void am_AssignmentRequestProjectName(object sender, ProjectNameRequestEventArgs e)
        {
            Log.Write(LogLevel.Normal, "START: richiesto nome progetto");
            if (Global.IsDevelopAccount)
            {
                e.SelectedProjectName = e.ProjectNames[0];
                e.NameAs = "Rossi";
                return;
            }
            var d   = SetAssignmentDialog.Create(e);
            var cmd = d.ShowDialog();

            if (cmd == DialogResult.OK)
            {
                e.SelectedProjectName = d.SelectedProjectName;
                e.NameAs = d.ProjectNameAs;
            }
            else
            {
                e.Abort = true;
            }
            d.Dispose();
        }
Пример #3
0
 public static SetAssignmentDialog Create(ProjectNameRequestEventArgs e)
 {
     var d = new SetAssignmentDialog();
     d.ProjectNames = e.ProjectNames;
     return d;
 }