private void radioGroup1_SelectedIndexChanged(object sender, EventArgs e) { try { SchedulerGroupType Type = new SchedulerGroupType(); switch (this.radioGroup1.EditValue.ToString()) { case "None": Type = SchedulerGroupType.None; break; case "Date": Type = SchedulerGroupType.Date; break; case "Resource": Type = SchedulerGroupType.Resource; break; } schedulerControl.GroupType = Type; } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } }
public bool IsValid(object owner, Condition condition) { if (!(owner is IWorkspace1)) { return(false); } IWorkspace1 workspace = (IWorkspace1)owner; AppointmentController controller = workspace.FindController <AppointmentController>(""); if (controller != null) { SchedulerGroupType groupType; bool parseSuccess = SchedulerGroupType.TryParse(condition.Name, true, out groupType); if (parseSuccess) { return(controller.IsTheSameGroupType(groupType)); } } return(false); }
public ActionResult Grouping(SchedulerGroupType GroupType) { Session["GroupType"] = GroupType; return(DemoView("Grouping", SchedulerDataHelper.DataObject)); }