예제 #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     tasksSection = (TaskSection)e.Parameter;
     selected     = false;
     if (AdaptiveApp.CurrentState.Name == "Phone")
     {
         if (selected)
         {
             FirstColumn.Width  = new GridLength(0);
             SecondColumn.Width = new GridLength(1, GridUnitType.Star);
         }
         else
         {
             FirstColumn.Width  = new GridLength(1, GridUnitType.Star);
             SecondColumn.Width = new GridLength(0);
         }
     }
     UpdateGroupedList();
 }
예제 #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     tasksSection = (TaskSection)e.Parameter;
     selected = false;
     if (AdaptiveApp.CurrentState.Name == "Phone")
     {
         if (selected)
         {
             FirstColumn.Width = new GridLength(0);
             SecondColumn.Width = new GridLength(1, GridUnitType.Star);
         }
         else
         {
             FirstColumn.Width = new GridLength(1, GridUnitType.Star);
             SecondColumn.Width = new GridLength(0);
         }
     }
     UpdateGroupedList();
 }
예제 #3
0
        public static void Init(string sectionType)
        {
            if (sectionType == "groupSection")
            {
                WorkSection groupSection = (WorkSection)ConfigurationManager.GetSection("sntConfig/workGroups");

                workGroups = new Dictionary <string, WorkGroupElement>();
                for (int i = 0; i < groupSection.WorkGroups.Count; i++)
                {
                    WorkGroupElement element = groupSection.WorkGroups[i];
                    workGroups.Add(element.Type, element);
                }
            }
            if (sectionType == "taskSection")
            {
                TaskSection taskSection = (TaskSection)ConfigurationManager.GetSection("sntConfig/taskParameters");
                taskParameters = new Dictionary <string, TaskParameterElement>();
                for (int i = 0; i < taskSection.TaskParameters.Count; i++)
                {
                    TaskParameterElement element = taskSection.TaskParameters[i];
                    taskParameters.Add(element.Type, element);
                }
            }
        }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     taskSection = this;
 }