public string Schedule(int IdStudent, DateTime Day) { ChannelFactory <IContract> factory = GetFactory(); IContract channel = factory.CreateChannel(); string Result = channel.Schedule(IdStudent, DSHelper.RussianDate(Day)); factory.Close(); return(Result); }
/// <summary> /// Нажать кнопку (Записаться или отменить) /// </summary> /// <param name="buttonValue">Значение кнопки в формате "IdShift|IdShift|IdVehicle|IdVehicle|"</param> public void PressButton(string buttonValue) { DSHelper.ClearValue(); DSHelper.Delimiter = "|"; DSHelper.BuildStringWithDelimeter("IdStudent", idstudent.ToString()); DSHelper.BuildStringWithDelimeter("IdPlace", selectedplace.ToString()); DSHelper.BuildStringWithDelimeter("WayOfAssignment", "DrivingSite"); DSHelper.BuildStringWithDelimeter("DateDrive", DSHelper.RussianDate(Day)); string info = DSHelper.Value + buttonValue; DSConfigurator config = new DSConfigurator(); info = config.Subscribe(info); BuildFromXml(); buttonmessage = info; }