Hi all
I define Several class for Create The SMS panel in c#.net
in the one of them , I Define event and delegate for send and recieve SMS
but when run it , i have problem :
at last of code :
1-The type 'WCF_SMS.FanavaranBishapour_PanelSms.Windows' already contains a definition for 'CHECK_APICompleted'
2- The type 'WCF_SMS.FanavaranBishapour_PanelSms.Windows' already contains a definition for 'CHECK_CREDITCompleted
3- The type 'WCF_SMS.FanavaranBishapour_PanelSms.Windows' already contains a definition for 'CHECK_InfoCompleted'
namespace WCF_SMS.FanavaranBishapour_PanelSms
{
[GeneratedCode("System.Web.Services", "4.0.30319.1"), DebuggerStepThrough, DesignerCategory("code")]
public class CHECK_APICompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal CHECK_APICompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public Result_API_Windows[] Result { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void CHECK_APICompletedEventHandler(object sender, CHECK_APICompletedEventArgs e);
[DebuggerStepThrough, GeneratedCode("System.Web.Services", "4.0.30319.1"), DesignerCategory("code")]
public class CHECK_CREDITCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal CHECK_CREDITCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public decimal Result { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void CHECK_CREDITCompletedEventHandler(object sender, CHECK_CREDITCompletedEventArgs e);
[GeneratedCode("System.Web.Services", "4.0.30319.1"), DebuggerStepThrough, DesignerCategory("code")]
public class CHECK_InfoCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal CHECK_InfoCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public Result_Info_Windows Result { get; }
public string Return_Str { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void CHECK_InfoCompletedEventHandler(object sender, CHECK_InfoCompletedEventArgs e);
[GeneratedCode("System.Web.Services", "4.0.30319.1"), DebuggerStepThrough, DesignerCategory("code")]
public class CHECK_LOGINCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal CHECK_LOGINCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public bool Result { get; }
public string Return_Str { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void CHECK_LOGINCompletedEventHandler(object sender, CHECK_LOGINCompletedEventArgs e);
[GeneratedCode("System.Web.Services", "4.0.30319.1"), DebuggerStepThrough, DesignerCategory("code")]
public class INBox_SmsCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal INBox_SmsCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public Result_INBOX_Windows[] Result { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void INBox_SmsCompletedEventHandler(object sender, INBox_SmsCompletedEventArgs e);
[DesignerCategory("code"), GeneratedCode("System.Web.Services", "4.0.30319.1"), DebuggerStepThrough]
public class OUTBOX_SmsCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal OUTBOX_SmsCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public Result_OUTBOX_Windows[] Result { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void OUTBOX_SmsCompletedEventHandler(object sender, OUTBOX_SmsCompletedEventArgs e);
[DesignerCategory("code"), DebuggerStepThrough, GeneratedCode("System.Web.Services", "4.0.30319.1")]
public class Receive_SmsCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal Receive_SmsCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public Result_Receive_Windows[] Result { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void Receive_SmsCompletedEventHandler(object sender, Receive_SmsCompletedEventArgs e);
[Serializable, XmlType(Namespace="http://tempuri.org/"), DesignerCategory("code"), GeneratedCode("System.Xml", "4.0.30319.450"), DebuggerStepThrough]
public class Result_API_Windows
{
private int aPI_ABILITY_ONE_TO_N_MIN_ORDERField;
private DateTime aPI_ABILITY_Time_ENDField;
private DateTime aPI_ABILITY_Time_STARTField;
private int aPI_ID_SETField;
private string aPI_NAMEField;
private string[] aPI_NUMBERField;
private string aPI_PARAMETER_SPECIAL_NAME_1Field;
private string aPI_PARAMETER_SPECIAL_NAME_2Field;
private string aPI_PARAMETER_SPECIAL_NAME_3Field;
private string aPI_PARAMETER_SPECIAL_NAME_4Field;
private string aPI_PARAMETER_SPECIAL_NAME_5Field;
private string aPI_SEND_PRICE_NUMBER_SATRT_1Field;
private string aPI_SEND_PRICE_NUMBER_SATRT_2Field;
private string aPI_SEND_PRICE_NUMBER_SATRT_3Field;
private string aPI_SEND_PRICE_NUMBER_SATRT_4Field;
private decimal aPI_SEND_PRICE_USER_EN_1Field;
private decimal aPI_SEND_PRICE_USER_EN_2Field;
private decimal aPI_SEND_PRICE_USER_EN_3Field;
private decimal aPI_SEND_PRICE_USER_EN_4Field;
private decimal aPI_SEND_PRICE_USER_FA_1Field;
private decimal aPI_SEND_PRICE_USER_FA_2Field;
private decimal aPI_SEND_PRICE_USER_FA_3Field;
private decimal aPI_SEND_PRICE_USER_FA_4Field;
private decimal aPI_SEND_PRICE_USER_FLASH_1Field;
private decimal aPI_SEND_PRICE_USER_FLASH_2Field;
private decimal aPI_SEND_PRICE_USER_FLASH_3Field;
private decimal aPI_SEND_PRICE_USER_FLASH_4Field;
public Result_API_Windows();
public int API_ABILITY_ONE_TO_N_MIN_ORDER { get; set; }
public DateTime API_ABILITY_Time_END { get; set; }
public DateTime API_ABILITY_Time_START { get; set; }
public int API_ID_SET { get; set; }
public string API_NAME { get; set; }
public string[] API_NUMBER { get; set; }
public string API_PARAMETER_SPECIAL_NAME_1 { get; set; }
public string API_PARAMETER_SPECIAL_NAME_2 { get; set; }
public string API_PARAMETER_SPECIAL_NAME_3 { get; set; }
public string API_PARAMETER_SPECIAL_NAME_4 { get; set; }
public string API_PARAMETER_SPECIAL_NAME_5 { get; set; }
public string API_SEND_PRICE_NUMBER_SATRT_1 { get; set; }
public string API_SEND_PRICE_NUMBER_SATRT_2 { get; set; }
public string API_SEND_PRICE_NUMBER_SATRT_3 { get; set; }
public string API_SEND_PRICE_NUMBER_SATRT_4 { get; set; }
public decimal API_SEND_PRICE_USER_EN_1 { get; set; }
public decimal API_SEND_PRICE_USER_EN_2 { get; set; }
public decimal API_SEND_PRICE_USER_EN_3 { get; set; }
public decimal API_SEND_PRICE_USER_EN_4 { get; set; }
public decimal API_SEND_PRICE_USER_FA_1 { get; set; }
public decimal API_SEND_PRICE_USER_FA_2 { get; set; }
public decimal API_SEND_PRICE_USER_FA_3 { get; set; }
public decimal API_SEND_PRICE_USER_FA_4 { get; set; }
public decimal API_SEND_PRICE_USER_FLASH_1 { get; set; }
public decimal API_SEND_PRICE_USER_FLASH_2 { get; set; }
public decimal API_SEND_PRICE_USER_FLASH_3 { get; set; }
public decimal API_SEND_PRICE_USER_FLASH_4 { get; set; }
}
[Serializable, DesignerCategory("code"), XmlType(Namespace="http://tempuri.org/"), GeneratedCode("System.Xml", "4.0.30319.450"), DebuggerStepThrough]
public class Result_INBOX_Windows
{
private DateTime dATEField;
private string fromField;
private int idField;
private string mESSAGEField;
private string toField;
public Result_INBOX_Windows();
public DateTime DATE { get; set; }
public string From { get; set; }
public int ID { get; set; }
public string MESSAGE { get; set; }
public string TO { get; set; }
}
[Serializable, XmlType(Namespace="http://tempuri.org/"), GeneratedCode("System.Xml", "4.0.30319.450"), DebuggerStepThrough, DesignerCategory("code")]
public class Result_Info_Windows
{
private string co_nameField;
private decimal credit_Money_ChengeField;
private bool credit_Money_STATUSField;
private decimal creditField;
private string mobileField;
private string nameField;
private DateTime panel_endField;
private DateTime panel_startField;
private string panelField;
private bool sTATUS_SENDField;
private bool sTATUSField;
private string usernameField;
public Result_Info_Windows();
public string co_name { get; set; }
public decimal credit { get; set; }
public decimal credit_Money_Chenge { get; set; }
public bool credit_Money_STATUS { get; set; }
public string mobile { get; set; }
public string name { get; set; }
public string panel { get; set; }
public DateTime panel_end { get; set; }
public DateTime panel_start { get; set; }
public bool STATUS { get; set; }
public bool STATUS_SEND { get; set; }
public string username { get; set; }
}
[Serializable, DesignerCategory("code"), XmlType(Namespace="http://tempuri.org/"), DebuggerStepThrough, GeneratedCode("System.Xml", "4.0.30319.450")]
public class Result_OUTBOX_Windows
{
private DateTime dATEField;
private string fromField;
private int idField;
private string mESSAGEField;
private int statusField;
private string toField;
public Result_OUTBOX_Windows();
public DateTime DATE { get; set; }
public string From { get; set; }
public int ID { get; set; }
public string MESSAGE { get; set; }
public int Status { get; set; }
public string TO { get; set; }
}
[Serializable, GeneratedCode("System.Xml", "4.0.30319.450"), DesignerCategory("code"), XmlType(Namespace="http://tempuri.org/"), DebuggerStepThrough]
public class Result_Receive_Windows
{
private DateTime dATEField;
private string fromField;
private int idField;
private string mESSAGEField;
private string toField;
public Result_Receive_Windows();
public DateTime DATE { get; set; }
public string From { get; set; }
public int ID { get; set; }
public string MESSAGE { get; set; }
public string TO { get; set; }
}
[DebuggerStepThrough, GeneratedCode("System.Web.Services", "4.0.30319.1"), DesignerCategory("code")]
public class SEND_SMS_STATUS2CompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal SEND_SMS_STATUS2CompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public string API_Exit { get; }
public int Result { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void SEND_SMS_STATUS2CompletedEventHandler(object sender, SEND_SMS_STATUS2CompletedEventArgs e);
[GeneratedCode("System.Web.Services", "4.0.30319.1"), DebuggerStepThrough, DesignerCategory("code")]
public class SEND_SMS_STATUSCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal SEND_SMS_STATUSCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public int Result { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void SEND_SMS_STATUSCompletedEventHandler(object sender, SEND_SMS_STATUSCompletedEventArgs e);
[DebuggerStepThrough, GeneratedCode("System.Web.Services", "4.0.30319.1"), DesignerCategory("code")]
public class Send_SmsCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal Send_SmsCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState);
public string Result { get; }
}
[GeneratedCode("System.Web.Services", "4.0.30319.1")]
public delegate void Send_SmsCompletedEventHandler(object sender, Send_SmsCompletedEventArgs e);
[DesignerCategory("code"), WebServiceBinding(Name="WindowsSoap", Namespace="http://tempuri.org/"), DebuggerStepThrough, GeneratedCode("System.Web.Services", "4.0.30319.1")]
public class Windows : SoapHttpClientProtocol
{
private CHECK_APICompletedEventHandler CHECK_APICompleted;
private SendOrPostCallback CHECK_APIOperationCompleted;
private CHECK_CREDITCompletedEventHandler CHECK_CREDITCompleted;
private SendOrPostCallback CHECK_CREDITOperationCompleted;
private CHECK_InfoCompletedEventHandler CHECK_InfoCompleted;
private SendOrPostCallback CHECK_InfoOperationCompleted;
private CHECK_LOGINCompletedEventHandler CHECK_LOGINCompleted;
private SendOrPostCallback CHECK_LOGINOperationCompleted;
private INBox_SmsCompletedEventHandler INBox_SmsCompleted;
private SendOrPostCallback INBox_SmsOperationCompleted;
private OUTBOX_SmsCompletedEventHandler OUTBOX_SmsCompleted;
private SendOrPostCallback OUTBOX_SmsOperationCompleted;
private Receive_SmsCompletedEventHandler Receive_SmsCompleted;
private SendOrPostCallback Receive_SmsOperationCompleted;
private SEND_SMS_STATUS2CompletedEventHandler SEND_SMS_STATUS2Completed;
private SendOrPostCallback SEND_SMS_STATUS2OperationCompleted;
private SEND_SMS_STATUSCompletedEventHandler SEND_SMS_STATUSCompleted;
private SendOrPostCallback SEND_SMS_STATUSOperationCompleted;
private Send_SmsCompletedEventHandler Send_SmsCompleted;
private SendOrPostCallback Send_SmsOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
public event CHECK_APICompletedEventHandler CHECK_APICompleted;
public event CHECK_CREDITCompletedEventHandler CHECK_CREDITCompleted;
public event CHECK_InfoCompletedEventHandler CHECK_InfoCompleted;
public event CHECK_LOGINCompletedEventHandler CHECK_LOGINCompleted;
public event INBox_SmsCompletedEventHandler INBox_SmsCompleted;
public event OUTBOX_SmsCompletedEventHandler OUTBOX_SmsCompleted;
public event Receive_SmsCompletedEventHandler Receive_SmsCompleted;
public event SEND_SMS_STATUS2CompletedEventHandler SEND_SMS_STATUS2Completed;
public event SEND_SMS_STATUSCompletedEventHandler SEND_SMS_STATUSCompleted;
public event Send_SmsCompletedEventHandler Send_SmsCompleted;